Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
import io.opentelemetry.sdk.logs.LogRecordProcessor;
import io.opentelemetry.sdk.logs.export.LogRecordExporter;
import io.opentelemetry.sdk.metrics.export.MetricExporter;
import io.opentelemetry.sdk.metrics.export.MetricReader;
import io.opentelemetry.sdk.resources.Resource;
import io.opentelemetry.sdk.trace.IdGenerator;
import io.opentelemetry.sdk.trace.SpanProcessor;
import io.opentelemetry.sdk.trace.export.SpanExporter;
import io.opentelemetry.sdk.trace.samplers.Sampler;
Expand All @@ -20,13 +22,13 @@
* extension components which are not part of the core SDK to be referenced in declarative based
* configuration.
*
* <p>NOTE: when {@link #getType()} is {@link Resource}, the {@link #getName()} is not (currently)
* used, and {@link #create(DeclarativeConfigProperties)} is (currently) called with an empty {@link
* DeclarativeConfigProperties}.
*
* <p>Supported component types include: {@link SpanExporter}, {@link MetricExporter}, {@link
* LogRecordExporter}, {@link SpanProcessor}, {@link LogRecordProcessor}, {@link TextMapPropagator},
* {@link Sampler}, {@link Resource}.
* MetricReader}, {@link LogRecordExporter}, {@link SpanProcessor}, {@link LogRecordProcessor},
* {@link TextMapPropagator}, {@link Sampler}, {@link IdGenerator}, {@link Resource}.
*
* <p>When {@link #getType()} is {@link Resource}, the provider is a resource detector: it is
* referenced by {@link #getName()} in the list of resource detectors, and the configuration of that
* list entry is passed to {@link #create(DeclarativeConfigProperties)}.
*/
public interface ComponentProvider {

Expand Down
2 changes: 2 additions & 0 deletions sdk-extensions/declarative-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ Notes:
* `Resource`
* `SpanExporter`
* `MetricExporter`
* `MetricReader`
* `LogRecordExporter`
* `SpanProcessor`
* `LogRecordProcessor`
* `TextMapPropagator`
* `Sampler`
* `IdGenerator`
* You can use declarative configuration with
[autoconfigure](https://opentelemetry.io/docs/languages/java/configuration/#declarative-configuration)
to specify a configuration file via environment variable, e.g.
Expand Down
Loading