Class HttpExporterBuilder<T extends Marshaler>
java.lang.Object
io.opentelemetry.exporter.internal.http.HttpExporterBuilder<T>
A builder for
HttpExporter.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Authenticatorprivate Compressorprivate longstatic final longstatic final longprivate Stringprivate booleanprivate final Stringprivate static final Loggerprivate Supplier<MeterProvider> private ProxyOptionsprivate RetryPolicyprivate longprivate TlsConfigHelperprivate final String -
Constructor Summary
ConstructorsConstructorDescriptionHttpExporterBuilder(String exporterName, String type, String defaultEndpoint) -
Method Summary
Modifier and TypeMethodDescriptionaddConstantHeaders(String key, String value) build()copy()private static HttpSenderProviderResolve theHttpSenderProvider.setAuthenticator(Authenticator authenticator) setCompression(Compressor compressor) setConnectTimeout(long timeout, TimeUnit unit) setEndpoint(String endpoint) setHeadersSupplier(Supplier<Map<String, String>> headerSupplier) setKeyManagerFromCerts(byte[] privateKeyPem, byte[] certificatePem) setMeterProvider(Supplier<MeterProvider> meterProviderSupplier) setProxyOptions(ProxyOptions proxyOptions) setRetryPolicy(RetryPolicy retryPolicy) setSslContext(SSLContext sslContext, X509TrustManager trustManager) setTimeout(long timeout, TimeUnit unit) setTrustManagerFromCerts(byte[] trustedCertificatesPem) toString()toString(boolean includePrefixAndSuffix)
-
Field Details
-
DEFAULT_TIMEOUT_SECS
public static final long DEFAULT_TIMEOUT_SECS- See Also:
-
DEFAULT_CONNECT_TIMEOUT_SECS
public static final long DEFAULT_CONNECT_TIMEOUT_SECS- See Also:
-
LOGGER
-
exporterName
-
type
-
endpoint
-
timeoutNanos
private long timeoutNanos -
compressor
-
connectTimeoutNanos
private long connectTimeoutNanos -
proxyOptions
-
exportAsJson
private boolean exportAsJson -
constantHeaders
-
headerSupplier
-
tlsConfigHelper
-
retryPolicy
-
meterProviderSupplier
-
authenticator
-
-
Constructor Details
-
HttpExporterBuilder
-
-
Method Details
-
setTimeout
-
setConnectTimeout
-
setEndpoint
-
setCompression
-
addConstantHeaders
-
setHeadersSupplier
-
setAuthenticator
-
setTrustManagerFromCerts
-
setKeyManagerFromCerts
-
setSslContext
-
setMeterProvider
-
setRetryPolicy
-
setProxyOptions
-
exportAsJson
-
copy
-
build
-
toString
-
toString
-
resolveHttpSenderProvider
Resolve theHttpSenderProvider.If no
HttpSenderProvideris available, throwIllegalStateException.If only one
HttpSenderProvideris available, use it.If multiple are available and..
io.opentelemetry.exporter.internal.http.HttpSenderProvideris empty, use the first found.io.opentelemetry.exporter.internal.http.HttpSenderProvideris set, use the matching provider. If none match, throwIllegalStateException.
-