Class OtlpExporterSettings


  • public final class OtlpExporterSettings
    extends java.lang.Object
    Configurable shared settings for all OTLP-based exporters.
    • 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
    • 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 Config
        log - the Cinnamon Logger
        Returns:
        OTLP exporter settings from config
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object