Module io.helidon.tracing
Package io.helidon.tracing
Class ExtendedTracerConfig.BuilderBase<BUILDER extends ExtendedTracerConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ExtendedTracerConfig>
java.lang.Object
io.helidon.tracing.ExtendedTracerConfig.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER- type of the builder extending this abstract builderPROTOTYPE- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,,PROTOTYPE> ConfigBuilderSupport.ConfiguredBuilder<BUILDER,,PROTOTYPE> ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
- Direct Known Subclasses:
ExtendedTracerConfig.Builder,OpenTelemetryTracerConfig.BuilderBase
- Enclosing interface:
ExtendedTracerConfig
public abstract static class ExtendedTracerConfig.BuilderBase<BUILDER extends ExtendedTracerConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ExtendedTracerConfig>
extends Object
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for
ExtendedTracerConfig.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddBooleanTracerTags(Map<String, Boolean> booleanTracerTags) Tracer-level tags with boolean values added to all reported spans.addIntTracerTags(Map<String, Integer> intTracerTags) Tracer level tags with integer values added to all reported spans.addTracerTags(Map<String, String> tracerTags) Tracer-level tags withStringvalues added to all reported spans.Tracer-level tags with boolean values added to all reported spans.booleanTracerTags(Map<String, Boolean> booleanTracerTags) Tracer-level tags with boolean values added to all reported spans.Clear existing value of clientCertificate.Clear existing value of collectorHost.Clear existing value of collectorPath.Clear existing value of collectorPort.Clear existing value of collectorProtocol.Clear existing value of collectorUri.Clear existing value of privateKey.Clear existing value of trustedCertificate.Client certificate for connecting securely to the tracing collector.clientCertificate(Resource clientCertificate) Client certificate for connecting securely to the tracing collector.clientCertificate(ResourceConfig clientCertificate) Client certificate for connecting securely to the tracing collector.clientCertificate(Consumer<ResourceConfig.Builder> consumer) Client certificate for connecting securely to the tracing collector.clientCertificate(Supplier<? extends Resource> supplier) Client certificate for connecting securely to the tracing collector.Host used in connecting to the tracing collector.collectorHost(String collectorHost) Host used in connecting to the tracing collector.Path at the collector host and port used when sending trace data to the collector.collectorPath(String collectorPath) Path at the collector host and port used when sending trace data to the collector.Port used in connecting to the tracing collector.collectorPort(int collectorPort) Port used in connecting to the tracing collector.Protocol (such ashttporhttps) used in connecting to the tracing collector.collectorProtocol(String collectorProtocol) Protocol (such ashttporhttps) used in connecting to the tracing collector.URI for the collector to which to send tracing data.collectorUri(URI collectorUri) URI for the collector to which to send tracing data.config()Configuration used to configure this instance.Deprecated.Update builder from configuration (node of this type).booleanenabled()Whether to enable tracing.enabled(boolean enabled) Whether to enable tracing.Maximum time a transmission can be in progress before being cancelled.exportTimeout(Duration exportTimeout) Maximum time a transmission can be in progress before being cancelled.from(ExtendedTracerConfig prototype) Update this builder from an existing prototype instance.from(ExtendedTracerConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Tracer level tags with integer values added to all reported spans.intTracerTags(Map<String, Integer> intTracerTags) 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).maxExportBatchSize(int maxExportBatchSize) Maximum 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).maxQueueSize(int maxQueueSize) Maximum number of spans retained before discarding any not sent to the tracing collector (batch processing).protected voidHandles providers and decorators.Private key for connecting securely to the tracing collector.privateKey(Resource privateKey) Private key for connecting securely to the tracing collector.privateKey(ResourceConfig privateKey) Private key for connecting securely to the tracing collector.privateKey(Consumer<ResourceConfig.Builder> consumer) Private key for connecting securely to the tracing collector.privateKey(Supplier<? extends Resource> supplier) Private key for connecting securely to the tracing collector.putBooleanTracerTag(String key, Boolean booleanTracerTag) Tracer-level tags with boolean values added to all reported spans.putIntTracerTag(String key, Integer intTracerTag) Tracer level tags with integer values added to all reported spans.putTracerTag(String key, String tracerTag) Tracer-level tags withStringvalues added to all reported spans.booleanWhether to create and register a tracer as the global tracer.registerGlobal(boolean registerGlobal) Whether to create and register a tracer as the global tracer.doubleParameter value used by the selected sampler; interpretation depends on the sampler type..samplerParam(double samplerParam) Parameter value used by the selected sampler; interpretation depends on the sampler type..Type of sampler for collecting spans.samplerType(SamplerType samplerType) Type of sampler for collecting spans.Delay between consecutive transmissions to the tracing collector (batch processing).scheduleDelay(Duration scheduleDelay) Delay between consecutive transmissions to the tracing collector (batch processing).Service name of the traced service.serviceName(String serviceName) Service name of the traced service.Type of span processor for accumulating spans before transmission to the tracing collector.spanProcessorType(SpanProcessorType spanProcessorType) Type of span processor for accumulating spans before transmission to the tracing collector.toString()Tracer-level tags withStringvalues added to all reported spans.tracerTags(Map<String, String> tracerTags) Tracer-level tags withStringvalues added to all reported spans.Trusted certificates for connecting to the tracing collector.trustedCertificate(Resource trustedCertificate) Trusted certificates for connecting to the tracing collector.trustedCertificate(ResourceConfig trustedCertificate) Trusted certificates for connecting to the tracing collector.trustedCertificate(Consumer<ResourceConfig.Builder> consumer) Trusted certificates for connecting to the tracing collector.trustedCertificate(Supplier<? extends Resource> supplier) Trusted certificates for connecting to the tracing collector.protected voidValidates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
config
Deprecated.Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends ExtendedTracerConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ExtendedTracerConfig> - Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
config
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends ExtendedTracerConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ExtendedTracerConfig> - Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
serviceName
Service name of the traced service.- Parameters:
serviceName- service name- Returns:
- updated builder instance
- See Also:
-
clearCollectorUri
Clear existing value of collectorUri.- Returns:
- updated builder instance
- See Also:
-
collectorUri
URI for the collector to which to send tracing data.- Parameters:
collectorUri- tracing collector URI- Returns:
- updated builder instance
- See Also:
-
clearCollectorProtocol
Clear existing value of collectorProtocol.- Returns:
- updated builder instance
- See Also:
-
collectorProtocol
Protocol (such ashttporhttps) used in connecting to the tracing collector.- Parameters:
collectorProtocol- collector protocol- Returns:
- updated builder instance
- See Also:
-
clearCollectorPort
Clear existing value of collectorPort.- Returns:
- updated builder instance
- See Also:
-
collectorPort
Port used in connecting to the tracing collector.- Parameters:
collectorPort- collector port number- Returns:
- updated builder instance
- See Also:
-
clearCollectorHost
Clear existing value of collectorHost.- Returns:
- updated builder instance
- See Also:
-
collectorHost
Host used in connecting to the tracing collector.- Parameters:
collectorHost- collector host- Returns:
- updated builder instance
- See Also:
-
clearCollectorPath
Clear existing value of collectorPath.- Returns:
- updated builder instance
- See Also:
-
collectorPath
Path at the collector host and port used when sending trace data to the collector.- Parameters:
collectorPath- collector path- Returns:
- updated builder instance
- See Also:
-
tracerTags
Tracer-level tags withStringvalues added to all reported spans. This method replaces all values with the new ones.- Parameters:
tracerTags- tracer-level string-valued tags- Returns:
- updated builder instance
- See Also:
-
addTracerTags
Tracer-level tags withStringvalues added to all reported spans. This method keeps existing values, then puts all new values into the map.- Parameters:
tracerTags- tracer-level string-valued tags- Returns:
- updated builder instance
- See Also:
-
putTracerTag
Tracer-level tags withStringvalues added to all reported spans. This method adds a new value to the map, or replaces it if the key already exists.- Parameters:
key- key to add or replacetracerTag- new value for the key- Returns:
- updated builder instance
- See Also:
-
intTracerTags
Tracer level tags with integer values added to all reported spans. This method replaces all values with the new ones.- Parameters:
intTracerTags- tracer-level integer-valued tags- Returns:
- updated builder instance
- See Also:
-
addIntTracerTags
Tracer level tags with integer values added to all reported spans. This method keeps existing values, then puts all new values into the map.- Parameters:
intTracerTags- tracer-level integer-valued tags- Returns:
- updated builder instance
- See Also:
-
putIntTracerTag
Tracer level tags with integer values added to all reported spans. This method adds a new value to the map, or replaces it if the key already exists.- Parameters:
key- key to add or replaceintTracerTag- new value for the key- Returns:
- updated builder instance
- See Also:
-
booleanTracerTags
Tracer-level tags with boolean values added to all reported spans. This method replaces all values with the new ones.- Parameters:
booleanTracerTags- tracer-level boolean-valued tags- Returns:
- updated builder instance
- See Also:
-
addBooleanTracerTags
Tracer-level tags with boolean values added to all reported spans. This method keeps existing values, then puts all new values into the map.- Parameters:
booleanTracerTags- tracer-level boolean-valued tags- Returns:
- updated builder instance
- See Also:
-
putBooleanTracerTag
Tracer-level tags with boolean values added to all reported spans. This method adds a new value to the map, or replaces it if the key already exists.- Parameters:
key- key to add or replacebooleanTracerTag- new value for the key- Returns:
- updated builder instance
- See Also:
-
enabled
Whether to enable tracing. That is, whether to use a fully-featured tracing implementation on the path vs. a no-op implementation.- Parameters:
enabled- whether tracing is enabled- Returns:
- updated builder instance
- See Also:
-
registerGlobal
Whether to create and register a tracer as the global tracer.- Parameters:
registerGlobal- whether to register the configured tracer as global- Returns:
- updated builder instance
- See Also:
-
clearPrivateKey
Clear existing value of privateKey.- Returns:
- updated builder instance
- See Also:
-
privateKey
Private key for connecting securely to the tracing collector.- Parameters:
privateKey- private key- Returns:
- updated builder instance
- See Also:
-
privateKey
Private key for connecting securely to the tracing collector.- Parameters:
privateKey- prototype of private key- Returns:
- updated builder instance
- See Also:
-
privateKey
Private key for connecting securely to the tracing collector.- Parameters:
consumer- consumer of builder of private key- Returns:
- updated builder instance
- See Also:
-
privateKey
Private key for connecting securely to the tracing collector.- Parameters:
supplier- supplier of private key- Returns:
- updated builder instance
- See Also:
-
clearClientCertificate
Clear existing value of clientCertificate.- Returns:
- updated builder instance
- See Also:
-
clientCertificate
Client certificate for connecting securely to the tracing collector.- Parameters:
clientCertificate- client certificate- Returns:
- updated builder instance
- See Also:
-
clientCertificate
Client certificate for connecting securely to the tracing collector.- Parameters:
clientCertificate- prototype of client certificate- Returns:
- updated builder instance
- See Also:
-
clientCertificate
Client certificate for connecting securely to the tracing collector.- Parameters:
consumer- consumer of builder of client certificate- Returns:
- updated builder instance
- See Also:
-
clientCertificate
Client certificate for connecting securely to the tracing collector.- Parameters:
supplier- supplier of client certificate- Returns:
- updated builder instance
- See Also:
-
clearTrustedCertificate
Clear existing value of trustedCertificate.- Returns:
- updated builder instance
- See Also:
-
trustedCertificate
Trusted certificates for connecting to the tracing collector.- Parameters:
trustedCertificate- trusted certificates- Returns:
- updated builder instance
- See Also:
-
trustedCertificate
Trusted certificates for connecting to the tracing collector.- Parameters:
trustedCertificate- prototype of trusted certificates- Returns:
- updated builder instance
- See Also:
-
trustedCertificate
Trusted certificates for connecting to the tracing collector.- Parameters:
consumer- consumer of builder of trusted certificates- Returns:
- updated builder instance
- See Also:
-
trustedCertificate
Trusted certificates for connecting to the tracing collector.- Parameters:
supplier- supplier of trusted certificates- Returns:
- updated builder instance
- See Also:
-
spanProcessorType
Type of span processor for accumulating spans before transmission to the tracing collector.- Parameters:
spanProcessorType- span processor type- Returns:
- updated builder instance
- See Also:
-
scheduleDelay
Delay between consecutive transmissions to the tracing collector (batch processing).- Parameters:
scheduleDelay- delay between consecutive transmissions- Returns:
- updated builder instance
- See Also:
-
maxQueueSize
Maximum number of spans retained before discarding any not sent to the tracing collector (batch processing).- Parameters:
maxQueueSize- maximum number of spans kept for transmission- Returns:
- updated builder instance
- See Also:
-
maxExportBatchSize
Maximum number of spans grouped for transmission together; typically does not exceedmaxQueueSize()(batch processing).- Parameters:
maxExportBatchSize- maximum number of spans batched- Returns:
- updated builder instance
- See Also:
-
exportTimeout
Maximum time a transmission can be in progress before being cancelled.- Parameters:
exportTimeout- maximum transmission time- Returns:
- updated builder instance
- See Also:
-
samplerType
Type of sampler for collecting spans.- Parameters:
samplerType- sampler type- Returns:
- updated builder instance
- See Also:
-
samplerParam
Parameter value used by the selected sampler; interpretation depends on the sampler type..- Parameters:
samplerParam- sampler parameter value- Returns:
- updated builder instance
- See Also:
-
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
public 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
public 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
Type of span processor for accumulating spans before transmission to the tracing collector.- Returns:
- span processor type
-
scheduleDelay
Delay between consecutive transmissions to the tracing collector (batch processing).- Returns:
- delay between consecutive transmissions
-
maxQueueSize
public 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
public int maxExportBatchSize()Maximum number of spans grouped for transmission together; typically does not exceedmaxQueueSize()(batch processing).- Returns:
- maximum number of spans batched
-
exportTimeout
Maximum time a transmission can be in progress before being cancelled.- Returns:
- maximum transmission time
-
samplerType
Type of sampler for collecting spans.- Returns:
- sampler type
-
samplerParam
public double samplerParam()Parameter value used by the selected sampler; interpretation depends on the sampler type..- Returns:
- sampler parameter value
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties. -
config
Configuration used to configure this instance.- Returns:
- config instance
-
config(io.helidon.config.Config)