William Lo created GOBBLIN-2055:
-----------------------------------

             Summary: Set Opentelemetry to not register global due to 
conflicting instances
                 Key: GOBBLIN-2055
                 URL: https://issues.apache.org/jira/browse/GOBBLIN-2055
             Project: Apache Gobblin
          Issue Type: Bug
            Reporter: William Lo


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:
{code:java}
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. {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to