- 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 ExtendedTracerConfigDeprecated.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 to create and register a tracer as the global tracer.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
-
create
Deprecated.Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
serviceName
String serviceName()Service name of the traced service.- Returns:
- service name
-
collectorUri
URI for the collector to which to send tracing data.- Returns:
- tracing collector URI
-
collectorProtocol
Protocol (such ashttporhttps) used in connecting to the tracing collector.- Returns:
- collector protocol
-
collectorPort
Port used in connecting to the tracing collector.- Returns:
- collector port number
-
collectorHost
Host used in connecting to the tracing collector.- Returns:
- collector host
-
collectorPath
Path at the collector host and port used when sending trace data to the collector.- Returns:
- collector path
-
tracerTags
Tracer-level tags withStringvalues added to all reported spans.- Returns:
- tracer-level string-valued tags
-
intTracerTags
Tracer level tags with integer values added to all reported spans.- Returns:
- tracer-level integer-valued tags
-
booleanTracerTags
Tracer-level tags with boolean values added to all reported spans.- Returns:
- tracer-level boolean-valued tags
-
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
-
registerGlobal
boolean registerGlobal()Whether to create and register a tracer as the global tracer.- Returns:
- whether to register the configured tracer as global
-
privateKey
Private key for connecting securely to the tracing collector.- Returns:
- private key
-
clientCertificate
Client certificate for connecting securely to the tracing collector.- Returns:
- client certificate
-
trustedCertificate
Trusted certificates for connecting to the tracing collector.- Returns:
- trusted certificates
-
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
SamplerType samplerType()Type of sampler for collecting spans.- Returns:
- sampler type
-
samplerParam
double samplerParam()Parameter value used by the selected sampler; interpretation depends on the sampler type..- Returns:
- sampler parameter value
-
create(io.helidon.config.Config)