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.
-
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}".
-
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:
-