Skip to content

Commit

Permalink
fix(opentracing-shim): register tracer provider for complete traces (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sleighzy authored May 1, 2020
1 parent 8461bdc commit ea773c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/opentracing-shim/shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ function shim(serviceName) {
const provider = new NodeTracerProvider();

provider.addSpanProcessor(new SimpleSpanProcessor(getExporter(serviceName)));
// Initialize the OpenTelemetry APIs to use the NodeTracerProvider bindings
provider.register();

return new TracerShim(provider.getTracer('opentracing-shim'));
}
Expand Down

0 comments on commit ea773c8

Please sign in to comment.