Class HttpExportConfiguration
-
- All Implemented Interfaces:
public final class HttpExportConfigurationType-safe config DSL that controls how HTTP export of telemetry should behave.
-
-
Field Summary
Fields Modifier and Type Field Description private StringbaseUrlprivate Map<String, String>baseHeadersprivate Compressioncompressionprivate SSLContextConnectivitysslContextprivate ClientTlsConnectivityclientTls
-
Method Summary
Modifier and Type Method Description final StringgetBaseUrl()Global URL for HTTP export requests. final UnitsetBaseUrl(String baseUrl)Global URL for HTTP export requests. final Map<String, String>getBaseHeaders()Global headers that should be attached to any HTTP export requests. final UnitsetBaseHeaders(Map<String, String> baseHeaders)Global headers that should be attached to any HTTP export requests. final CompressiongetCompression()Default compression algorithm for all export requests. final UnitsetCompression(Compression compression)Default compression algorithm for all export requests. final SSLContextConnectivitygetSslContext()Default SSL context for all export requests. final UnitsetSslContext(SSLContextConnectivity sslContext)Default SSL context for all export requests. final ClientTlsConnectivitygetClientTls()Sets ths client key and the certificate chain to use for verifying client for all requests when TLS is enabled. final UnitsetClientTls(ClientTlsConnectivity clientTls)Sets ths client key and the certificate chain to use for verifying client for all requests when TLS is enabled. final Unitspans(Function1<EndpointConfiguration, Unit> action)Override the default configuration for the v1/traces endpoint only. final Unitlogs(Function1<EndpointConfiguration, Unit> action)Override the default configuration for the v1/logs endpoint only. final Unitmetrics(Function1<EndpointConfiguration, Unit> action)Override the default configuration for the v1/metrics endpoint only. -
-
Method Detail
-
getBaseUrl
final String getBaseUrl()
Global URL for HTTP export requests.
-
setBaseUrl
final Unit setBaseUrl(String baseUrl)
Global URL for HTTP export requests.
-
getBaseHeaders
final Map<String, String> getBaseHeaders()
Global headers that should be attached to any HTTP export requests.
-
setBaseHeaders
final Unit setBaseHeaders(Map<String, String> baseHeaders)
Global headers that should be attached to any HTTP export requests.
-
getCompression
final Compression getCompression()
Default compression algorithm for all export requests.
-
setCompression
final Unit setCompression(Compression compression)
Default compression algorithm for all export requests.
-
getSslContext
final SSLContextConnectivity getSslContext()
Default SSL context for all export requests.
-
setSslContext
final Unit setSslContext(SSLContextConnectivity sslContext)
Default SSL context for all export requests.
-
getClientTls
final ClientTlsConnectivity getClientTls()
Sets ths client key and the certificate chain to use for verifying client for all requests when TLS is enabled.
-
setClientTls
final Unit setClientTls(ClientTlsConnectivity clientTls)
Sets ths client key and the certificate chain to use for verifying client for all requests when TLS is enabled.
-
spans
final Unit spans(Function1<EndpointConfiguration, Unit> action)
Override the default configuration for the v1/traces endpoint only.
-
logs
final Unit logs(Function1<EndpointConfiguration, Unit> action)
Override the default configuration for the v1/logs endpoint only.
-
metrics
final Unit metrics(Function1<EndpointConfiguration, Unit> action)
Override the default configuration for the v1/metrics endpoint only.
-
-
-
-