Skip to content
This repository was archived by the owner on Mar 17, 2026. It is now read-only.

Commit 6896ad9

Browse files
authored
feat: upgrade the opentelemetry api to 1.0.0 (#1329)
Updates the `@opentelemetry/api`-package to 1.0.0 and use the associated SDK version which supports this API version that is: 0.22.0 Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [X] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/nodejs-pubsub/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [X] Ensure the tests and linter pass - [X] Code coverage does not decrease (if any source code was changed) - [ ] Appropriate docs were updated (if necessary) Fixes #1330 🦕
1 parent c6d1750 commit 6896ad9

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
"@google-cloud/precise-date": "^2.0.0",
5252
"@google-cloud/projectify": "^2.0.0",
5353
"@google-cloud/promisify": "^2.0.0",
54-
"@opentelemetry/api": "^0.21.0",
55-
"@opentelemetry/semantic-conventions": "^0.21.0",
54+
"@opentelemetry/api": "^1.0.0",
55+
"@opentelemetry/semantic-conventions": "^0.22.0",
5656
"@types/duplexify": "^3.6.0",
5757
"@types/long": "^4.0.0",
5858
"arrify": "^2.0.0",
@@ -65,7 +65,9 @@
6565
},
6666
"devDependencies": {
6767
"@grpc/proto-loader": "^0.6.0",
68-
"@opentelemetry/tracing": "^0.21.0",
68+
"@microsoft/api-documenter": "^7.8.10",
69+
"@microsoft/api-extractor": "^7.8.10",
70+
"@opentelemetry/tracing": "^0.22.0",
6971
"@types/execa": "^0.9.0",
7072
"@types/extend": "^3.0.0",
7173
"@types/lodash.snakecase": "^4.1.6",

samples/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
},
2727
"dependencies": {
2828
"@google-cloud/pubsub": "^2.14.0",
29-
"@opentelemetry/api": "^0.21.0",
30-
"@opentelemetry/tracing": "^0.21.0",
29+
"@opentelemetry/api": "^1.0.0",
30+
"@opentelemetry/tracing": "^0.22.0",
3131
"avro-js": "^1.10.1",
3232
"p-defer": "^3.0.0",
3333
"protobufjs": "^6.11.2"

0 commit comments

Comments
 (0)