Class OtlpUserAgent
java.lang.Object
io.opentelemetry.exporter.otlp.internal.OtlpUserAgent
This class is internal and is hence not for public use. Its APIs are unstable and can change at
any time.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addUserAgentHeader
(BiConsumer<String, String> consumer) Call theconsumer with
an OTLPUser-Agent
header value of the form"OTel OTLP Exporter Java/{version}"
.static String
Return an OTLPUser-Agent
header value of the form"OTel OTLP Exporter Java/{version}"
.
-
Field Details
-
userAgent
- See Also:
-
-
Constructor Details
-
OtlpUserAgent
private OtlpUserAgent()
-
-
Method Details
-
getUserAgent
Return an OTLPUser-Agent
header value of the form"OTel OTLP Exporter Java/{version}"
.- See Also:
-
addUserAgentHeader
Call theconsumer with
an OTLPUser-Agent
header value of the form"OTel OTLP Exporter Java/{version}"
.- See Also:
-