Package io.helidon.telemetry.otelconfig
Interface OpenTelemetryConfig
- All Superinterfaces:
Prototype.Api,Prototype.Factory<HelidonOpenTelemetry>
- All Known Implementing Classes:
OpenTelemetryConfig.BuilderBase.OpenTelemetryConfigImpl
OpenTelemetry settings.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forHelidonOpenTelemetry.static classOpenTelemetryConfig.BuilderBase<BUILDER extends OpenTelemetryConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends OpenTelemetryConfig> Fluent API builder base forOpenTelemetryConfig. -
Method Summary
Modifier and TypeMethodDescriptionstatic OpenTelemetryConfig.Builderbuilder()Create a new fluent API builder to customize configuration.static OpenTelemetryConfig.Builderbuilder(OpenTelemetryConfig instance) Create a new fluent API builder from an existing instance.static OpenTelemetryConfigcreate()Create a new instance with default values.static OpenTelemetryConfigDeprecated.static OpenTelemetryConfigCreate a new instance from configuration.booleanenabled()Whether the OpenTelemetry support is enabled.booleanglobal()Whether theOpenTelemetryinstance created from this configuration should be made the global one.logging()OpenTelemetry logging settings.metrics()OpenTelemetry metrics settings.io.opentelemetry.api.OpenTelemetryTheOpenTelemetryinstance to use for telemetry.List<io.opentelemetry.context.propagation.TextMapPropagator> OpenTelemetryTextMapPropagatorinstances added explicitly by the app.service()Service name used in sending telemetry data to the collector.tracing()OpenTelemetry tracing settings.Methods inherited from interface io.helidon.builder.api.Prototype.Factory
build
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Deprecated.Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
service
String service()Service name used in sending telemetry data to the collector.- Returns:
- service name
-
enabled
boolean enabled()Whether the OpenTelemetry support is enabled.- Returns:
- true if enabled; false otherwise
-
global
boolean global()Whether theOpenTelemetryinstance created from this configuration should be made the global one.- Returns:
- true if the configured instance should be made global; false otherwise
-
propagators
List<io.opentelemetry.context.propagation.TextMapPropagator> propagators()OpenTelemetryTextMapPropagatorinstances added explicitly by the app.Default: "tracecontext,baggage".
- Returns:
- propagators
- See Also:
-
tracing
Optional<OpenTelemetryTracingConfig> tracing()OpenTelemetry tracing settings.- Returns:
- tracing settings
-
metrics
Optional<OpenTelemetryMetricsConfig> metrics()OpenTelemetry metrics settings.- Returns:
- metrics settings
-
logging
Optional<OpenTelemetryLoggingConfig> logging()OpenTelemetry logging settings.- Returns:
- logging settings
-
openTelemetry
io.opentelemetry.api.OpenTelemetry openTelemetry()TheOpenTelemetryinstance to use for telemetry.Typically, this value will be the OpenTelemetry SDK instance created using this configuration, but if some other code (such as the OpenTelemetry agent) has already set the OTel global instance, this value will be that global instance.
- Returns:
- the OpenTelemetry instance
-
create(io.helidon.config.Config)