Opentelemetry-js: Invalid method used for initialising GlobalTracer in opentracing-shim example

Created on 28 Apr 2020  路  1Comment  路  Source: open-telemetry/opentelemetry-js

The OpenTelemetry API was changed to use setGlobalTracerProvider(provider) instead of initGlobalTracerProvider(provider). The change made at the time appears to have broken the opentracing-shim example in the below two files as it also updated the opentracing.initGlobalTracer(shim) call to opentracing.setGlobalTracer(shim).

https://github.com/open-telemetry/opentelemetry-js/pull/839/files#diff-90edab116f366300c10d75d1152a0c90

https://github.com/open-telemetry/opentelemetry-js/pull/839/files#diff-91dfa22f1a98990b3bc83ba65bcdee0a

bug

Most helpful comment

I'll have a PR for this shortly.

>All comments

I'll have a PR for this shortly.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

naseemkullah picture naseemkullah  路  5Comments

rbruggem picture rbruggem  路  5Comments

naseemkullah picture naseemkullah  路  6Comments

lizthegrey picture lizthegrey  路  6Comments

obecny picture obecny  路  7Comments