diff --git a/examples/opentracing-shim/client.js b/examples/opentracing-shim/client.js
index 6f98c2efc50..451467e3ef9 100644
--- a/examples/opentracing-shim/client.js
+++ b/examples/opentracing-shim/client.js
@@ -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();
diff --git a/examples/opentracing-shim/server.js b/examples/opentracing-shim/server.js
index 23661667e95..66c0803ccda 100644
--- a/examples/opentracing-shim/server.js
+++ b/examples/opentracing-shim/server.js
@@ -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);