Class OtlpConfigUtil
java.lang.Object
io.opentelemetry.exporter.otlp.internal.OtlpConfigUtil
This class is internal and is hence not for public use. Its APIs are unstable and can change at
any time.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidconfigureOtlpExporterBuilder(String dataType, ConfigProperties config, Consumer<String> setEndpoint, BiConsumer<String, String> addHeader, Consumer<String> setCompression, Consumer<Duration> setTimeout, Consumer<byte[]> setTrustedCertificates, BiConsumer<byte[], byte[]> setClientTls, Consumer<RetryPolicy> setRetryPolicy, Consumer<MemoryMode> setMemoryMode) Invoke the setters with the OTLP configuration for thedataType.static voidconfigureOtlpExporterBuilder(String dataType, StructuredConfigProperties config, Consumer<String> setEndpoint, BiConsumer<String, String> addHeader, Consumer<String> setCompression, Consumer<Duration> setTimeout, Consumer<byte[]> setTrustedCertificates, BiConsumer<byte[], byte[]> setClientTls, Consumer<RetryPolicy> setRetryPolicy, Consumer<MemoryMode> setMemoryMode) Invoke the setters with the OTLP configuration for thedataType.static StringgetOtlpProtocol(String dataType, ConfigProperties config) Determine the configured OTLP protocol for thedataType.static StringDetermine the configured OTLP protocol for thedataType.
-
Field Details
-
DATA_TYPE_TRACES
- See Also:
-
DATA_TYPE_METRICS
- See Also:
-
DATA_TYPE_LOGS
- See Also:
-
PROTOCOL_GRPC
- See Also:
-
PROTOCOL_HTTP_PROTOBUF
- See Also:
-
-
Method Details
-
getOtlpProtocol
Determine the configured OTLP protocol for thedataType. -
getStructuredConfigOtlpProtocol
Determine the configured OTLP protocol for thedataType. -
configureOtlpExporterBuilder
public static void configureOtlpExporterBuilder(String dataType, ConfigProperties config, Consumer<String> setEndpoint, BiConsumer<String, String> addHeader, Consumer<String> setCompression, Consumer<Duration> setTimeout, Consumer<byte[]> setTrustedCertificates, BiConsumer<byte[], byte[]> setClientTls, Consumer<RetryPolicy> setRetryPolicy, Consumer<MemoryMode> setMemoryMode) Invoke the setters with the OTLP configuration for thedataType. -
configureOtlpExporterBuilder
public static void configureOtlpExporterBuilder(String dataType, StructuredConfigProperties config, Consumer<String> setEndpoint, BiConsumer<String, String> addHeader, Consumer<String> setCompression, Consumer<Duration> setTimeout, Consumer<byte[]> setTrustedCertificates, BiConsumer<byte[], byte[]> setClientTls, Consumer<RetryPolicy> setRetryPolicy, Consumer<MemoryMode> setMemoryMode) Invoke the setters with the OTLP configuration for thedataType.
-