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 voidaddUserAgentHeader(BiConsumer<String, String> consumer) Call theconsumer withan OTLPUser-Agentheader value of the form"OTel OTLP Exporter Java/{version}".static StringReturn an OTLPUser-Agentheader 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-Agentheader value of the form"OTel OTLP Exporter Java/{version}".- See Also:
-
addUserAgentHeader
Call theconsumer withan OTLPUser-Agentheader value of the form"OTel OTLP Exporter Java/{version}".- See Also:
-