Class DefaultOpenTelemetryFactory
java.lang.Object
io.micronaut.tracing.opentelemetry.DefaultOpenTelemetryFactory
Registers an OpenTelemetry bean.
- Since:
- 4.2.0
- Author:
- Nemanja Mikic
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected io.opentelemetry.api.OpenTelemetry
defaultOpenTelemetry
(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, Map<String, String> otelConfig, @Nullable io.opentelemetry.sdk.trace.IdGenerator idGenerator, @Nullable io.opentelemetry.sdk.trace.SpanProcessor spanProcessor, @Nullable ResourceProvider resourceProvider, @Nullable io.opentelemetry.sdk.trace.samplers.Sampler sampler) The OpenTelemetry bean with default values.
-
Constructor Details
-
DefaultOpenTelemetryFactory
public DefaultOpenTelemetryFactory()
-
-
Method Details
-
defaultOpenTelemetry
@Singleton protected io.opentelemetry.api.OpenTelemetry defaultOpenTelemetry(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, @Property(name="otel") @MapFormat(transformation=FLAT) Map<String, String> otelConfig, @Nullable @Nullable io.opentelemetry.sdk.trace.IdGenerator idGenerator, @Nullable @Nullable io.opentelemetry.sdk.trace.SpanProcessor spanProcessor, @Nullable @Nullable ResourceProvider resourceProvider, @Nullable @Nullable io.opentelemetry.sdk.trace.samplers.Sampler sampler) The OpenTelemetry bean with default values.- Parameters:
applicationConfiguration
- theApplicationConfiguration
otelConfig
- the configuration values for the opentelemetry autoconfigureidGenerator
- theIdGenerator
spanProcessor
- theSpanProcessor
resourceProvider
- Resource Provider- Returns:
- the OpenTelemetry bean with default values
-