Class OpenTelemetryTracerConfig.BuilderBase<BUILDER extends OpenTelemetryTracerConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends OpenTelemetryTracerConfig>
java.lang.Object
io.helidon.tracing.ExtendedTracerConfig.BuilderBase<BUILDER, PROTOTYPE>
io.helidon.tracing.providers.opentelemetry.OpenTelemetryTracerConfig.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>
- Direct Known Subclasses:
OpenTelemetryTracerConfig.Builder
- Enclosing interface:
OpenTelemetryTracerConfig
public abstract static class OpenTelemetryTracerConfig.BuilderBase<BUILDER extends OpenTelemetryTracerConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends OpenTelemetryTracerConfig>
extends ExtendedTracerConfig.BuilderBase<BUILDER, PROTOTYPE>
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER, PROTOTYPE>
Fluent API builder base for
OpenTelemetryTracerConfig.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations.Nested classes/interfaces inherited from class ExtendedTracerConfig.BuilderBase
ExtendedTracerConfig.BuilderBase.ExtendedTracerConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPropagator(io.opentelemetry.context.propagation.TextMapPropagator propagator) Context propagators.addPropagators(List<? extends io.opentelemetry.context.propagation.TextMapPropagator> propagators) Context propagators.addSpanListener(SpanListener spanListener) Span listeners to be notified of span life cycle events.addSpanListeners(List<? extends SpanListener> spanListeners) Span listeners to be notified of span life cycle events.addTracerTag(String name, boolean value) Adds a boolean-valued tag.addTracerTag(String name, Number value) Adds a numeric-valued tag.addTracerTag(String name, String value) Adds a string-valued tag.Clear all propagators.Clear all spanListeners.Update builder from configuration (node of this type).Type of OTLP exporter to use for pushing span data.exporterType(OtlpExporterProtocolType exporterType) Type of OTLP exporter to use for pushing span data.from(OpenTelemetryTracerConfig prototype) Update this builder from an existing prototype instance.from(OpenTelemetryTracerConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.protected voidHandles providers and decorators.List<io.opentelemetry.context.propagation.TextMapPropagator> Context propagators.propagators(List<? extends io.opentelemetry.context.propagation.TextMapPropagator> propagators) Context propagators.register(SpanListener spanListener) Adds aSpanListenerto the builder for later registration with the resultingTracer.Span listeners to be notified of span life cycle events.spanListeners(List<? extends SpanListener> spanListeners) Span listeners to be notified of span life cycle events.toString()protected voidValidates required properties.Methods inherited from class ExtendedTracerConfig.BuilderBase
addBooleanTracerTags, addIntTracerTags, addTracerTags, booleanTracerTags, booleanTracerTags, clearClientCertificate, clearCollectorHost, clearCollectorPath, clearCollectorPort, clearCollectorProtocol, clearCollectorUri, clearPrivateKey, clearTrustedCertificate, clientCertificate, clientCertificate, clientCertificate, clientCertificate, clientCertificate, collectorHost, collectorHost, collectorPath, collectorPath, collectorPort, collectorPort, collectorProtocol, collectorProtocol, collectorUri, collectorUri, config, enabled, enabled, exportTimeout, exportTimeout, from, from, intTracerTags, intTracerTags, maxExportBatchSize, maxExportBatchSize, maxQueueSize, maxQueueSize, privateKey, privateKey, privateKey, privateKey, privateKey, putBooleanTracerTag, putIntTracerTag, putTracerTag, registered, registered, registerGlobal, registerGlobal, samplerParam, samplerParam, samplerType, samplerType, scheduleDelay, scheduleDelay, serviceName, serviceName, spanProcessorType, spanProcessorType, tracerTags, tracerTags, trustedCertificate, trustedCertificate, trustedCertificate, trustedCertificate, trustedCertificateModifier 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.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 exceedExtendedTracerConfig.BuilderBase.maxQueueSize()(batch processing).maxExportBatchSize(int maxExportBatchSize) Maximum number of spans grouped for transmission together; typically does not exceedExtendedTracerConfig.BuilderBase.maxQueueSize()(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).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 this tracer configuration should be treated as an application-wide ownership candidate when it is resolved from the Helidon service registry.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.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.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.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.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.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface 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
-
addTracerTag
-
addTracerTag
-
addTracerTag
-
register
Adds aSpanListenerto the builder for later registration with the resultingTracer.- Parameters:
spanListener-SpanListenerto add to theTracerbuilt from the 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 OpenTelemetryTracerConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends OpenTelemetryTracerConfig>- Overrides:
configin classExtendedTracerConfig.BuilderBase<BUILDER extends OpenTelemetryTracerConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends OpenTelemetryTracerConfig>- Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
clearPropagators
Clear all propagators.- Returns:
- updated builder instance
- See Also:
-
propagators
-
addPropagators
-
addPropagator
Context propagators.- Parameters:
propagator- add single context propagators- Returns:
- updated builder instance
- See Also:
-
exporterType
Type of OTLP exporter to use for pushing span data.- Parameters:
exporterType- OTLP exporter type- Returns:
- updated builder instance
- See Also:
-
clearSpanListeners
Clear all spanListeners.- Returns:
- updated builder instance
- See Also:
-
spanListeners
Span listeners to be notified of span life cycle events.- Parameters:
spanListeners- span listeners- Returns:
- updated builder instance
- See Also:
-
addSpanListeners
Span listeners to be notified of span life cycle events.- Parameters:
spanListeners- span listeners- Returns:
- updated builder instance
- See Also:
-
addSpanListener
Span listeners to be notified of span life cycle events.- Parameters:
spanListener- add single span listeners- Returns:
- updated builder instance
- See Also:
-
propagators
Context propagators.- Returns:
- context propagators
-
exporterType
Type of OTLP exporter to use for pushing span data.- Returns:
- OTLP exporter type
-
spanListeners
Span listeners to be notified of span life cycle events.- Returns:
- span listeners
-
toString
- Overrides:
toStringin classExtendedTracerConfig.BuilderBase<BUILDER extends OpenTelemetryTracerConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends OpenTelemetryTracerConfig>
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators.- Overrides:
preBuildPrototypein classExtendedTracerConfig.BuilderBase<BUILDER extends OpenTelemetryTracerConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends OpenTelemetryTracerConfig>
-
validatePrototype
protected void validatePrototype()Validates required properties.- Overrides:
validatePrototypein classExtendedTracerConfig.BuilderBase<BUILDER extends OpenTelemetryTracerConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends OpenTelemetryTracerConfig>
-