Class OpenTelemetryTracerConfig.Builder
java.lang.Object
io.helidon.tracing.ExtendedTracerConfig.BuilderBase<OpenTelemetryTracerConfig.Builder, OpenTelemetryTracerConfig>
io.helidon.tracing.providers.opentelemetry.OpenTelemetryTracerConfig.BuilderBase<OpenTelemetryTracerConfig.Builder, OpenTelemetryTracerConfig>
io.helidon.tracing.providers.opentelemetry.OpenTelemetryTracerConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<OpenTelemetryTracerConfig.Builder, OpenTelemetryTracerConfig>, Builder<OpenTelemetryTracerConfig.Builder, io.helidon.tracing.providers.opentelemetry.OpenTelemetryTracer>, ConfigBuilderSupport.ConfiguredBuilder<OpenTelemetryTracerConfig.Builder, OpenTelemetryTracerConfig>, Supplier<io.helidon.tracing.providers.opentelemetry.OpenTelemetryTracer>
- Enclosing interface:
OpenTelemetryTracerConfig
public static class OpenTelemetryTracerConfig.Builder
extends OpenTelemetryTracerConfig.BuilderBase<OpenTelemetryTracerConfig.Builder, OpenTelemetryTracerConfig>
implements Builder<OpenTelemetryTracerConfig.Builder, io.helidon.tracing.providers.opentelemetry.OpenTelemetryTracer>
Fluent API builder for
OpenTelemetryTracer.-
Nested Class Summary
Nested classes/interfaces inherited from class OpenTelemetryTracerConfig.BuilderBase
OpenTelemetryTracerConfig.BuilderBase.OpenTelemetryTracerConfigImplModifier 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. -
Method Summary
Modifier and TypeMethodDescriptionio.helidon.tracing.providers.opentelemetry.OpenTelemetryTracerbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class OpenTelemetryTracerConfig.BuilderBase
addPropagator, addPropagators, addSpanListener, addSpanListeners, addTracerTag, addTracerTag, addTracerTag, clearPropagators, clearSpanListeners, config, exporterType, exporterType, from, from, preBuildPrototype, propagators, propagators, register, spanListeners, spanListeners, toString, validatePrototypeModifier 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 Builder
get, identity, updateModifier and TypeMethodDescriptiondefault io.helidon.tracing.providers.opentelemetry.OpenTelemetryTracerget()identity()Instance of this builder as the correct type.update(Consumer<OpenTelemetryTracerConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
self
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<OpenTelemetryTracerConfig.Builder, OpenTelemetryTracerConfig>- Returns:
- an instance of the setup object created from this builder
-
build
public io.helidon.tracing.providers.opentelemetry.OpenTelemetryTracer build()Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<OpenTelemetryTracerConfig.Builder, io.helidon.tracing.providers.opentelemetry.OpenTelemetryTracer>- Returns:
- instance of the built type
-