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:
OtlpExporterConfig.Builder
- 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 class
Generated 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 this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.TLS certificate.clientTlsCertificatePem
(Resource clientTlsCertificatePem) TLS certificate.clientTlsCertificatePem
(ResourceConfig clientTlsCertificatePemConfig) TLS certificate.TLS certificate.TLS client key.clientTlsPrivateKeyPem
(Resource clientTlsPrivateKeyPem) TLS client key.clientTlsPrivateKeyPem
(ResourceConfig clientTlsPrivateKeyPemConfig) TLS client key.clientTlsPrivateKeyPem
(Consumer<ResourceConfig.Builder> consumer) TLS client key.Compression the exporter uses.compression
(CompressionType compression) Compression the exporter uses.config()
If this instance was configured, this would be the config instance used.Deprecated.Update builder from configuration (node of this type).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.api.metrics.MeterProvider> Meter provider for the exporter.meterProvider
(io.opentelemetry.api.metrics.MeterProvider meterProvider) Meter provider for the exporter.protected void
Handles 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.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 trustedCertificatesPemConfig) Trusted certificates.trustedCertificatesPem
(Consumer<ResourceConfig.Builder> consumer) Trusted certificates.X509 trust manager for the exporter.trustManager
(X509TrustManager trustManager) X509 trust manager for the exporter.protected void
Validates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
config
in 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:
config
in 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 this property.- Returns:
- updated builder instance
- See Also:
-
timeout
Exporter timeout.- Parameters:
timeout
- exporter timeout- Returns:
- updated builder instance
- See Also:
-
clearEndpoint
Clear existing value of this property.- 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 this property.- 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 this property.- 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:
clientTlsPrivateKeyPemConfig
- TLS client key- Returns:
- updated builder instance
- See Also:
-
clientTlsPrivateKeyPem
TLS client key.- Parameters:
consumer
- TLS client key- Returns:
- updated builder instance
- See Also:
-
clearClientTlsCertificatePem
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
clientTlsCertificatePem
TLS certificate.- Parameters:
clientTlsCertificatePem
- TLS certificate- Returns:
- updated builder instance
- See Also:
-
clientTlsCertificatePem
TLS certificate.- Parameters:
clientTlsCertificatePemConfig
- TLS certificate- Returns:
- updated builder instance
- See Also:
-
clientTlsCertificatePem
TLS certificate.- Parameters:
consumer
- TLS certificate- Returns:
- updated builder instance
- See Also:
-
clearTrustedCertificatesPem
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
trustedCertificatesPem
Trusted certificates.- Parameters:
trustedCertificatesPem
- trusted certificates- Returns:
- updated builder instance
- See Also:
-
trustedCertificatesPem
Trusted certificates.- Parameters:
trustedCertificatesPemConfig
- trusted certificates- Returns:
- updated builder instance
- See Also:
-
trustedCertificatesPem
Trusted certificates.- Parameters:
consumer
- trusted certificates- Returns:
- updated builder instance
- See Also:
-
clearRetryPolicy
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
retryPolicy
Retry policy.- Parameters:
retryPolicy
- retry policy- Returns:
- updated builder instance
- See Also:
-
clearProtocol
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
protocol
Exporter protocol type.- Parameters:
protocol
- exporter protocol type- Returns:
- updated builder instance
- See Also:
-
clearSslContext
Clear existing value of this property.- 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 this property.- 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 this property.- 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:
- the timeout
-
endpoint
Endpoint of the collector to which the exporter should transmit.- Returns:
- the endpoint
-
compression
Compression the exporter uses.- Returns:
- the compression
-
headers
Headers added to each export message.- Returns:
- the headers
-
clientTlsPrivateKeyPem
TLS client key.- Returns:
- the client tls private key pem
-
clientTlsCertificatePem
TLS certificate.- Returns:
- the client tls certificate pem
-
trustedCertificatesPem
Trusted certificates.- Returns:
- the trusted certificates pem
-
retryPolicy
Retry policy.- Returns:
- the retry policy
-
protocol
Exporter protocol type.- Returns:
- the protocol
-
sslContext
SSL context for the exporter.- Returns:
- the ssl context
-
trustManager
X509 trust manager for the exporter.- Returns:
- the trust manager
-
meterProvider
Meter provider for the exporter.- Returns:
- the meter provider
-
config
If this instance was configured, this would be the config instance used.- Returns:
- config node used to configure this builder, or empty if not configured
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-
config(io.helidon.config.Config)