From 066279cf743705032df4e3eaa30eaff1a1e4b989 Mon Sep 17 00:00:00 2001 From: Aaron Abbott Date: Wed, 16 Aug 2023 20:02:18 +0000 Subject: [PATCH] Revert "fix(example-opencensus-shim): avoid OpenCensus auto instrumentations (#3951)" This reverts commit 15ede4700b6049c44f30e511a7e8a643519ad254. --- experimental/CHANGELOG.md | 2 ++ experimental/examples/opencensus-shim/package.json | 2 +- experimental/examples/opencensus-shim/setup.js | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/experimental/CHANGELOG.md b/experimental/CHANGELOG.md index 0c4f724d83..b4dddca81c 100644 --- a/experimental/CHANGELOG.md +++ b/experimental/CHANGELOG.md @@ -20,6 +20,8 @@ All notable changes to experimental packages in this project will be documented ### :bug: (Bug Fix) +* Revert "fix(example-opencensus-shim): avoid OpenCensus auto instrumentations (#3951)" [#4072](https://github.com/open-telemetry/opentelemetry-js/pull/4072) @aabmass + ### :books: (Refine Doc) ### :house: (Internal) diff --git a/experimental/examples/opencensus-shim/package.json b/experimental/examples/opencensus-shim/package.json index d3c2726c36..4356cb718e 100644 --- a/experimental/examples/opencensus-shim/package.json +++ b/experimental/examples/opencensus-shim/package.json @@ -28,7 +28,7 @@ }, "dependencies": { "@opencensus/core": "0.1.0", - "@opencensus/nodejs-base": "0.1.0", + "@opencensus/nodejs": "0.1.0", "@opentelemetry/api": "1.4.1", "@opentelemetry/exporter-trace-otlp-grpc": "0.41.2", "@opentelemetry/resources": "1.15.2", diff --git a/experimental/examples/opencensus-shim/setup.js b/experimental/examples/opencensus-shim/setup.js index 37206971e7..e96c62ae0c 100644 --- a/experimental/examples/opencensus-shim/setup.js +++ b/experimental/examples/opencensus-shim/setup.js @@ -29,7 +29,7 @@ const { } = require('@opentelemetry/semantic-conventions'); module.exports = function setup(serviceName) { - const tracing = require('@opencensus/nodejs-base'); + const tracing = require('@opencensus/nodejs'); diag.setLogger(new DiagConsoleLogger(), { logLevel: DiagLogLevel.ALL }); const provider = new NodeTracerProvider({