Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
Since GaaS Opentelemetry is still in the early stages and hasn't been rolled out service-wide, it should not be configuring the opentelemetry instance as global otherwise it can run into the following errors when combined with existing servlet infrastructure that uses Opentelemetry as well:
Caused by: java.lang.IllegalStateException: GlobalOpenTelemetry.set has already been called. GlobalOpenTelemetry.set must be called only once before any calls to GlobalOpenTelemetry.get. If you are using the OpenTelemetrySdk, use OpenTelemetrySdkBuilder.buildAndRegisterGlobal instead. Previous invocation set to cause of this exception.