diff --git a/detectors/node/opentelemetry-resource-detector-github/package.json b/detectors/node/opentelemetry-resource-detector-github/package.json index 0f20874e115..c6572be0aac 100644 --- a/detectors/node/opentelemetry-resource-detector-github/package.json +++ b/detectors/node/opentelemetry-resource-detector-github/package.json @@ -43,10 +43,10 @@ "access": "public" }, "peerDependencies": { - "@opentelemetry/api": "^0.20.0" + "@opentelemetry/api": "^0.21.0" }, "devDependencies": { - "@opentelemetry/api": "0.20.0", + "@opentelemetry/api": "0.21.0", "@types/mocha": "8.2.2", "@types/node": "14.17.2", "@types/sinon": "10.0.2", @@ -60,6 +60,6 @@ "typescript": "4.3.2" }, "dependencies": { - "@opentelemetry/resources": "^0.20.0" + "@opentelemetry/resources": "^0.21.0" } } diff --git a/examples/dns/package.json b/examples/dns/package.json index 90058ac28a7..04842e386cb 100644 --- a/examples/dns/package.json +++ b/examples/dns/package.json @@ -26,13 +26,13 @@ "url": "https://github.com/open-telemetry/opentelemetry-js-contrib/issues" }, "dependencies": { - "@opentelemetry/api": "^0.20.0", - "@opentelemetry/exporter-jaeger": "^0.20.0", - "@opentelemetry/exporter-zipkin": "^0.20.0", - "@opentelemetry/instrumentation": "^0.20.0", + "@opentelemetry/api": "^0.21.0", + "@opentelemetry/exporter-jaeger": "^0.21.0", + "@opentelemetry/exporter-zipkin": "^0.21.0", + "@opentelemetry/instrumentation": "^0.21.0", "@opentelemetry/instrumentation-dns": "^0.15.0", - "@opentelemetry/node": "^0.20.0", - "@opentelemetry/tracing": "^0.20.0" + "@opentelemetry/node": "^0.21.0", + "@opentelemetry/tracing": "^0.21.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib#readme", "devDependencies": { diff --git a/examples/express/package.json b/examples/express/package.json index 7f38c7e4401..8d74c5f2b49 100644 --- a/examples/express/package.json +++ b/examples/express/package.json @@ -28,14 +28,14 @@ "url": "https://github.com/open-telemetry/opentelemetry-js/issues" }, "dependencies": { - "@opentelemetry/api": "^0.20.0", - "@opentelemetry/exporter-jaeger": "^0.20.0", - "@opentelemetry/exporter-zipkin": "^0.20.0", - "@opentelemetry/instrumentation": "^0.20.0", + "@opentelemetry/api": "^0.21.0", + "@opentelemetry/exporter-jaeger": "^0.21.0", + "@opentelemetry/exporter-zipkin": "^0.21.0", + "@opentelemetry/instrumentation": "^0.21.0", "@opentelemetry/instrumentation-express": "^0.15.0", - "@opentelemetry/instrumentation-http": "^0.20.0", - "@opentelemetry/node": "^0.20.0", - "@opentelemetry/tracing": "^0.20.0", + "@opentelemetry/instrumentation-http": "^0.21.0", + "@opentelemetry/node": "^0.21.0", + "@opentelemetry/tracing": "^0.21.0", "axios": "^0.21.1", "cross-env": "^7.0.3", "express": "^4.17.1" diff --git a/examples/graphql/package.json b/examples/graphql/package.json index ce7133e4668..a8982b0ae59 100644 --- a/examples/graphql/package.json +++ b/examples/graphql/package.json @@ -31,13 +31,13 @@ "url": "https://github.com/open-telemetry/opentelemetry-js/issues" }, "dependencies": { - "@opentelemetry/exporter-collector": "^0.20.0", - "@opentelemetry/instrumentation": "^0.20.0", + "@opentelemetry/exporter-collector": "^0.21.0", + "@opentelemetry/instrumentation": "^0.21.0", "@opentelemetry/instrumentation-graphql": "^0.15.0", - "@opentelemetry/node": "^0.20.0", + "@opentelemetry/node": "^0.21.0", "@opentelemetry/instrumentation-express": "^0.15.0", - "@opentelemetry/instrumentation-http": "^0.20.0", - "@opentelemetry/tracing": "^0.20.0", + "@opentelemetry/instrumentation-http": "^0.21.0", + "@opentelemetry/tracing": "^0.21.0", "apollo-server": "^2.18.1", "express": "^4.17.1", "express-graphql": "^0.11.0", diff --git a/examples/grpc-census-prop/package.json b/examples/grpc-census-prop/package.json index 695373d8129..ba710b307b3 100644 --- a/examples/grpc-census-prop/package.json +++ b/examples/grpc-census-prop/package.json @@ -34,13 +34,13 @@ "@opencensus/instrumentation-grpc": "0.0.21", "@opencensus/nodejs": "0.0.21", "@opencensus/propagation-binaryformat": "0.0.21", - "@opentelemetry/api": "^0.20.0", - "@opentelemetry/core": "^0.20.0", - "@opentelemetry/instrumentation": "^0.20.0", - "@opentelemetry/instrumentation-grpc": "^0.20.0", - "@opentelemetry/node": "^0.20.0", + "@opentelemetry/api": "^0.21.0", + "@opentelemetry/core": "^0.21.0", + "@opentelemetry/instrumentation": "^0.21.0", + "@opentelemetry/instrumentation-grpc": "^0.21.0", + "@opentelemetry/node": "^0.21.0", "@opentelemetry/propagator-grpc-census-binary": "^0.15.0", - "@opentelemetry/tracing": "^0.20.0", + "@opentelemetry/tracing": "^0.21.0", "grpc": "^1.24.2" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js#readme", diff --git a/examples/grpc_dynamic_codegen/package.json b/examples/grpc_dynamic_codegen/package.json index b559f28def1..5762f2e2eb3 100644 --- a/examples/grpc_dynamic_codegen/package.json +++ b/examples/grpc_dynamic_codegen/package.json @@ -28,12 +28,12 @@ }, "dependencies": { "@grpc/proto-loader": "^0.4.0", - "@opentelemetry/api": "^0.20.0", - "@opentelemetry/exporter-jaeger": "^0.20.0", - "@opentelemetry/exporter-zipkin": "^0.20.0", - "@opentelemetry/node": "^0.20.0", - "@opentelemetry/instrumentation-grpc": "^0.20.0", - "@opentelemetry/tracing": "^0.20.0", + "@opentelemetry/api": "^0.21.0", + "@opentelemetry/exporter-jaeger": "^0.21.0", + "@opentelemetry/exporter-zipkin": "^0.21.0", + "@opentelemetry/node": "^0.21.0", + "@opentelemetry/instrumentation-grpc": "^0.21.0", + "@opentelemetry/tracing": "^0.21.0", "grpc": "^1.24.6" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js#readme", diff --git a/examples/hapi/package.json b/examples/hapi/package.json index 686a6192f50..cf1004fdc7b 100644 --- a/examples/hapi/package.json +++ b/examples/hapi/package.json @@ -32,14 +32,14 @@ }, "dependencies": { "@hapi/hapi": "^19.2.0", - "@opentelemetry/api": "^0.20.0", - "@opentelemetry/exporter-jaeger": "^0.20.0", - "@opentelemetry/exporter-zipkin": "^0.20.0", - "@opentelemetry/instrumentation": "^0.20.0", + "@opentelemetry/api": "^0.21.0", + "@opentelemetry/exporter-jaeger": "^0.21.0", + "@opentelemetry/exporter-zipkin": "^0.21.0", + "@opentelemetry/instrumentation": "^0.21.0", "@opentelemetry/instrumentation-hapi": "^0.15.0", - "@opentelemetry/instrumentation-http": "^0.20.0", - "@opentelemetry/node": "^0.20.0", - "@opentelemetry/tracing": "^0.20.0", + "@opentelemetry/instrumentation-http": "^0.21.0", + "@opentelemetry/node": "^0.21.0", + "@opentelemetry/tracing": "^0.21.0", "axios": "^0.21.1" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib#readme", diff --git a/examples/host-metrics/package.json b/examples/host-metrics/package.json index 57620a5cfd3..620b5a52052 100644 --- a/examples/host-metrics/package.json +++ b/examples/host-metrics/package.json @@ -26,13 +26,13 @@ "url": "https://github.com/open-telemetry/opentelemetry-js/issues" }, "dependencies": { - "@opentelemetry/api": "^0.20.0", - "@opentelemetry/core": "^0.20.0", - "@opentelemetry/exporter-collector": "^0.20.0", - "@opentelemetry/exporter-prometheus": "^0.20.0", + "@opentelemetry/api": "^0.21.0", + "@opentelemetry/core": "^0.21.0", + "@opentelemetry/exporter-collector": "^0.21.0", + "@opentelemetry/exporter-prometheus": "^0.21.0", "@opentelemetry/host-metrics": "^0.15.0", - "@opentelemetry/instrumentation": "^0.20.0", - "@opentelemetry/metrics": "^0.20.0" + "@opentelemetry/instrumentation": "^0.21.0", + "@opentelemetry/metrics": "^0.21.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js#readme" } diff --git a/examples/ioredis/package.json b/examples/ioredis/package.json index 0d0dab0be60..7f69c8e686a 100644 --- a/examples/ioredis/package.json +++ b/examples/ioredis/package.json @@ -28,12 +28,12 @@ "url": "https://github.com/open-telemetry/opentelemetry-js-contrib/issues" }, "dependencies": { - "@opentelemetry/api": "^0.20.0", - "@opentelemetry/exporter-jaeger": "^0.20.0", - "@opentelemetry/instrumentation": "^0.20.0", + "@opentelemetry/api": "^0.21.0", + "@opentelemetry/exporter-jaeger": "^0.21.0", + "@opentelemetry/instrumentation": "^0.21.0", "@opentelemetry/instrumentation-ioredis": "^0.15.0", - "@opentelemetry/node": "^0.20.0", - "@opentelemetry/tracing": "^0.20.0", + "@opentelemetry/node": "^0.21.0", + "@opentelemetry/tracing": "^0.21.0", "ioredis": "^4.22.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib#readme" diff --git a/examples/koa/package.json b/examples/koa/package.json index 8bcc215491c..7270bba1bb7 100644 --- a/examples/koa/package.json +++ b/examples/koa/package.json @@ -32,14 +32,14 @@ }, "dependencies": { "@koa/router": "^9.3.1", - "@opentelemetry/api": "^0.20.0", - "@opentelemetry/exporter-jaeger": "^0.20.0", - "@opentelemetry/exporter-zipkin": "^0.20.0", - "@opentelemetry/instrumentation": "^0.20.0", - "@opentelemetry/instrumentation-http": "^0.20.0", + "@opentelemetry/api": "^0.21.0", + "@opentelemetry/exporter-jaeger": "^0.21.0", + "@opentelemetry/exporter-zipkin": "^0.21.0", + "@opentelemetry/instrumentation": "^0.21.0", + "@opentelemetry/instrumentation-http": "^0.21.0", "@opentelemetry/instrumentation-koa": "^0.15.0", - "@opentelemetry/node": "^0.20.0", - "@opentelemetry/tracing": "^0.20.0", + "@opentelemetry/node": "^0.21.0", + "@opentelemetry/tracing": "^0.21.0", "axios": "^0.21.1", "koa": "^2.13.0" }, diff --git a/examples/meta-node/package.json b/examples/meta-node/package.json index 85857107d97..01fac4275a1 100644 --- a/examples/meta-node/package.json +++ b/examples/meta-node/package.json @@ -35,12 +35,12 @@ "eslint": "^7.4.0" }, "dependencies": { - "@opentelemetry/api": "^0.20.0", + "@opentelemetry/api": "^0.21.0", "@opentelemetry/auto-instrumentations-node": "^0.15.0", - "@opentelemetry/exporter-collector": "^0.20.0", - "@opentelemetry/instrumentation": "^0.20.0", - "@opentelemetry/node": "^0.20.0", - "@opentelemetry/tracing": "^0.20.0", + "@opentelemetry/exporter-collector": "^0.21.0", + "@opentelemetry/instrumentation": "^0.21.0", + "@opentelemetry/node": "^0.21.0", + "@opentelemetry/tracing": "^0.21.0", "axios": "^0.21.1", "express": "^4.17.1" } diff --git a/examples/mongodb/package.json b/examples/mongodb/package.json index 347cd14aa2d..8db69530aa3 100644 --- a/examples/mongodb/package.json +++ b/examples/mongodb/package.json @@ -28,14 +28,14 @@ "url": "https://github.com/open-telemetry/opentelemetry-js-contrib/issues" }, "dependencies": { - "@opentelemetry/api": "^0.20.0", - "@opentelemetry/exporter-jaeger": "^0.20.0", - "@opentelemetry/exporter-zipkin": "^0.20.0", - "@opentelemetry/instrumentation": "^0.20.0", - "@opentelemetry/instrumentation-http": "^0.20.0", + "@opentelemetry/api": "^0.21.0", + "@opentelemetry/exporter-jaeger": "^0.21.0", + "@opentelemetry/exporter-zipkin": "^0.21.0", + "@opentelemetry/instrumentation": "^0.21.0", + "@opentelemetry/instrumentation-http": "^0.21.0", "@opentelemetry/instrumentation-mongodb": "^0.15.0", - "@opentelemetry/node": "^0.20.0", - "@opentelemetry/tracing": "^0.20.0", + "@opentelemetry/node": "^0.21.0", + "@opentelemetry/tracing": "^0.21.0", "mongodb": "^3.5.7" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib#readme", diff --git a/examples/mysql/package.json b/examples/mysql/package.json index 0ca199c9c75..20961bb9144 100644 --- a/examples/mysql/package.json +++ b/examples/mysql/package.json @@ -28,14 +28,14 @@ "url": "https://github.com/open-telemetry/opentelemetry-js/issues" }, "dependencies": { - "@opentelemetry/api": "^0.20.0", - "@opentelemetry/exporter-jaeger": "^0.20.0", - "@opentelemetry/exporter-zipkin": "^0.20.0", - "@opentelemetry/instrumentation": "^0.20.0", - "@opentelemetry/instrumentation-http": "^0.20.0", + "@opentelemetry/api": "^0.21.0", + "@opentelemetry/exporter-jaeger": "^0.21.0", + "@opentelemetry/exporter-zipkin": "^0.21.0", + "@opentelemetry/instrumentation": "^0.21.0", + "@opentelemetry/instrumentation-http": "^0.21.0", "@opentelemetry/instrumentation-mysql": "^0.15.0", - "@opentelemetry/node": "^0.20.0", - "@opentelemetry/tracing": "^0.20.0", + "@opentelemetry/node": "^0.21.0", + "@opentelemetry/tracing": "^0.21.0", "mysql": "*" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js#readme", diff --git a/examples/network/package.json b/examples/network/package.json index d8c1ee26a6a..cd76f6c3676 100644 --- a/examples/network/package.json +++ b/examples/network/package.json @@ -27,15 +27,15 @@ "url": "https://github.com/open-telemetry/opentelemetry-js-contrib/issues" }, "dependencies": { - "@opentelemetry/api": "^0.20.0", - "@opentelemetry/exporter-jaeger": "^0.20.0", - "@opentelemetry/exporter-zipkin": "^0.20.0", - "@opentelemetry/instrumentation": "^0.20.0", + "@opentelemetry/api": "^0.21.0", + "@opentelemetry/exporter-jaeger": "^0.21.0", + "@opentelemetry/exporter-zipkin": "^0.21.0", + "@opentelemetry/instrumentation": "^0.21.0", "@opentelemetry/instrumentation-net": "file:../../plugins/node/opentelemetry-instrumentation-net", - "@opentelemetry/instrumentation-http": "^0.20.0", + "@opentelemetry/instrumentation-http": "^0.21.0", "@opentelemetry/instrumentation-dns": "^0.15.0", - "@opentelemetry/node": "^0.20.0", - "@opentelemetry/tracing": "^0.20.0" + "@opentelemetry/node": "^0.21.0", + "@opentelemetry/tracing": "^0.21.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib#readme", "devDependencies": { diff --git a/examples/postgres/package.json b/examples/postgres/package.json index 36dfe5bd1ee..c3368fa6ace 100644 --- a/examples/postgres/package.json +++ b/examples/postgres/package.json @@ -30,14 +30,14 @@ "url": "https://github.com/open-telemetry/opentelemetry-js/issues" }, "dependencies": { - "@opentelemetry/api": "^0.20.0", - "@opentelemetry/exporter-jaeger": "^0.20.0", - "@opentelemetry/exporter-zipkin": "^0.20.0", - "@opentelemetry/instrumentation": "^0.20.0", - "@opentelemetry/instrumentation-http": "^0.20.0", + "@opentelemetry/api": "^0.21.0", + "@opentelemetry/exporter-jaeger": "^0.21.0", + "@opentelemetry/exporter-zipkin": "^0.21.0", + "@opentelemetry/instrumentation": "^0.21.0", + "@opentelemetry/instrumentation-http": "^0.21.0", "@opentelemetry/instrumentation-pg": "^0.16.0", - "@opentelemetry/node": "^0.20.0", - "@opentelemetry/tracing": "^0.20.0", + "@opentelemetry/node": "^0.21.0", + "@opentelemetry/tracing": "^0.21.0", "express": "^4.17.1", "pg": "^8.6.0" }, diff --git a/examples/react-load/preact/package.json b/examples/react-load/preact/package.json index 8d2cb06ec0b..1ea1d03c4d3 100644 --- a/examples/react-load/preact/package.json +++ b/examples/react-load/preact/package.json @@ -37,11 +37,11 @@ "sirv-cli": "1.0.3" }, "dependencies": { - "@opentelemetry/context-zone": "^0.20.0", - "@opentelemetry/exporter-collector": "^0.20.0", + "@opentelemetry/context-zone": "^0.21.0", + "@opentelemetry/exporter-collector": "^0.21.0", "@opentelemetry/plugin-react-load": "^0.15.0", - "@opentelemetry/tracing": "^0.20.0", - "@opentelemetry/web": "^0.20.0", + "@opentelemetry/tracing": "^0.21.0", + "@opentelemetry/web": "^0.21.0", "preact": "^10.3.2", "preact-render-to-string": "^5.1.4", "preact-router": "^3.2.1" diff --git a/examples/react-load/react/package.json b/examples/react-load/react/package.json index 06080bae929..26a3eb06d33 100644 --- a/examples/react-load/react/package.json +++ b/examples/react-load/react/package.json @@ -36,12 +36,12 @@ "ts-loader": "^6.0.4" }, "dependencies": { - "@opentelemetry/context-zone": "^0.20.0", - "@opentelemetry/core": "^0.20.0", - "@opentelemetry/exporter-collector": "^0.20.0", + "@opentelemetry/context-zone": "^0.21.0", + "@opentelemetry/core": "^0.21.0", + "@opentelemetry/exporter-collector": "^0.21.0", "@opentelemetry/plugin-react-load": "^0.15.0", - "@opentelemetry/tracing": "^0.20.0", - "@opentelemetry/web": "^0.20.0", + "@opentelemetry/tracing": "^0.21.0", + "@opentelemetry/web": "^0.21.0", "react": "^16.13.1", "react-dom": "^16.13.1", "react-router-dom": "^5.2.0", diff --git a/examples/redis/package.json b/examples/redis/package.json index 178bc4640a4..f570ce9a012 100644 --- a/examples/redis/package.json +++ b/examples/redis/package.json @@ -30,14 +30,14 @@ "url": "https://github.com/open-telemetry/opentelemetry-js/issues" }, "dependencies": { - "@opentelemetry/api": "^0.20.0", - "@opentelemetry/exporter-jaeger": "^0.20.0", - "@opentelemetry/exporter-zipkin": "^0.20.0", - "@opentelemetry/instrumentation": "^0.20.0", - "@opentelemetry/instrumentation-http": "^0.20.0", + "@opentelemetry/api": "^0.21.0", + "@opentelemetry/exporter-jaeger": "^0.21.0", + "@opentelemetry/exporter-zipkin": "^0.21.0", + "@opentelemetry/instrumentation": "^0.21.0", + "@opentelemetry/instrumentation-http": "^0.21.0", "@opentelemetry/instrumentation-redis": "^0.15.0", - "@opentelemetry/node": "^0.20.0", - "@opentelemetry/tracing": "^0.20.0", + "@opentelemetry/node": "^0.21.0", + "@opentelemetry/tracing": "^0.21.0", "axios": "^0.21.1", "express": "^4.17.1", "redis": "^2.8.0" diff --git a/examples/restify/package.json b/examples/restify/package.json index a25112fe644..5de7c0f6530 100644 --- a/examples/restify/package.json +++ b/examples/restify/package.json @@ -28,14 +28,14 @@ "url": "https://github.com/open-telemetry/opentelemetry-js/issues" }, "dependencies": { - "@opentelemetry/api": "^0.20.0", - "@opentelemetry/exporter-jaeger": "^0.20.0", - "@opentelemetry/exporter-zipkin": "^0.20.0", - "@opentelemetry/instrumentation": "^0.20.0", - "@opentelemetry/instrumentation-http": "^0.20.0", + "@opentelemetry/api": "^0.21.0", + "@opentelemetry/exporter-jaeger": "^0.21.0", + "@opentelemetry/exporter-zipkin": "^0.21.0", + "@opentelemetry/instrumentation": "^0.21.0", + "@opentelemetry/instrumentation-http": "^0.21.0", "@opentelemetry/instrumentation-restify": "^0.16.0", - "@opentelemetry/node": "^0.20.0", - "@opentelemetry/tracing": "^0.20.0", + "@opentelemetry/node": "^0.21.0", + "@opentelemetry/tracing": "^0.21.0", "restify": "^4.3.4" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js#readme", diff --git a/examples/router/package.json b/examples/router/package.json index 4d86ceb1071..ed694f1c1d8 100644 --- a/examples/router/package.json +++ b/examples/router/package.json @@ -28,14 +28,14 @@ "url": "https://github.com/open-telemetry/opentelemetry-js/issues" }, "dependencies": { - "@opentelemetry/api": "^0.20.0", - "@opentelemetry/exporter-jaeger": "^0.20.0", - "@opentelemetry/exporter-zipkin": "^0.20.0", - "@opentelemetry/instrumentation": "^0.20.0", - "@opentelemetry/instrumentation-http": "^0.20.0", + "@opentelemetry/api": "^0.21.0", + "@opentelemetry/exporter-jaeger": "^0.21.0", + "@opentelemetry/exporter-zipkin": "^0.21.0", + "@opentelemetry/instrumentation": "^0.21.0", + "@opentelemetry/instrumentation-http": "^0.21.0", "@opentelemetry/instrumentation-router": "^0.16.0", - "@opentelemetry/node": "^0.20.0", - "@opentelemetry/tracing": "^0.20.0", + "@opentelemetry/node": "^0.21.0", + "@opentelemetry/tracing": "^0.21.0", "router": "^1.3.5" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js#readme", diff --git a/examples/web/package.json b/examples/web/package.json index 9c1a4a3b949..0cd044211e9 100644 --- a/examples/web/package.json +++ b/examples/web/package.json @@ -34,18 +34,18 @@ "webpack-merge": "^4.2.2" }, "dependencies": { - "@opentelemetry/api": "^0.20.0", + "@opentelemetry/api": "^0.21.0", "@opentelemetry/auto-instrumentations-web": "^0.16.0", - "@opentelemetry/context-zone": "^0.20.0", - "@opentelemetry/core": "^0.20.0", - "@opentelemetry/exporter-collector": "^0.20.0", - "@opentelemetry/instrumentation": "^0.20.0", + "@opentelemetry/context-zone": "^0.21.0", + "@opentelemetry/core": "^0.21.0", + "@opentelemetry/exporter-collector": "^0.21.0", + "@opentelemetry/instrumentation": "^0.21.0", "@opentelemetry/instrumentation-document-load": "^0.16.0", "@opentelemetry/instrumentation-user-interaction": "^0.16.0", - "@opentelemetry/instrumentation-xml-http-request": "^0.20.0", - "@opentelemetry/propagator-b3": "^0.20.0", - "@opentelemetry/tracing": "^0.20.0", - "@opentelemetry/web": "^0.20.0" + "@opentelemetry/instrumentation-xml-http-request": "^0.21.0", + "@opentelemetry/propagator-b3": "^0.21.0", + "@opentelemetry/tracing": "^0.21.0", + "@opentelemetry/web": "^0.21.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib#readme" } diff --git a/metapackages/auto-instrumentations-node/package.json b/metapackages/auto-instrumentations-node/package.json index 850f23724eb..a131be4eee8 100644 --- a/metapackages/auto-instrumentations-node/package.json +++ b/metapackages/auto-instrumentations-node/package.json @@ -27,10 +27,10 @@ "url": "https://github.com/open-telemetry/opentelemetry-js-contrib/issues" }, "peerDependencies": { - "@opentelemetry/api": "^0.20.0" + "@opentelemetry/api": "^0.21.0" }, "devDependencies": { - "@opentelemetry/api": "0.20.0", + "@opentelemetry/api": "0.21.0", "@types/mocha": "7.0.2", "@types/node": "14.17.2", "@types/sinon": "10.0.2", @@ -44,12 +44,12 @@ "typescript": "4.3.2" }, "dependencies": { - "@opentelemetry/instrumentation": "^0.20.0", + "@opentelemetry/instrumentation": "^0.21.0", "@opentelemetry/instrumentation-dns": "^0.20.0", "@opentelemetry/instrumentation-express": "^0.20.0", "@opentelemetry/instrumentation-graphql": "^0.20.0", - "@opentelemetry/instrumentation-grpc": "^0.20.0", - "@opentelemetry/instrumentation-http": "^0.20.0", + "@opentelemetry/instrumentation-grpc": "^0.21.0", + "@opentelemetry/instrumentation-http": "^0.21.0", "@opentelemetry/instrumentation-ioredis": "^0.20.0", "@opentelemetry/instrumentation-koa": "^0.20.0", "@opentelemetry/instrumentation-mongodb": "^0.20.0", diff --git a/metapackages/auto-instrumentations-web/package.json b/metapackages/auto-instrumentations-web/package.json index 143b9a59147..5c849a33a6b 100644 --- a/metapackages/auto-instrumentations-web/package.json +++ b/metapackages/auto-instrumentations-web/package.json @@ -28,11 +28,11 @@ "url": "https://github.com/open-telemetry/opentelemetry-js-contrib/issues" }, "peerDependencies": { - "@opentelemetry/api": "^0.20.0" + "@opentelemetry/api": "^0.21.0" }, "devDependencies": { "@babel/core": "7.14.3", - "@opentelemetry/api": "0.20.0", + "@opentelemetry/api": "0.21.0", "@types/mocha": "8.2.2", "@types/node": "14.17.2", "@types/sinon": "10.0.2", @@ -59,10 +59,10 @@ "webpack-merge": "5.7.3" }, "dependencies": { - "@opentelemetry/instrumentation": "^0.20.0", + "@opentelemetry/instrumentation": "^0.21.0", "@opentelemetry/instrumentation-document-load": "^0.20.0", - "@opentelemetry/instrumentation-fetch": "^0.20.0", + "@opentelemetry/instrumentation-fetch": "^0.21.0", "@opentelemetry/instrumentation-user-interaction": "^0.20.0", - "@opentelemetry/instrumentation-xml-http-request": "^0.20.0" + "@opentelemetry/instrumentation-xml-http-request": "^0.21.0" } } diff --git a/packages/opentelemetry-host-metrics/package.json b/packages/opentelemetry-host-metrics/package.json index 5205a4efffe..4fed019570d 100644 --- a/packages/opentelemetry-host-metrics/package.json +++ b/packages/opentelemetry-host-metrics/package.json @@ -42,10 +42,10 @@ "access": "public" }, "peerDependencies": { - "@opentelemetry/api": "^0.20.0" + "@opentelemetry/api": "^0.21.0" }, "devDependencies": { - "@opentelemetry/api": "0.20.0", + "@opentelemetry/api": "0.21.0", "@types/mocha": "8.2.2", "@types/node": "14.17.2", "@types/sinon": "10.0.2", @@ -59,9 +59,9 @@ "typescript": "4.3.2" }, "dependencies": { - "@opentelemetry/api-metrics": "^0.20.0", - "@opentelemetry/core": "^0.20.0", - "@opentelemetry/metrics": "^0.20.0", + "@opentelemetry/api-metrics": "^0.21.0", + "@opentelemetry/core": "^0.21.0", + "@opentelemetry/metrics": "^0.21.0", "systeminformation": "^5.0.0" } } diff --git a/packages/opentelemetry-id-generator-aws-xray/package.json b/packages/opentelemetry-id-generator-aws-xray/package.json index ce928f3c48f..d74619b27c6 100644 --- a/packages/opentelemetry-id-generator-aws-xray/package.json +++ b/packages/opentelemetry-id-generator-aws-xray/package.json @@ -52,10 +52,10 @@ "README.md" ], "peerDependencies": { - "@opentelemetry/api": "^0.20.0" + "@opentelemetry/api": "^0.21.0" }, "devDependencies": { - "@opentelemetry/api": "0.20.0", + "@opentelemetry/api": "0.21.0", "@types/mocha": "8.2.2", "@types/node": "14.17.2", "@types/sinon": "10.0.2", @@ -79,6 +79,6 @@ "webpack": "4.46.0" }, "dependencies": { - "@opentelemetry/core": "^0.20.0" + "@opentelemetry/core": "^0.21.0" } } diff --git a/packages/opentelemetry-test-utils/package.json b/packages/opentelemetry-test-utils/package.json index c308421aa98..1c79c8d136f 100644 --- a/packages/opentelemetry-test-utils/package.json +++ b/packages/opentelemetry-test-utils/package.json @@ -24,16 +24,16 @@ }, "homepage": "https://github.com/open-telemetry/opentelemetry-js#readme", "peerDependencies": { - "@opentelemetry/api": "^0.20.0" + "@opentelemetry/api": "^0.21.0" }, "devDependencies": { - "@opentelemetry/api": "0.20.0", + "@opentelemetry/api": "0.21.0", "@types/node": "14.17.2", "gts": "3.1.0", "typescript": "4.3.2" }, "dependencies": { - "@opentelemetry/core": "^0.20.0", - "@opentelemetry/tracing": "^0.20.0" + "@opentelemetry/core": "^0.21.0", + "@opentelemetry/tracing": "^0.21.0" } } diff --git a/plugins/node/opentelemetry-instrumentation-aws-lambda/package.json b/plugins/node/opentelemetry-instrumentation-aws-lambda/package.json index 304358ed14d..4769a8edab8 100644 --- a/plugins/node/opentelemetry-instrumentation-aws-lambda/package.json +++ b/plugins/node/opentelemetry-instrumentation-aws-lambda/package.json @@ -41,12 +41,12 @@ "access": "public" }, "peerDependencies": { - "@opentelemetry/api": "^0.20.0" + "@opentelemetry/api": "^0.21.0" }, "devDependencies": { - "@opentelemetry/api": "0.20.0", - "@opentelemetry/core": "0.20.0", - "@opentelemetry/node": "0.20.0", + "@opentelemetry/api": "0.21.0", + "@opentelemetry/core": "0.21.0", + "@opentelemetry/node": "0.21.0", "@types/mocha": "7.0.2", "@types/node": "14.17.2", "codecov": "3.8.2", @@ -58,11 +58,11 @@ "typescript": "4.3.2" }, "dependencies": { - "@opentelemetry/instrumentation": "^0.20.0", + "@opentelemetry/instrumentation": "^0.21.0", "@opentelemetry/propagator-aws-xray": "^0.20.0", - "@opentelemetry/resources": "^0.20.0", - "@opentelemetry/semantic-conventions": "^0.20.0", - "@opentelemetry/tracing": "^0.20.0", + "@opentelemetry/resources": "^0.21.0", + "@opentelemetry/semantic-conventions": "^0.21.0", + "@opentelemetry/tracing": "^0.21.0", "@types/aws-lambda": "8.10.77" } } diff --git a/plugins/node/opentelemetry-instrumentation-bunyan/package.json b/plugins/node/opentelemetry-instrumentation-bunyan/package.json index 3b05b41b71c..ca68022f8a8 100644 --- a/plugins/node/opentelemetry-instrumentation-bunyan/package.json +++ b/plugins/node/opentelemetry-instrumentation-bunyan/package.json @@ -42,13 +42,13 @@ "access": "public" }, "peerDependencies": { - "@opentelemetry/api": "^0.20.0" + "@opentelemetry/api": "^0.21.0" }, "devDependencies": { - "@opentelemetry/api": "0.20.0", - "@opentelemetry/context-async-hooks": "0.20.0", - "@opentelemetry/node": "0.20.0", - "@opentelemetry/tracing": "0.20.0", + "@opentelemetry/api": "0.21.0", + "@opentelemetry/context-async-hooks": "0.21.0", + "@opentelemetry/node": "0.21.0", + "@opentelemetry/tracing": "0.21.0", "@types/mocha": "7.0.2", "@types/node": "14.17.2", "@types/sinon": "10.0.2", @@ -63,7 +63,7 @@ "typescript": "4.3.2" }, "dependencies": { - "@opentelemetry/instrumentation": "^0.20.0", + "@opentelemetry/instrumentation": "^0.21.0", "@types/bunyan": "1.8.6" } } diff --git a/plugins/node/opentelemetry-instrumentation-bunyan/test/bunyan.test.ts b/plugins/node/opentelemetry-instrumentation-bunyan/test/bunyan.test.ts index 1c8b9f7ed79..69d598d55b9 100644 --- a/plugins/node/opentelemetry-instrumentation-bunyan/test/bunyan.test.ts +++ b/plugins/node/opentelemetry-instrumentation-bunyan/test/bunyan.test.ts @@ -18,7 +18,7 @@ import { InMemorySpanExporter, SimpleSpanProcessor, } from '@opentelemetry/tracing'; -import { context, trace, NoopTracerProvider } from '@opentelemetry/api'; +import { context, INVALID_SPAN_CONTEXT, trace } from '@opentelemetry/api'; import { NodeTracerProvider } from '@opentelemetry/node'; import { isWrapped } from '@opentelemetry/instrumentation'; import { AsyncHooksContextManager } from '@opentelemetry/context-async-hooks'; @@ -101,8 +101,7 @@ describe('BunyanInstrumentation', () => { }); it('does not inject span context if span context is invalid', () => { - const noopTracer = new NoopTracerProvider().getTracer('noop'); - const span = noopTracer.startSpan('noop'); + const span = trace.wrapSpanContext(INVALID_SPAN_CONTEXT); context.with(trace.setSpan(context.active(), span), () => { logger.info('foo'); sinon.assert.calledOnce(writeSpy); diff --git a/plugins/node/opentelemetry-instrumentation-dns/package.json b/plugins/node/opentelemetry-instrumentation-dns/package.json index 7642c744f4c..99f5374e8b5 100644 --- a/plugins/node/opentelemetry-instrumentation-dns/package.json +++ b/plugins/node/opentelemetry-instrumentation-dns/package.json @@ -41,13 +41,13 @@ "access": "public" }, "peerDependencies": { - "@opentelemetry/api": "^0.20.0" + "@opentelemetry/api": "^0.21.0" }, "devDependencies": { - "@opentelemetry/api": "0.20.0", - "@opentelemetry/core": "0.20.0", - "@opentelemetry/node": "0.20.0", - "@opentelemetry/tracing": "0.20.0", + "@opentelemetry/api": "0.21.0", + "@opentelemetry/core": "0.21.0", + "@opentelemetry/node": "0.21.0", + "@opentelemetry/tracing": "0.21.0", "@types/mocha": "7.0.2", "@types/node": "14.17.2", "@types/semver": "7.3.6", @@ -63,8 +63,8 @@ "typescript": "4.3.2" }, "dependencies": { - "@opentelemetry/instrumentation": "^0.20.0", - "@opentelemetry/semantic-conventions": "^0.20.0", + "@opentelemetry/instrumentation": "^0.21.0", + "@opentelemetry/semantic-conventions": "^0.21.0", "semver": "^7.3.2" } } diff --git a/plugins/node/opentelemetry-instrumentation-express/package.json b/plugins/node/opentelemetry-instrumentation-express/package.json index 7083db4ae10..06aa326f4cb 100644 --- a/plugins/node/opentelemetry-instrumentation-express/package.json +++ b/plugins/node/opentelemetry-instrumentation-express/package.json @@ -42,13 +42,13 @@ "access": "public" }, "peerDependencies": { - "@opentelemetry/api": "^0.20.0" + "@opentelemetry/api": "^0.21.0" }, "devDependencies": { - "@opentelemetry/api": "0.20.0", - "@opentelemetry/context-async-hooks": "0.20.0", - "@opentelemetry/node": "0.20.0", - "@opentelemetry/tracing": "0.20.0", + "@opentelemetry/api": "0.21.0", + "@opentelemetry/context-async-hooks": "0.21.0", + "@opentelemetry/node": "0.21.0", + "@opentelemetry/tracing": "0.21.0", "@types/mocha": "7.0.2", "@types/node": "14.17.2", "codecov": "3.8.2", @@ -61,9 +61,9 @@ "typescript": "4.3.2" }, "dependencies": { - "@opentelemetry/core": "^0.20.0", - "@opentelemetry/instrumentation": "^0.20.0", - "@opentelemetry/semantic-conventions": "^0.20.0", + "@opentelemetry/core": "^0.21.0", + "@opentelemetry/instrumentation": "^0.21.0", + "@opentelemetry/semantic-conventions": "^0.21.0", "@types/express": "4.17.12" } } diff --git a/plugins/node/opentelemetry-instrumentation-express/src/instrumentation.ts b/plugins/node/opentelemetry-instrumentation-express/src/instrumentation.ts index aea093d3f02..e8a9b6199a9 100644 --- a/plugins/node/opentelemetry-instrumentation-express/src/instrumentation.ts +++ b/plugins/node/opentelemetry-instrumentation-express/src/instrumentation.ts @@ -260,7 +260,7 @@ export class ExpressInstrumentation extends InstrumentationBase< (req[_LAYERS_STORE_PROPERTY] as string[]).pop(); } const callback = args[callbackIdx] as Function; - return context.bind(callback, newContext).apply(this, arguments); + return context.bind(newContext, callback).apply(this, arguments); }; } const result = original.apply(this, arguments); diff --git a/plugins/node/opentelemetry-instrumentation-generic-pool/package.json b/plugins/node/opentelemetry-instrumentation-generic-pool/package.json index 47b03983f59..909a87e727a 100644 --- a/plugins/node/opentelemetry-instrumentation-generic-pool/package.json +++ b/plugins/node/opentelemetry-instrumentation-generic-pool/package.json @@ -41,13 +41,13 @@ "access": "public" }, "peerDependencies": { - "@opentelemetry/api": "^0.20.0" + "@opentelemetry/api": "^0.21.0" }, "devDependencies": { - "@opentelemetry/api": "0.20.0", - "@opentelemetry/context-async-hooks": "0.20.0", - "@opentelemetry/node": "0.20.0", - "@opentelemetry/tracing": "0.20.0", + "@opentelemetry/api": "0.21.0", + "@opentelemetry/context-async-hooks": "0.21.0", + "@opentelemetry/node": "0.21.0", + "@opentelemetry/tracing": "0.21.0", "@types/mocha": "7.0.2", "@types/node": "14.17.2", "@types/semver": "7.3.6", @@ -62,8 +62,8 @@ "typescript": "4.3.2" }, "dependencies": { - "@opentelemetry/instrumentation": "^0.20.0", - "@opentelemetry/semantic-conventions": "^0.20.0", + "@opentelemetry/instrumentation": "^0.21.0", + "@opentelemetry/semantic-conventions": "^0.21.0", "@types/generic-pool": "^3.1.9" } } diff --git a/plugins/node/opentelemetry-instrumentation-graphql/package.json b/plugins/node/opentelemetry-instrumentation-graphql/package.json index 8cd35db62ec..e10b47946d1 100644 --- a/plugins/node/opentelemetry-instrumentation-graphql/package.json +++ b/plugins/node/opentelemetry-instrumentation-graphql/package.json @@ -43,11 +43,11 @@ "access": "public" }, "peerDependencies": { - "@opentelemetry/api": "^0.20.0" + "@opentelemetry/api": "^0.21.0" }, "devDependencies": { - "@opentelemetry/api": "0.20.0", - "@opentelemetry/tracing": "0.20.0", + "@opentelemetry/api": "0.21.0", + "@opentelemetry/tracing": "0.21.0", "@types/mocha": "8.2.2", "@types/node": "14.17.2", "codecov": "3.8.2", @@ -60,7 +60,7 @@ "typescript": "4.3.2" }, "dependencies": { - "@opentelemetry/instrumentation": "^0.20.0", + "@opentelemetry/instrumentation": "^0.21.0", "@types/graphql": "14.5.0" } } diff --git a/plugins/node/opentelemetry-instrumentation-hapi/package.json b/plugins/node/opentelemetry-instrumentation-hapi/package.json index 880c94d2c52..06507e4f117 100644 --- a/plugins/node/opentelemetry-instrumentation-hapi/package.json +++ b/plugins/node/opentelemetry-instrumentation-hapi/package.json @@ -41,14 +41,14 @@ "access": "public" }, "peerDependencies": { - "@opentelemetry/api": "^0.20.0" + "@opentelemetry/api": "^0.21.0" }, "devDependencies": { "@hapi/hapi": "20.1.3", - "@opentelemetry/api": "0.20.0", - "@opentelemetry/context-async-hooks": "0.20.0", - "@opentelemetry/node": "0.20.0", - "@opentelemetry/tracing": "0.20.0", + "@opentelemetry/api": "0.21.0", + "@opentelemetry/context-async-hooks": "0.21.0", + "@opentelemetry/node": "0.21.0", + "@opentelemetry/tracing": "0.21.0", "@types/mocha": "7.0.2", "@types/node": "14.17.3", "codecov": "3.8.2", @@ -61,8 +61,8 @@ "typescript": "4.3.2" }, "dependencies": { - "@opentelemetry/instrumentation": "^0.20.0", - "@opentelemetry/semantic-conventions": "^0.20.0", + "@opentelemetry/instrumentation": "^0.21.0", + "@opentelemetry/semantic-conventions": "^0.21.0", "@types/hapi__hapi": "20.0.8" } } diff --git a/plugins/node/opentelemetry-instrumentation-ioredis/package.json b/plugins/node/opentelemetry-instrumentation-ioredis/package.json index 013ffe482b4..22590d294c5 100644 --- a/plugins/node/opentelemetry-instrumentation-ioredis/package.json +++ b/plugins/node/opentelemetry-instrumentation-ioredis/package.json @@ -44,14 +44,14 @@ "access": "public" }, "peerDependencies": { - "@opentelemetry/api": "^0.20.0" + "@opentelemetry/api": "^0.21.0" }, "devDependencies": { - "@opentelemetry/api": "0.20.0", - "@opentelemetry/context-async-hooks": "0.20.0", - "@opentelemetry/node": "0.20.0", + "@opentelemetry/api": "0.21.0", + "@opentelemetry/context-async-hooks": "0.21.0", + "@opentelemetry/node": "0.21.0", "@opentelemetry/test-utils": "^0.20.0", - "@opentelemetry/tracing": "0.20.0", + "@opentelemetry/tracing": "0.21.0", "@types/mocha": "7.0.2", "@types/node": "14.17.2", "codecov": "3.8.2", @@ -65,8 +65,8 @@ "typescript": "4.3.2" }, "dependencies": { - "@opentelemetry/instrumentation": "^0.20.0", - "@opentelemetry/semantic-conventions": "^0.20.0", + "@opentelemetry/instrumentation": "^0.21.0", + "@opentelemetry/semantic-conventions": "^0.21.0", "@types/ioredis": "4.26.4" } } diff --git a/plugins/node/opentelemetry-instrumentation-knex/package.json b/plugins/node/opentelemetry-instrumentation-knex/package.json index 5c16f51abe4..9abf75193dd 100644 --- a/plugins/node/opentelemetry-instrumentation-knex/package.json +++ b/plugins/node/opentelemetry-instrumentation-knex/package.json @@ -41,13 +41,13 @@ "access": "public" }, "peerDependencies": { - "@opentelemetry/api": "^0.20.0" + "@opentelemetry/api": "^0.21.0" }, "devDependencies": { - "@opentelemetry/api": "0.20.0", - "@opentelemetry/context-async-hooks": "0.20.0", - "@opentelemetry/node": "0.20.0", - "@opentelemetry/tracing": "0.20.0", + "@opentelemetry/api": "0.21.0", + "@opentelemetry/context-async-hooks": "0.21.0", + "@opentelemetry/node": "0.21.0", + "@opentelemetry/tracing": "0.21.0", "@types/mocha": "7.0.2", "@types/node": "14.0.27", "codecov": "3.7.2", @@ -61,7 +61,7 @@ "typescript": "4.1.3" }, "dependencies": { - "@opentelemetry/instrumentation": "^0.20.0", - "@opentelemetry/semantic-conventions": "^0.20.0" + "@opentelemetry/instrumentation": "^0.21.0", + "@opentelemetry/semantic-conventions": "^0.21.0" } } diff --git a/plugins/node/opentelemetry-instrumentation-koa/package.json b/plugins/node/opentelemetry-instrumentation-koa/package.json index 33ea0d16e33..a14c3729575 100644 --- a/plugins/node/opentelemetry-instrumentation-koa/package.json +++ b/plugins/node/opentelemetry-instrumentation-koa/package.json @@ -43,14 +43,14 @@ "access": "public" }, "peerDependencies": { - "@opentelemetry/api": "^0.20.0" + "@opentelemetry/api": "^0.21.0" }, "devDependencies": { "@koa/router": "9.4.0", - "@opentelemetry/api": "0.20.0", - "@opentelemetry/context-async-hooks": "0.20.0", - "@opentelemetry/node": "0.20.0", - "@opentelemetry/tracing": "0.20.0", + "@opentelemetry/api": "0.21.0", + "@opentelemetry/context-async-hooks": "0.21.0", + "@opentelemetry/node": "0.21.0", + "@opentelemetry/tracing": "0.21.0", "@types/mocha": "7.0.2", "@types/node": "14.17.3", "codecov": "3.8.2", @@ -63,9 +63,9 @@ "typescript": "4.3.2" }, "dependencies": { - "@opentelemetry/core": "^0.20.0", - "@opentelemetry/instrumentation": "^0.20.0", - "@opentelemetry/semantic-conventions": "^0.20.0", + "@opentelemetry/core": "^0.21.0", + "@opentelemetry/instrumentation": "^0.21.0", + "@opentelemetry/semantic-conventions": "^0.21.0", "@types/koa": "2.13.3", "@types/koa__router": "8.0.4" } diff --git a/plugins/node/opentelemetry-instrumentation-mongodb/package.json b/plugins/node/opentelemetry-instrumentation-mongodb/package.json index ee0e06bdc3c..d7a2da0c9ac 100644 --- a/plugins/node/opentelemetry-instrumentation-mongodb/package.json +++ b/plugins/node/opentelemetry-instrumentation-mongodb/package.json @@ -43,13 +43,13 @@ "access": "public" }, "peerDependencies": { - "@opentelemetry/api": "^0.20.0" + "@opentelemetry/api": "^0.21.0" }, "devDependencies": { - "@opentelemetry/api": "0.20.0", - "@opentelemetry/context-async-hooks": "0.20.0", - "@opentelemetry/node": "0.20.0", - "@opentelemetry/tracing": "0.20.0", + "@opentelemetry/api": "0.21.0", + "@opentelemetry/context-async-hooks": "0.21.0", + "@opentelemetry/node": "0.21.0", + "@opentelemetry/tracing": "0.21.0", "@types/mocha": "7.0.2", "@types/node": "14.17.2", "codecov": "3.8.2", @@ -62,8 +62,8 @@ "typescript": "4.3.2" }, "dependencies": { - "@opentelemetry/instrumentation": "^0.20.0", - "@opentelemetry/semantic-conventions": "^0.20.0", + "@opentelemetry/instrumentation": "^0.21.0", + "@opentelemetry/semantic-conventions": "^0.21.0", "@types/mongodb": "3.6.17" } } diff --git a/plugins/node/opentelemetry-instrumentation-mysql/package.json b/plugins/node/opentelemetry-instrumentation-mysql/package.json index aa8fb50b019..a5fbbb43892 100644 --- a/plugins/node/opentelemetry-instrumentation-mysql/package.json +++ b/plugins/node/opentelemetry-instrumentation-mysql/package.json @@ -41,13 +41,13 @@ "access": "public" }, "peerDependencies": { - "@opentelemetry/api": "^0.20.0" + "@opentelemetry/api": "^0.21.0" }, "devDependencies": { - "@opentelemetry/api": "0.20.0", - "@opentelemetry/context-async-hooks": "0.20.0", + "@opentelemetry/api": "0.21.0", + "@opentelemetry/context-async-hooks": "0.21.0", "@opentelemetry/test-utils": "^0.20.0", - "@opentelemetry/tracing": "0.20.0", + "@opentelemetry/tracing": "0.21.0", "@types/mocha": "7.0.2", "@types/node": "14.17.2", "codecov": "3.8.2", @@ -60,8 +60,8 @@ "typescript": "4.3.2" }, "dependencies": { - "@opentelemetry/instrumentation": "^0.20.0", - "@opentelemetry/semantic-conventions": "^0.20.0", + "@opentelemetry/instrumentation": "^0.21.0", + "@opentelemetry/semantic-conventions": "^0.21.0", "@types/mysql": "2.15.18" } } diff --git a/plugins/node/opentelemetry-instrumentation-net/package.json b/plugins/node/opentelemetry-instrumentation-net/package.json index 4ebbc884ff6..a7fc5ca619f 100644 --- a/plugins/node/opentelemetry-instrumentation-net/package.json +++ b/plugins/node/opentelemetry-instrumentation-net/package.json @@ -42,12 +42,12 @@ "access": "public" }, "peerDependencies": { - "@opentelemetry/api": "^0.20.0" + "@opentelemetry/api": "^0.21.0" }, "devDependencies": { - "@opentelemetry/api": "0.20.0", - "@opentelemetry/node": "0.20.0", - "@opentelemetry/tracing": "0.20.0", + "@opentelemetry/api": "0.21.0", + "@opentelemetry/node": "0.21.0", + "@opentelemetry/tracing": "0.21.0", "@types/mocha": "7.0.2", "@types/node": "14.17.2", "@types/sinon": "10.0.2", @@ -61,7 +61,7 @@ "typescript": "4.3.2" }, "dependencies": { - "@opentelemetry/instrumentation": "^0.20.0", - "@opentelemetry/semantic-conventions": "^0.20.0" + "@opentelemetry/instrumentation": "^0.21.0", + "@opentelemetry/semantic-conventions": "^0.21.0" } } diff --git a/plugins/node/opentelemetry-instrumentation-pg/package.json b/plugins/node/opentelemetry-instrumentation-pg/package.json index ac411251f71..bf637c45f6b 100644 --- a/plugins/node/opentelemetry-instrumentation-pg/package.json +++ b/plugins/node/opentelemetry-instrumentation-pg/package.json @@ -47,14 +47,14 @@ "access": "public" }, "peerDependencies": { - "@opentelemetry/api": "^0.20.0" + "@opentelemetry/api": "^0.21.0" }, "devDependencies": { - "@opentelemetry/api": "0.20.0", - "@opentelemetry/context-async-hooks": "0.20.0", - "@opentelemetry/node": "0.20.0", + "@opentelemetry/api": "0.21.0", + "@opentelemetry/context-async-hooks": "0.21.0", + "@opentelemetry/node": "0.21.0", "@opentelemetry/test-utils": "^0.20.0", - "@opentelemetry/tracing": "0.20.0", + "@opentelemetry/tracing": "0.21.0", "@types/mocha": "7.0.2", "@types/node": "14.17.2", "codecov": "3.8.2", @@ -69,8 +69,8 @@ "typescript": "4.3.2" }, "dependencies": { - "@opentelemetry/instrumentation": "^0.20.0", - "@opentelemetry/semantic-conventions": "^0.20.0", + "@opentelemetry/instrumentation": "^0.21.0", + "@opentelemetry/semantic-conventions": "^0.21.0", "@types/pg": "8.6.0", "@types/pg-pool": "2.0.2" } diff --git a/plugins/node/opentelemetry-instrumentation-pg/src/instrumentation.ts b/plugins/node/opentelemetry-instrumentation-pg/src/instrumentation.ts index ea106d6c73e..052aa432e14 100644 --- a/plugins/node/opentelemetry-instrumentation-pg/src/instrumentation.ts +++ b/plugins/node/opentelemetry-instrumentation-pg/src/instrumentation.ts @@ -169,7 +169,10 @@ export class PgInstrumentation extends InstrumentationBase { ); // If a parent span exists, bind the callback if (parentSpan) { - args[args.length - 1] = context.bind(args[args.length - 1]); + args[args.length - 1] = context.bind( + context.active(), + args[args.length - 1] + ); } } else if ( typeof (args[0] as NormalizedQueryConfig).callback === 'function' @@ -181,7 +184,7 @@ export class PgInstrumentation extends InstrumentationBase { ); // If a parent span existed, bind the callback if (parentSpan) { - callback = context.bind(callback); + callback = context.bind(context.active(), callback); } // Copy the callback instead of writing to args.callback so that we don't modify user's @@ -250,7 +253,7 @@ export class PgInstrumentation extends InstrumentationBase { ) as PgPoolCallback; // If a parent span exists, bind the callback if (parentSpan) { - callback = context.bind(callback); + callback = context.bind(context.active(), callback); } } @@ -263,6 +266,7 @@ export class PgInstrumentation extends InstrumentationBase { if (connectResult instanceof Promise) { const connectResultPromise = connectResult as Promise; return context.bind( + context.active(), connectResultPromise .then(result => { // Return a pass-along promise which ends the span and then goes to user's orig resolvers diff --git a/plugins/node/opentelemetry-instrumentation-pino/package.json b/plugins/node/opentelemetry-instrumentation-pino/package.json index f1d7f7226be..d882f27100a 100644 --- a/plugins/node/opentelemetry-instrumentation-pino/package.json +++ b/plugins/node/opentelemetry-instrumentation-pino/package.json @@ -42,13 +42,13 @@ "access": "public" }, "peerDependencies": { - "@opentelemetry/api": "^0.20.0" + "@opentelemetry/api": "^0.21.0" }, "devDependencies": { - "@opentelemetry/api": "0.20.0", - "@opentelemetry/context-async-hooks": "0.20.0", - "@opentelemetry/node": "0.20.0", - "@opentelemetry/tracing": "0.20.0", + "@opentelemetry/api": "0.21.0", + "@opentelemetry/context-async-hooks": "0.21.0", + "@opentelemetry/node": "0.21.0", + "@opentelemetry/tracing": "0.21.0", "@types/mocha": "7.0.2", "@types/node": "14.17.2", "@types/semver": "7.3.6", @@ -65,7 +65,7 @@ "typescript": "4.3.2" }, "dependencies": { - "@opentelemetry/instrumentation": "^0.20.0", + "@opentelemetry/instrumentation": "^0.21.0", "@types/pino": "6.3.8", "semver": "^7.3.5" } diff --git a/plugins/node/opentelemetry-instrumentation-pino/test/pino.test.ts b/plugins/node/opentelemetry-instrumentation-pino/test/pino.test.ts index 6363fe0900e..4bbad5db033 100644 --- a/plugins/node/opentelemetry-instrumentation-pino/test/pino.test.ts +++ b/plugins/node/opentelemetry-instrumentation-pino/test/pino.test.ts @@ -18,7 +18,7 @@ import { InMemorySpanExporter, SimpleSpanProcessor, } from '@opentelemetry/tracing'; -import { context, trace, NoopTracerProvider, Span } from '@opentelemetry/api'; +import { context, trace, Span, INVALID_SPAN_CONTEXT } from '@opentelemetry/api'; import { NodeTracerProvider } from '@opentelemetry/node'; import { AsyncHooksContextManager } from '@opentelemetry/context-async-hooks'; import { Writable } from 'stream'; @@ -128,8 +128,7 @@ describe('PinoInstrumentation', () => { }); it('does not inject span context if span context is invalid', () => { - const noopTracer = new NoopTracerProvider().getTracer('noop'); - const span = noopTracer.startSpan('noop'); + const span = trace.wrapSpanContext(INVALID_SPAN_CONTEXT); context.with(trace.setSpan(context.active(), span), () => { testNoInjection(); }); diff --git a/plugins/node/opentelemetry-instrumentation-redis/package.json b/plugins/node/opentelemetry-instrumentation-redis/package.json index b3b40e8ca9c..2811117edd4 100644 --- a/plugins/node/opentelemetry-instrumentation-redis/package.json +++ b/plugins/node/opentelemetry-instrumentation-redis/package.json @@ -43,14 +43,14 @@ "access": "public" }, "peerDependencies": { - "@opentelemetry/api": "^0.20.0" + "@opentelemetry/api": "^0.21.0" }, "devDependencies": { - "@opentelemetry/api": "0.20.0", - "@opentelemetry/context-async-hooks": "0.20.0", - "@opentelemetry/node": "0.20.0", + "@opentelemetry/api": "0.21.0", + "@opentelemetry/context-async-hooks": "0.21.0", + "@opentelemetry/node": "0.21.0", "@opentelemetry/test-utils": "^0.20.0", - "@opentelemetry/tracing": "0.20.0", + "@opentelemetry/tracing": "0.21.0", "@types/mocha": "7.0.2", "@types/node": "14.17.2", "codecov": "3.8.2", @@ -64,8 +64,8 @@ "typescript": "4.3.2" }, "dependencies": { - "@opentelemetry/instrumentation": "^0.20.0", - "@opentelemetry/semantic-conventions": "^0.20.0", + "@opentelemetry/instrumentation": "^0.21.0", + "@opentelemetry/semantic-conventions": "^0.21.0", "@types/redis": "2.8.29" } } diff --git a/plugins/node/opentelemetry-instrumentation-redis/src/utils.ts b/plugins/node/opentelemetry-instrumentation-redis/src/utils.ts index 854d0b86b32..9ad22b2b435 100644 --- a/plugins/node/opentelemetry-instrumentation-redis/src/utils.ts +++ b/plugins/node/opentelemetry-instrumentation-redis/src/utils.ts @@ -48,7 +48,7 @@ const endSpan = (span: Span, err?: Error | null) => { export const getTracedCreateClient = (tracer: Tracer, original: Function) => { return function createClientTrace(this: redisTypes.RedisClient) { const client: redisTypes.RedisClient = original.apply(this, arguments); - return context.bind(client); + return context.bind(context.active(), client); }; }; @@ -63,7 +63,7 @@ export const getTracedCreateStreamTrace = ( return this._patched_redis_stream; }, set(val: EventEmitter) { - context.bind(val); + context.bind(context.active(), val); this._patched_redis_stream = val; }, }); diff --git a/plugins/node/opentelemetry-instrumentation-restify/package.json b/plugins/node/opentelemetry-instrumentation-restify/package.json index 7d035f363d7..7de46953b81 100644 --- a/plugins/node/opentelemetry-instrumentation-restify/package.json +++ b/plugins/node/opentelemetry-instrumentation-restify/package.json @@ -41,13 +41,13 @@ "access": "public" }, "peerDependencies": { - "@opentelemetry/api": "^0.20.0" + "@opentelemetry/api": "^0.21.0" }, "devDependencies": { - "@opentelemetry/api": "0.20.0", - "@opentelemetry/context-async-hooks": "0.20.0", - "@opentelemetry/node": "0.20.0", - "@opentelemetry/tracing": "0.20.0", + "@opentelemetry/api": "0.21.0", + "@opentelemetry/context-async-hooks": "0.21.0", + "@opentelemetry/node": "0.21.0", + "@opentelemetry/tracing": "0.21.0", "@types/mocha": "7.0.2", "@types/node": "14.17.2", "codecov": "3.8.2", @@ -60,9 +60,9 @@ "typescript": "4.3.2" }, "dependencies": { - "@opentelemetry/core": "^0.20.0", - "@opentelemetry/instrumentation": "^0.20.0", - "@opentelemetry/semantic-conventions": "^0.20.0", + "@opentelemetry/core": "^0.21.0", + "@opentelemetry/instrumentation": "^0.21.0", + "@opentelemetry/semantic-conventions": "^0.21.0", "@types/restify": "4.3.7" } } diff --git a/plugins/node/opentelemetry-instrumentation-router/package.json b/plugins/node/opentelemetry-instrumentation-router/package.json index 60c4e57ef25..7a7b4ca5aff 100644 --- a/plugins/node/opentelemetry-instrumentation-router/package.json +++ b/plugins/node/opentelemetry-instrumentation-router/package.json @@ -41,13 +41,13 @@ "access": "public" }, "peerDependencies": { - "@opentelemetry/api": "^0.20.0" + "@opentelemetry/api": "^0.21.0" }, "devDependencies": { - "@opentelemetry/api": "0.20.0", - "@opentelemetry/context-async-hooks": "0.20.0", - "@opentelemetry/node": "0.20.0", - "@opentelemetry/tracing": "0.20.0", + "@opentelemetry/api": "0.21.0", + "@opentelemetry/context-async-hooks": "0.21.0", + "@opentelemetry/node": "0.21.0", + "@opentelemetry/tracing": "0.21.0", "@types/mocha": "7.0.2", "@types/node": "14.17.2", "codecov": "3.8.2", @@ -62,7 +62,7 @@ "typescript": "4.3.2" }, "dependencies": { - "@opentelemetry/instrumentation": "^0.20.0", - "@opentelemetry/semantic-conventions": "^0.20.0" + "@opentelemetry/instrumentation": "^0.21.0", + "@opentelemetry/semantic-conventions": "^0.21.0" } } diff --git a/plugins/node/opentelemetry-instrumentation-router/test/index.test.ts b/plugins/node/opentelemetry-instrumentation-router/test/index.test.ts index 6d3b3e143d4..0a29bdef05e 100644 --- a/plugins/node/opentelemetry-instrumentation-router/test/index.test.ts +++ b/plugins/node/opentelemetry-instrumentation-router/test/index.test.ts @@ -98,7 +98,7 @@ const createServer = async ({ }); }; const handler = parentSpan - ? context.bind(defaultHandler, trace.setSpan(context.active(), parentSpan)) + ? context.bind(trace.setSpan(context.active(), parentSpan), defaultHandler) : defaultHandler; const server = http.createServer(handler); diff --git a/plugins/node/opentelemetry-instrumentation-winston/package.json b/plugins/node/opentelemetry-instrumentation-winston/package.json index d2f415f45bb..9c246d46c7c 100644 --- a/plugins/node/opentelemetry-instrumentation-winston/package.json +++ b/plugins/node/opentelemetry-instrumentation-winston/package.json @@ -42,13 +42,13 @@ "access": "public" }, "peerDependencies": { - "@opentelemetry/api": "^0.20.0" + "@opentelemetry/api": "^0.21.0" }, "devDependencies": { - "@opentelemetry/api": "0.20.0", - "@opentelemetry/context-async-hooks": "0.20.0", - "@opentelemetry/node": "0.20.0", - "@opentelemetry/tracing": "0.20.0", + "@opentelemetry/api": "0.21.0", + "@opentelemetry/context-async-hooks": "0.21.0", + "@opentelemetry/node": "0.21.0", + "@opentelemetry/tracing": "0.21.0", "@types/mocha": "7.0.2", "@types/node": "14.17.2", "@types/sinon": "10.0.2", @@ -64,6 +64,6 @@ "winston2": "npm:winston@2.4.5" }, "dependencies": { - "@opentelemetry/instrumentation": "^0.20.0" + "@opentelemetry/instrumentation": "^0.21.0" } } diff --git a/plugins/node/opentelemetry-instrumentation-winston/test/winston.test.ts b/plugins/node/opentelemetry-instrumentation-winston/test/winston.test.ts index 9c5cc1f3c4a..4c6c9cf258b 100644 --- a/plugins/node/opentelemetry-instrumentation-winston/test/winston.test.ts +++ b/plugins/node/opentelemetry-instrumentation-winston/test/winston.test.ts @@ -18,7 +18,7 @@ import { InMemorySpanExporter, SimpleSpanProcessor, } from '@opentelemetry/tracing'; -import { context, trace, NoopTracerProvider, Span } from '@opentelemetry/api'; +import { context, trace, Span, INVALID_SPAN_CONTEXT } from '@opentelemetry/api'; import { NodeTracerProvider } from '@opentelemetry/node'; import { isWrapped } from '@opentelemetry/instrumentation'; import { AsyncHooksContextManager } from '@opentelemetry/context-async-hooks'; @@ -115,8 +115,7 @@ describe('WinstonInstrumentation', () => { }); it('does not inject span context if span context is invalid', () => { - const noopTracer = new NoopTracerProvider().getTracer('noop'); - const span = noopTracer.startSpan('noop'); + const span = trace.wrapSpanContext(INVALID_SPAN_CONTEXT); context.with(trace.setSpan(context.active(), span), () => { testNoInjection(); }); diff --git a/plugins/web/opentelemetry-instrumentation-document-load/package.json b/plugins/web/opentelemetry-instrumentation-document-load/package.json index d9bc1ccb428..7c2de91c03f 100644 --- a/plugins/web/opentelemetry-instrumentation-document-load/package.json +++ b/plugins/web/opentelemetry-instrumentation-document-load/package.json @@ -47,11 +47,11 @@ "access": "public" }, "peerDependencies": { - "@opentelemetry/api": "^0.20.0" + "@opentelemetry/api": "^0.21.0" }, "devDependencies": { "@babel/core": "7.14.3", - "@opentelemetry/api": "0.20.0", + "@opentelemetry/api": "0.21.0", "@types/mocha": "8.2.2", "@types/node": "14.17.2", "@types/sinon": "10.0.2", @@ -78,10 +78,10 @@ "webpack-merge": "5.7.3" }, "dependencies": { - "@opentelemetry/core": "^0.20.0", - "@opentelemetry/instrumentation": "^0.20.0", - "@opentelemetry/semantic-conventions": "^0.20.0", - "@opentelemetry/tracing": "^0.20.0", - "@opentelemetry/web": "^0.20.0" + "@opentelemetry/core": "^0.21.0", + "@opentelemetry/instrumentation": "^0.21.0", + "@opentelemetry/semantic-conventions": "^0.21.0", + "@opentelemetry/tracing": "^0.21.0", + "@opentelemetry/web": "^0.21.0" } } diff --git a/plugins/web/opentelemetry-instrumentation-user-interaction/package.json b/plugins/web/opentelemetry-instrumentation-user-interaction/package.json index c34f64386b2..b12f7648fe4 100644 --- a/plugins/web/opentelemetry-instrumentation-user-interaction/package.json +++ b/plugins/web/opentelemetry-instrumentation-user-interaction/package.json @@ -48,10 +48,10 @@ }, "devDependencies": { "@babel/core": "7.14.3", - "@opentelemetry/api": "0.20.0", - "@opentelemetry/context-zone-peer-dep": "0.20.0", - "@opentelemetry/instrumentation-xml-http-request": "0.20.0", - "@opentelemetry/tracing": "0.20.0", + "@opentelemetry/api": "0.21.0", + "@opentelemetry/context-zone-peer-dep": "0.21.0", + "@opentelemetry/instrumentation-xml-http-request": "0.21.0", + "@opentelemetry/tracing": "0.21.0", "@types/jquery": "3.5.5", "@types/mocha": "7.0.2", "@types/node": "14.17.2", @@ -81,12 +81,12 @@ "zone.js": "0.11.4" }, "dependencies": { - "@opentelemetry/core": "^0.20.0", - "@opentelemetry/instrumentation": "^0.20.0", - "@opentelemetry/web": "^0.20.0" + "@opentelemetry/core": "^0.21.0", + "@opentelemetry/instrumentation": "^0.21.0", + "@opentelemetry/web": "^0.21.0" }, "peerDependencies": { - "@opentelemetry/api": "^0.20.0", + "@opentelemetry/api": "^0.21.0", "zone.js": "0.11.4" }, "sideEffects": false diff --git a/plugins/web/opentelemetry-plugin-react-load/package.json b/plugins/web/opentelemetry-plugin-react-load/package.json index ebefe1cd1b6..85c0eb9a9eb 100644 --- a/plugins/web/opentelemetry-plugin-react-load/package.json +++ b/plugins/web/opentelemetry-plugin-react-load/package.json @@ -48,8 +48,8 @@ }, "devDependencies": { "@babel/core": "7.14.3", - "@opentelemetry/api": "0.20.0", - "@opentelemetry/propagator-b3": "0.20.0", + "@opentelemetry/api": "0.21.0", + "@opentelemetry/propagator-b3": "0.21.0", "@types/mocha": "7.0.2", "@types/node": "14.17.3", "@types/react": "17.0.9", @@ -82,15 +82,15 @@ "webpack-merge": "5.7.3" }, "peerDependencies": { - "@opentelemetry/api": "^0.20.0", + "@opentelemetry/api": "^0.21.0", "react": "^16.13.1 || ^17.0.0" }, "dependencies": { - "@opentelemetry/context-zone": "^0.20.0", - "@opentelemetry/core": "^0.20.0", - "@opentelemetry/semantic-conventions": "^0.20.0", - "@opentelemetry/tracing": "^0.20.0", - "@opentelemetry/web": "^0.20.0", + "@opentelemetry/context-zone": "^0.21.0", + "@opentelemetry/core": "^0.21.0", + "@opentelemetry/semantic-conventions": "^0.21.0", + "@opentelemetry/tracing": "^0.21.0", + "@opentelemetry/web": "^0.21.0", "shimmer": "^1.2.1" } } diff --git a/propagators/opentelemetry-propagator-aws-xray/package.json b/propagators/opentelemetry-propagator-aws-xray/package.json index a4add3e33c2..7ba734265e8 100644 --- a/propagators/opentelemetry-propagator-aws-xray/package.json +++ b/propagators/opentelemetry-propagator-aws-xray/package.json @@ -46,10 +46,10 @@ "access": "public" }, "peerDependencies": { - "@opentelemetry/api": "^0.20.0" + "@opentelemetry/api": "^0.21.0" }, "devDependencies": { - "@opentelemetry/api": "0.20.0", + "@opentelemetry/api": "0.21.0", "@types/mocha": "8.2.2", "@types/node": "14.17.2", "@types/webpack-env": "1.16.0", @@ -71,6 +71,6 @@ "webpack": "4.46.0" }, "dependencies": { - "@opentelemetry/core": "^0.20.0" + "@opentelemetry/core": "^0.21.0" } } diff --git a/propagators/opentelemetry-propagator-grpc-census-binary/package.json b/propagators/opentelemetry-propagator-grpc-census-binary/package.json index 823d9105c36..e7900a422e2 100644 --- a/propagators/opentelemetry-propagator-grpc-census-binary/package.json +++ b/propagators/opentelemetry-propagator-grpc-census-binary/package.json @@ -42,10 +42,10 @@ "access": "public" }, "peerDependencies": { - "@opentelemetry/api": "^0.20.0" + "@opentelemetry/api": "^0.21.0" }, "devDependencies": { - "@opentelemetry/api": "0.20.0", + "@opentelemetry/api": "0.21.0", "@types/mocha": "7.0.2", "@types/node": "14.17.2", "codecov": "3.8.2", diff --git a/propagators/opentelemetry-propagator-ot-trace/package.json b/propagators/opentelemetry-propagator-ot-trace/package.json index e6343614a2b..36f0549ce20 100644 --- a/propagators/opentelemetry-propagator-ot-trace/package.json +++ b/propagators/opentelemetry-propagator-ot-trace/package.json @@ -47,10 +47,10 @@ "access": "public" }, "peerDependencies": { - "@opentelemetry/api": "^0.20.0" + "@opentelemetry/api": "^0.21.0" }, "devDependencies": { - "@opentelemetry/api": "0.20.0", + "@opentelemetry/api": "0.21.0", "@types/mocha": "8.2.2", "@types/node": "14.17.2", "@types/webpack-env": "1.16.0",