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 TypeFieldDescriptionstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionHttpExporterBuilder(String exporterName, String type, String defaultEndpoint) -
Method Summary
Modifier and TypeMethodDescriptionaddConstantHeaders(String key, String value) build()copy()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:
-
-
Constructor Details
-
HttpExporterBuilder
-
-
Method Details
-
setTimeout
-
setConnectTimeout
-
setEndpoint
-
setCompression
-
addConstantHeaders
-
setHeadersSupplier
-
setAuthenticator
-
setTrustManagerFromCerts
-
setKeyManagerFromCerts
-
setSslContext
-
setMeterProvider
-
setRetryPolicy
-
setProxyOptions
-
exportAsJson
-
copy
-
build
-
toString
-
toString
-