Class OtlpHttpExporterConfig.BuilderBase<BUILDER extends OtlpHttpExporterConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends OtlpHttpExporterConfig>
java.lang.Object
io.helidon.telemetry.otelconfig.OtlpExporterConfig.BuilderBase<BUILDER, PROTOTYPE>
io.helidon.telemetry.otelconfig.OtlpHttpExporterConfig.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:
OtlpHttpExporterConfig.Builder
- Enclosing interface:
OtlpHttpExporterConfig
public abstract static class OtlpHttpExporterConfig.BuilderBase<BUILDER extends OtlpHttpExporterConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends OtlpHttpExporterConfig>
extends OtlpExporterConfig.BuilderBase<BUILDER, PROTOTYPE>
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER, PROTOTYPE>
Fluent API builder base for
OtlpHttpExporterConfig.-
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 OtlpExporterConfig.BuilderBase
OtlpExporterConfig.BuilderBase.OtlpExporterConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClear existing value of proxyOptions.Update builder from configuration (node of this type).from(OtlpHttpExporterConfig prototype) Update this builder from an existing prototype instance.from(OtlpHttpExporterConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.protected voidHandles providers and decorators.Optional<io.opentelemetry.sdk.common.export.ProxyOptions> Proxy options.proxyOptions(io.opentelemetry.sdk.common.export.ProxyOptions proxyOptions) Proxy options.toString()protected voidValidates required properties.Methods inherited from class OtlpExporterConfig.BuilderBase
addHeaders, clearClientTlsCertificatePem, clearClientTlsPrivateKeyPem, clearCompression, clearConnectTimeout, clearEndpoint, clearInternalTelemetryVersion, clearMemoryMode, clearMeterProvider, clearProtocol, clearRetryPolicy, clearSslContext, clearTimeout, clearTrustedCertificatesPem, clearTrustManager, clientTlsCertificatePem, clientTlsCertificatePem, clientTlsCertificatePem, clientTlsCertificatePem, clientTlsCertificatePem, clientTlsPrivateKeyPem, clientTlsPrivateKeyPem, clientTlsPrivateKeyPem, clientTlsPrivateKeyPem, clientTlsPrivateKeyPem, compression, compression, config, connectTimeout, connectTimeout, endpoint, endpoint, from, from, headers, headers, internalTelemetryVersion, internalTelemetryVersion, memoryMode, memoryMode, meterProvider, meterProvider, protocol, protocol, retryPolicy, retryPolicy, retryPolicy, retryPolicy, sslContext, sslContext, timeout, timeout, trustedCertificatesPem, trustedCertificatesPem, trustedCertificatesPem, trustedCertificatesPem, trustedCertificatesPem, trustManager, trustManagerModifier 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.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.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.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.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
-
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 OtlpHttpExporterConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends OtlpHttpExporterConfig>- Overrides:
configin classOtlpExporterConfig.BuilderBase<BUILDER extends OtlpHttpExporterConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends OtlpHttpExporterConfig>- Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
clearProxyOptions
Clear existing value of proxyOptions.- Returns:
- updated builder instance
- See Also:
-
proxyOptions
Proxy options.- Parameters:
proxyOptions- proxy options- Returns:
- updated builder instance
- See Also:
-
proxyOptions
Proxy options.- Returns:
- proxy options
-
toString
- Overrides:
toStringin classOtlpExporterConfig.BuilderBase<BUILDER extends OtlpHttpExporterConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends OtlpHttpExporterConfig>
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators.- Overrides:
preBuildPrototypein classOtlpExporterConfig.BuilderBase<BUILDER extends OtlpHttpExporterConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends OtlpHttpExporterConfig>
-
validatePrototype
protected void validatePrototype()Validates required properties.- Overrides:
validatePrototypein classOtlpExporterConfig.BuilderBase<BUILDER extends OtlpHttpExporterConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends OtlpHttpExporterConfig>
-