Interface OpenTelemetryTracerConfig
- All Superinterfaces:
ExtendedTracerConfig, Prototype.Api, Prototype.Factory<io.helidon.tracing.providers.opentelemetry.OpenTelemetryTracer>
- All Known Implementing Classes:
OpenTelemetryTracerConfig.BuilderBase.OpenTelemetryTracerConfigImpl
Settings for OpenTelemetry tracer configuration under the "tracing" config key.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forOpenTelemetryTracer.static classOpenTelemetryTracerConfig.BuilderBase<BUILDER extends OpenTelemetryTracerConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends OpenTelemetryTracerConfig>Fluent API builder base forOpenTelemetryTracerConfig. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a new fluent API builder to customize configuration.builder(OpenTelemetryTracerConfig instance) Create a new fluent API builder from an existing instance.static OpenTelemetryTracerConfigcreate()Create a new instance with default values.static OpenTelemetryTracerConfigCreate a new instance from configuration.io.opentelemetry.api.trace.Tracerdelegate()Tracer instance to use instead of constructing one from other config settings.Type of OTLP exporter to use for pushing span data.io.opentelemetry.api.OpenTelemetryOpenTelemetry instance to use instead of constructing one from other config settings.io.opentelemetry.context.propagation.TextMapPropagatorTypically a composite propagator gathering the propagators assigned.List<io.opentelemetry.context.propagation.TextMapPropagator> Context propagators.Span listeners to be notified of span life cycle events.List<io.opentelemetry.sdk.trace.SpanProcessor> Span processors added to the implicit one automatically created.Methods inherited from interface ExtendedTracerConfig
booleanTracerTags, clientCertificate, collectorHost, collectorPath, collectorPort, collectorProtocol, collectorUri, enabled, exportTimeout, intTracerTags, maxExportBatchSize, maxQueueSize, privateKey, registered, registerGlobal, samplerParam, samplerType, scheduleDelay, serviceName, spanProcessorType, tracerTags, trustedCertificateModifier and TypeMethodDescriptionTracer-level tags with boolean values added to all reported spans.Client certificate for connecting securely to the tracing collector.Host used in connecting to the tracing collector.Path at the collector host and port used when sending trace data to the collector.Port used in connecting to the tracing collector.Protocol (such ashttporhttps) used in connecting to the tracing collector.URI for the collector to which to send tracing data.booleanenabled()Whether to enable tracing.Maximum time a transmission can be in progress before being cancelled.Tracer level tags with integer values added to all reported spans.intMaximum number of spans grouped for transmission together; typically does not exceedExtendedTracerConfig.maxQueueSize()(batch processing).intMaximum number of spans retained before discarding any not sent to the tracing collector (batch processing).Private key for connecting securely to the tracing collector.booleanWhether this tracer configuration should be treated as an application-wide ownership candidate when it is resolved from the Helidon service registry.booleanWhether the OpenTelemetry instance created from this configuration should be published as the OpenTelemetry global; if an OpenTelemetry global already exists, Helidon leaves it unchanged and uses the existing global as the application OpenTelemetry instance.doubleParameter value used by the selected sampler; interpretation depends on the sampler type..Type of sampler for collecting spans.Delay between consecutive transmissions to the tracing collector (batch processing).Service name of the traced service.Type of span processor for accumulating spans before transmission to the tracing collector.Tracer-level tags withStringvalues added to all reported spans.Trusted certificates for connecting to the tracing collector.Methods inherited from interface Prototype.Factory
buildModifier and TypeMethodDescriptionio.helidon.tracing.providers.opentelemetry.OpenTelemetryTracerbuild()Create a new instance of the runtime type from this config object.
-
Field Details
-
TRACING_CONFIG_KEY
-
-
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
Create a new instance with default values.- Returns:
- a new instance
-
propagators
List<io.opentelemetry.context.propagation.TextMapPropagator> propagators()Context propagators.- Returns:
- context propagators
-
exporterType
OtlpExporterProtocolType exporterType()Type of OTLP exporter to use for pushing span data.- Returns:
- OTLP exporter type
-
spanListeners
List<SpanListener> spanListeners()Span listeners to be notified of span life cycle events.- Returns:
- span listeners
-
openTelemetry
io.opentelemetry.api.OpenTelemetry openTelemetry()OpenTelemetry instance to use instead of constructing one from other config settings.- Returns:
OpenTelemetryinstance
-
delegate
io.opentelemetry.api.trace.Tracer delegate()Tracer instance to use instead of constructing one from other config settings.- Returns:
Tracerinstance
-
propagator
io.opentelemetry.context.propagation.TextMapPropagator propagator()Typically a composite propagator gathering the propagators assigned.- Returns:
- propagator
-
spanProcessors
List<io.opentelemetry.sdk.trace.SpanProcessor> spanProcessors()Span processors added to the implicit one automatically created.Primarily for testing to enroll a span processor with an in-memory span exporter.
- Returns:
- span processors
-