Class OtlpExporterSettings
- java.lang.Object
-
- com.lightbend.cinnamon.opentelemetry.OtlpExporterSettings
-
public final class OtlpExporterSettings extends java.lang.Object
Configurable shared settings for all OTLP-based exporters.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OtlpExporterSettings.RetryPolicySettings
Configurable retry policy settings for OTLP-based exporters.
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
compression
java.time.Duration
connectTimeout
java.lang.String
endpoint
java.util.Map<java.lang.String,java.lang.String>
headers
java.util.Optional<OtlpExporterSettings.RetryPolicySettings>
retryPolicy
java.time.Duration
timeout
-
Constructor Summary
Constructors Constructor Description OtlpExporterSettings(java.lang.String endpoint, java.lang.String compression, java.time.Duration timeout, java.time.Duration connectTimeout, java.util.Map<java.lang.String,java.lang.String> headers, java.util.Optional<OtlpExporterSettings.RetryPolicySettings> retryPolicy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OtlpExporterSettings
fromConfig(com.typesafe.config.Config config, Logger log)
Create OTLP exporter settings from configuration.java.lang.String
toString()
-
-
-
Field Detail
-
endpoint
public final java.lang.String endpoint
-
compression
public final java.lang.String compression
-
timeout
public final java.time.Duration timeout
-
connectTimeout
public final java.time.Duration connectTimeout
-
headers
public final java.util.Map<java.lang.String,java.lang.String> headers
-
retryPolicy
public final java.util.Optional<OtlpExporterSettings.RetryPolicySettings> retryPolicy
-
-
Constructor Detail
-
OtlpExporterSettings
public OtlpExporterSettings(java.lang.String endpoint, java.lang.String compression, java.time.Duration timeout, java.time.Duration connectTimeout, java.util.Map<java.lang.String,java.lang.String> headers, java.util.Optional<OtlpExporterSettings.RetryPolicySettings> retryPolicy)
-
-
Method Detail
-
fromConfig
public static OtlpExporterSettings fromConfig(com.typesafe.config.Config config, Logger log)
Create OTLP exporter settings from configuration.- Parameters:
config
- the exporter section Configlog
- the Cinnamon Logger- Returns:
- OTLP exporter settings from config
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-