Skip to content

Commit

Permalink
fix(opentracing-shim): update opentracing shim example (#990)
Browse files Browse the repository at this point in the history
  • Loading branch information
sleighzy authored Apr 29, 2020
1 parent e4e71b8 commit 5d2aef3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/opentracing-shim/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const http = require('http');
const opentracing = require('opentracing');
const shim = require('./shim').shim('http_client_service');

opentracing.setGlobalTracer(shim);
opentracing.initGlobalTracer(shim);
const tracer = opentracing.globalTracer();

makeRequest();
Expand Down
2 changes: 1 addition & 1 deletion examples/opentracing-shim/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const opentracing = require('opentracing');
const utils = require('./utils');
const shim = require('./shim').shim('http_server_service');

opentracing.setGlobalTracer(shim);
opentracing.initGlobalTracer(shim);
const tracer = opentracing.globalTracer();

startServer(3000);
Expand Down

0 comments on commit 5d2aef3

Please sign in to comment.