Class OtlpHttpExporterConfig.Builder
java.lang.Object
io.helidon.telemetry.otelconfig.OtlpExporterConfig.BuilderBase<OtlpHttpExporterConfig.Builder, OtlpHttpExporterConfig>
io.helidon.telemetry.otelconfig.OtlpHttpExporterConfig.BuilderBase<OtlpHttpExporterConfig.Builder, OtlpHttpExporterConfig>
io.helidon.telemetry.otelconfig.OtlpHttpExporterConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<OtlpHttpExporterConfig.Builder, OtlpHttpExporterConfig>, Builder<OtlpHttpExporterConfig.Builder, OtlpHttpExporterConfig>, ConfigBuilderSupport.ConfiguredBuilder<OtlpHttpExporterConfig.Builder, OtlpHttpExporterConfig>, Supplier<OtlpHttpExporterConfig>
- Enclosing interface:
OtlpHttpExporterConfig
public static class OtlpHttpExporterConfig.Builder
extends OtlpHttpExporterConfig.BuilderBase<OtlpHttpExporterConfig.Builder, OtlpHttpExporterConfig>
implements Builder<OtlpHttpExporterConfig.Builder, OtlpHttpExporterConfig>
Fluent API builder for
OtlpHttpExporterConfig.-
Nested Class Summary
Nested classes/interfaces inherited from class OtlpHttpExporterConfig.BuilderBase
OtlpHttpExporterConfig.BuilderBase.OtlpHttpExporterConfigImplModifier 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. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class OtlpHttpExporterConfig.BuilderBase
clearProxyOptions, config, from, from, preBuildPrototype, proxyOptions, proxyOptions, toString, validatePrototypeModifier 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 Builder
get, identity, updateModifier and TypeMethodDescriptiondefault OtlpHttpExporterConfigget()default OtlpHttpExporterConfig.Builderidentity()Instance of this builder as the correct type.default OtlpHttpExporterConfig.Builderupdate(Consumer<OtlpHttpExporterConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault OtlpHttpExporterConfig.Builderself()Instance of this builder as the correct type.
-
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<OtlpHttpExporterConfig.Builder, OtlpHttpExporterConfig>- Returns:
- an instance of the setup object created from this builder
-
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<OtlpHttpExporterConfig.Builder, OtlpHttpExporterConfig>- Returns:
- instance of the built type
-