Interface ExtendedTracerConfig
- All Superinterfaces:
Prototype.Api
- All Known Subinterfaces:
OpenTelemetryTracerConfig, io.helidon.tracing.providers.opentelemetry.OpenTelemetryTracerConfigBlueprint
- All Known Implementing Classes:
ExtendedTracerConfig.BuilderBase.ExtendedTracerConfigImpl, OpenTelemetryTracerConfig.BuilderBase.OpenTelemetryTracerConfigImpl
Common settings for tracers including settings for span processors and secure client connections.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forExtendedTracerConfig.static classExtendedTracerConfig.BuilderBase<BUILDER extends ExtendedTracerConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends ExtendedTracerConfig>Fluent API builder base forExtendedTracerConfig. -
Method Summary
Modifier and TypeMethodDescriptionTracer-level tags with boolean values added to all reported spans.static ExtendedTracerConfig.Builderbuilder()Create a new fluent API builder to customize configuration.static ExtendedTracerConfig.Builderbuilder(ExtendedTracerConfig instance) Create a new fluent API builder from an existing instance.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.static ExtendedTracerConfigCreate a new instance from configuration.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 exceedmaxQueueSize()(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.
-
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
-
serviceName
-
collectorUri
-
collectorProtocol
-
collectorPort
-
collectorHost
-
collectorPath
-
tracerTags
-
intTracerTags
-
booleanTracerTags
-
enabled
boolean enabled()Whether to enable tracing. That is, whether to use a fully-featured tracing implementation on the path vs. a no-op implementation.- Returns:
- whether tracing is enabled
-
registered
boolean registered()Whether this tracer configuration should be treated as an application-wide ownership candidate when it is resolved from the Helidon service registry.- Returns:
- whether this configuration should be treated as an application-wide ownership candidate
-
registerGlobal
boolean registerGlobal()Whether 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.- Returns:
- whether to publish the configured OpenTelemetry instance as global
-
privateKey
-
clientCertificate
-
trustedCertificate
-
spanProcessorType
SpanProcessorType spanProcessorType()Type of span processor for accumulating spans before transmission to the tracing collector.- Returns:
- span processor type
-
scheduleDelay
Duration scheduleDelay()Delay between consecutive transmissions to the tracing collector (batch processing).- Returns:
- delay between consecutive transmissions
-
maxQueueSize
int maxQueueSize()Maximum number of spans retained before discarding any not sent to the tracing collector (batch processing).- Returns:
- maximum number of spans kept for transmission
-
maxExportBatchSize
int maxExportBatchSize()Maximum number of spans grouped for transmission together; typically does not exceedmaxQueueSize()(batch processing).- Returns:
- maximum number of spans batched
-
exportTimeout
Duration exportTimeout()Maximum time a transmission can be in progress before being cancelled.- Returns:
- maximum transmission time
-
samplerType
-
samplerParam
double samplerParam()Parameter value used by the selected sampler; interpretation depends on the sampler type..- Returns:
- sampler parameter value
-