fix(example-opencensus-shim): avoid OpenCensus auto instrumentations (#3951)

* fix(example-opencensus-shim): avoid opencensus instrumentations being auto imported

* chore: changelog

---------

Co-authored-by: Haddas Bronfman <85441461+haddasbronfman@users.noreply.github.com>
This commit is contained in:
粒粒橙 2023-06-26 20:20:53 +08:00 committed by GitHub
parent 4dc8416f9e
commit 15ede4700b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -17,6 +17,7 @@ All notable changes to experimental packages in this project will be documented
* fix(exporter-logs-otlp-http): set useHex to true [#3875](https://github.com/open-telemetry/opentelemetry-js/pull/3875) @Nico385412
fix(otlp-proto-exporter-base): add missing type import [#3937](https://github.com/open-telemetry/opentelemetry-js/pull/3937) @pichlermarc
* fix(example-opencensus-shim): avoid OpenCensus auto instrumentations [#3951](https://github.com/open-telemetry/opentelemetry-js/pull/3951) @llc1123
### :books: (Refine Doc)

View File

@ -30,7 +30,7 @@
"@opentelemetry/api": "1.4.1",
"@opentelemetry/sdk-trace-node": "1.14.0",
"@opencensus/core": "0.1.0",
"@opencensus/nodejs": "0.1.0",
"@opencensus/nodejs-base": "0.1.0",
"@opentelemetry/semantic-conventions": "1.14.0",
"@opentelemetry/exporter-trace-otlp-grpc": "0.40.0",
"@opentelemetry/resources": "1.14.0",

View File

@ -29,7 +29,7 @@ const {
} = require('@opentelemetry/semantic-conventions');
module.exports = function setup(serviceName) {
const tracing = require('@opencensus/nodejs');
const tracing = require('@opencensus/nodejs-base');
diag.setLogger(new DiagConsoleLogger(), { logLevel: DiagLogLevel.ALL });
const provider = new NodeTracerProvider({