Package io.helidon.telemetry.otelconfig
Class OtlpExporterConfig.BuilderBase<BUILDER extends OtlpExporterConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends OtlpExporterConfig>
java.lang.Object
io.helidon.telemetry.otelconfig.OtlpExporterConfig.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:
LogRecordExporterConfig.BuilderBase,MetricExporterConfig.BuilderBase,OtlpExporterConfig.Builder,OtlpHttpExporterConfig.BuilderBase
- Enclosing interface:
OtlpExporterConfig
public abstract static class OtlpExporterConfig.BuilderBase<BUILDER extends OtlpExporterConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends OtlpExporterConfig>
extends Object
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for
OtlpExporterConfig.-
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 TypeMethodDescriptionaddHeaders(Map<String, String> headers) Headers added to each export message.Clear existing value of clientTlsCertificatePem.Clear existing value of clientTlsPrivateKeyPem.Clear existing value of compression.Clear existing value of connectTimeout.Clear existing value of endpoint.Clear existing value of internalTelemetryVersion.Clear existing value of memoryMode.Clear existing value of meterProvider.Clear existing value of protocol.Clear existing value of retryPolicy.Clear existing value of sslContext.Clear existing value of timeout.Clear existing value of trustedCertificatesPem.Clear existing value of trustManager.TLS certificate.clientTlsCertificatePem(Resource clientTlsCertificatePem) TLS certificate.clientTlsCertificatePem(ResourceConfig clientTlsCertificatePem) TLS certificate.TLS certificate.clientTlsCertificatePem(Supplier<? extends Resource> supplier) TLS certificate.TLS client key.clientTlsPrivateKeyPem(Resource clientTlsPrivateKeyPem) TLS client key.clientTlsPrivateKeyPem(ResourceConfig clientTlsPrivateKeyPem) TLS client key.clientTlsPrivateKeyPem(Consumer<ResourceConfig.Builder> consumer) TLS client key.clientTlsPrivateKeyPem(Supplier<? extends Resource> supplier) TLS client key.Compression the exporter uses.compression(CompressionType compression) Compression the exporter uses.config()Configuration used to configure this instance.Deprecated.Update builder from configuration (node of this type).Connection timeout.connectTimeout(Duration connectTimeout) Connection timeout.endpoint()Endpoint of the collector to which the exporter should transmit.Endpoint of the collector to which the exporter should transmit.from(OtlpExporterConfig prototype) Update this builder from an existing prototype instance.from(OtlpExporterConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.headers()Headers added to each export message.Headers added to each export message.Optional<io.opentelemetry.sdk.common.InternalTelemetryVersion> Self-monitoring telemetry OpenTelemetry should collect.internalTelemetryVersion(io.opentelemetry.sdk.common.InternalTelemetryVersion internalTelemetryVersion) Self-monitoring telemetry OpenTelemetry should collect.Optional<io.opentelemetry.sdk.common.export.MemoryMode> Memory mode.memoryMode(io.opentelemetry.sdk.common.export.MemoryMode memoryMode) Memory mode.Optional<io.opentelemetry.api.metrics.MeterProvider> Meter provider for the exporter.meterProvider(io.opentelemetry.api.metrics.MeterProvider meterProvider) Meter provider for the exporter.protected voidHandles providers and decorators.protocol()Exporter protocol type.protocol(OtlpExporterProtocolType protocol) Exporter protocol type.Optional<io.opentelemetry.sdk.common.export.RetryPolicy> Retry policy.retryPolicy(io.opentelemetry.sdk.common.export.RetryPolicy retryPolicy) Retry policy.retryPolicy(Consumer<io.opentelemetry.sdk.common.export.RetryPolicy.RetryPolicyBuilder> consumer) Retry policy.retryPolicy(Supplier<? extends io.opentelemetry.sdk.common.export.RetryPolicy> supplier) Retry policy.SSL context for the exporter.sslContext(SSLContext sslContext) SSL context for the exporter.timeout()Exporter timeout.Exporter timeout.toString()Trusted certificates.trustedCertificatesPem(Resource trustedCertificatesPem) Trusted certificates.trustedCertificatesPem(ResourceConfig trustedCertificatesPem) Trusted certificates.trustedCertificatesPem(Consumer<ResourceConfig.Builder> consumer) Trusted certificates.trustedCertificatesPem(Supplier<? extends Resource> supplier) Trusted certificates.X509 trust manager for the exporter.trustManager(X509TrustManager trustManager) X509 trust manager for the exporter.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 OtlpExporterConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends OtlpExporterConfig> - 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 OtlpExporterConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends OtlpExporterConfig> - Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
clearTimeout
Clear existing value of timeout.- Returns:
- updated builder instance
- See Also:
-
timeout
Exporter timeout.- Parameters:
timeout- exporter timeout- Returns:
- updated builder instance
- See Also:
-
clearConnectTimeout
Clear existing value of connectTimeout.- Returns:
- updated builder instance
- See Also:
-
connectTimeout
Connection timeout.- Parameters:
connectTimeout- connection timeout- Returns:
- updated builder instance
- See Also:
-
clearEndpoint
Clear existing value of endpoint.- Returns:
- updated builder instance
- See Also:
-
endpoint
Endpoint of the collector to which the exporter should transmit.- Parameters:
endpoint- collector endpoint- Returns:
- updated builder instance
- See Also:
-
clearCompression
Clear existing value of compression.- Returns:
- updated builder instance
- See Also:
-
compression
Compression the exporter uses.- Parameters:
compression- compression type- Returns:
- updated builder instance
- See Also:
-
headers
Headers added to each export message. This method replaces all values with the new ones.- Parameters:
headers- added headers- Returns:
- updated builder instance
- See Also:
-
addHeaders
Headers added to each export message. This method keeps existing values, then puts all new values into the map.- Parameters:
headers- added headers- Returns:
- updated builder instance
- See Also:
-
clearClientTlsPrivateKeyPem
Clear existing value of clientTlsPrivateKeyPem.- Returns:
- updated builder instance
- See Also:
-
clientTlsPrivateKeyPem
TLS client key.- Parameters:
clientTlsPrivateKeyPem- TLS client key- Returns:
- updated builder instance
- See Also:
-
clientTlsPrivateKeyPem
TLS client key.- Parameters:
clientTlsPrivateKeyPem- prototype of TLS client key- Returns:
- updated builder instance
- See Also:
-
clientTlsPrivateKeyPem
TLS client key.- Parameters:
consumer- consumer of builder of TLS client key- Returns:
- updated builder instance
- See Also:
-
clientTlsPrivateKeyPem
TLS client key.- Parameters:
supplier- supplier of TLS client key- Returns:
- updated builder instance
- See Also:
-
clearClientTlsCertificatePem
Clear existing value of clientTlsCertificatePem.- Returns:
- updated builder instance
- See Also:
-
clientTlsCertificatePem
TLS certificate.- Parameters:
clientTlsCertificatePem- TLS certificate- Returns:
- updated builder instance
- See Also:
-
clientTlsCertificatePem
TLS certificate.- Parameters:
clientTlsCertificatePem- prototype of TLS certificate- Returns:
- updated builder instance
- See Also:
-
clientTlsCertificatePem
TLS certificate.- Parameters:
consumer- consumer of builder of TLS certificate- Returns:
- updated builder instance
- See Also:
-
clientTlsCertificatePem
TLS certificate.- Parameters:
supplier- supplier of TLS certificate- Returns:
- updated builder instance
- See Also:
-
clearTrustedCertificatesPem
Clear existing value of trustedCertificatesPem.- Returns:
- updated builder instance
- See Also:
-
trustedCertificatesPem
Trusted certificates.- Parameters:
trustedCertificatesPem- trusted certificates- Returns:
- updated builder instance
- See Also:
-
trustedCertificatesPem
Trusted certificates.- Parameters:
trustedCertificatesPem- prototype of trusted certificates- Returns:
- updated builder instance
- See Also:
-
trustedCertificatesPem
Trusted certificates.- Parameters:
consumer- consumer of builder of trusted certificates- Returns:
- updated builder instance
- See Also:
-
trustedCertificatesPem
Trusted certificates.- Parameters:
supplier- supplier of trusted certificates- Returns:
- updated builder instance
- See Also:
-
clearRetryPolicy
Clear existing value of retryPolicy.- Returns:
- updated builder instance
- See Also:
-
retryPolicy
Retry policy.- Parameters:
retryPolicy- retry policy- Returns:
- updated builder instance
- See Also:
-
retryPolicy
public BUILDER retryPolicy(Consumer<io.opentelemetry.sdk.common.export.RetryPolicy.RetryPolicyBuilder> consumer) Retry policy.- Parameters:
consumer- consumer of builder of retry policy- Returns:
- updated builder instance
- See Also:
-
retryPolicy
public BUILDER retryPolicy(Supplier<? extends io.opentelemetry.sdk.common.export.RetryPolicy> supplier) Retry policy.- Parameters:
supplier- supplier of retry policy- Returns:
- updated builder instance
- See Also:
-
clearProtocol
Clear existing value of protocol.- Returns:
- updated builder instance
- See Also:
-
protocol
Exporter protocol type.- Parameters:
protocol- exporter protocol type- Returns:
- updated builder instance
- See Also:
-
clearMemoryMode
Clear existing value of memoryMode.- Returns:
- updated builder instance
- See Also:
-
memoryMode
Memory mode.- Parameters:
memoryMode- memory mode- Returns:
- updated builder instance
- See Also:
-
clearInternalTelemetryVersion
Clear existing value of internalTelemetryVersion.- Returns:
- updated builder instance
- See Also:
-
internalTelemetryVersion
public BUILDER internalTelemetryVersion(io.opentelemetry.sdk.common.InternalTelemetryVersion internalTelemetryVersion) Self-monitoring telemetry OpenTelemetry should collect.- Parameters:
internalTelemetryVersion- telemetry version- Returns:
- updated builder instance
- See Also:
-
clearSslContext
Clear existing value of sslContext.- Returns:
- updated builder instance
- See Also:
-
sslContext
SSL context for the exporter.- Parameters:
sslContext- SSL context- Returns:
- updated builder instance
- See Also:
-
clearTrustManager
Clear existing value of trustManager.- Returns:
- updated builder instance
- See Also:
-
trustManager
X509 trust manager for the exporter.- Parameters:
trustManager- X509 trust manager- Returns:
- updated builder instance
- See Also:
-
clearMeterProvider
Clear existing value of meterProvider.- Returns:
- updated builder instance
- See Also:
-
meterProvider
Meter provider for the exporter.- Parameters:
meterProvider- meter provider- Returns:
- updated builder instance
- See Also:
-
timeout
Exporter timeout.- Returns:
- exporter timeout
-
connectTimeout
Connection timeout.- Returns:
- connection timeout
-
endpoint
Endpoint of the collector to which the exporter should transmit.- Returns:
- collector endpoint
-
compression
Compression the exporter uses.- Returns:
- compression type
-
headers
Headers added to each export message.- Returns:
- added headers
-
clientTlsPrivateKeyPem
TLS client key.- Returns:
- TLS client key
-
clientTlsCertificatePem
TLS certificate.- Returns:
- TLS certificate
-
trustedCertificatesPem
Trusted certificates.- Returns:
- trusted certificates
-
retryPolicy
Retry policy.- Returns:
- retry policy
-
protocol
Exporter protocol type.- Returns:
- exporter protocol type
-
memoryMode
Memory mode.- Returns:
- memory mode
-
internalTelemetryVersion
Self-monitoring telemetry OpenTelemetry should collect.- Returns:
- telemetry version
-
sslContext
SSL context for the exporter.- Returns:
- SSL context
-
trustManager
X509 trust manager for the exporter.- Returns:
- X509 trust manager
-
meterProvider
Meter provider for the exporter.- Returns:
- meter provider
-
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)