Class OtlpUserAgent


  • public final class OtlpUserAgent
    extends java.lang.Object
    This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String userAgent  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private OtlpUserAgent()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addUserAgentHeader​(java.util.function.BiConsumer<java.lang.String,​java.lang.String> consumer)
      Call the consumer with an OTLP User-Agent header value of the form "OTel OTLP Exporter Java/{version}".
      static java.lang.String getUserAgent()
      Return an OTLP User-Agent header value of the form "OTel OTLP Exporter Java/{version}".
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OtlpUserAgent

        private OtlpUserAgent()
    • Method Detail

      • getUserAgent

        public static java.lang.String getUserAgent()
        Return an OTLP User-Agent header value of the form "OTel OTLP Exporter Java/{version}".
        See Also:
        OTLP Exporter User Agent
      • addUserAgentHeader

        public static void addUserAgentHeader​(java.util.function.BiConsumer<java.lang.String,​java.lang.String> consumer)
        Call the consumer with an OTLP User-Agent header value of the form "OTel OTLP Exporter Java/{version}".
        See Also:
        OTLP Exporter User Agent