Skip to content

Commit 9980e4d

Browse files
committed
feat(deps): Bump OpenTelemetry instrumentations
- Bump @opentelemetry/instrumentation from 0.204.0 to 0.208.0 - Bump @opentelemetry/instrumentation-amqplib from 0.51.0 to 0.55.0 - Bump @opentelemetry/instrumentation-aws-sdk from 0.59.0 to 0.64.0 - Bump @opentelemetry/instrumentation-connect from 0.48.0 to 0.52.0 - Bump @opentelemetry/instrumentation-dataloader from 0.22.0 to 0.26.0 - Bump @opentelemetry/instrumentation-express from 0.53.0 to 0.57.0 - Bump @opentelemetry/instrumentation-fs from 0.24.0 to 0.28.0 - Bump @opentelemetry/instrumentation-generic-pool from 0.48.0 to 0.52.0 - Bump @opentelemetry/instrumentation-graphql from 0.52.0 to 0.56.0 - Bump @opentelemetry/instrumentation-hapi from 0.51.0 to 0.55.0 - Bump @opentelemetry/instrumentation-http from 0.204.0 to 0.208.0 - Bump @opentelemetry/instrumentation-ioredis from 0.52.0 to 0.56.0 - Bump @opentelemetry/instrumentation-kafkajs from 0.14.0 to 0.18.0 - Bump @opentelemetry/instrumentation-knex from 0.49.0 to 0.53.0 - Bump @opentelemetry/instrumentation-koa from 0.52.0 to 0.57.0 - Bump @opentelemetry/instrumentation-lru-memoizer from 0.49.0 to 0.53.0 - Bump @opentelemetry/instrumentation-mongodb from 0.57.0 to 0.61.0 - Bump @opentelemetry/instrumentation-mongoose from 0.51.0 to 0.55.0 - Bump @opentelemetry/instrumentation-mysql from 0.50.0 to 0.54.0 - Bump @opentelemetry/instrumentation-mysql2 from 0.51.0 to 0.55.0 - Bump @opentelemetry/instrumentation-nestjs-core from 0.50.0 to 0.55.0 - Bump @opentelemetry/instrumentation-pg from 0.57.0 to 0.61.0 - Bump @opentelemetry/instrumentation-redis from 0.53.0 to 0.57.0 - Bump @opentelemetry/instrumentation-tedious from 0.23.0 to 0.27.0 - Bump @opentelemetry/instrumentation-undici from 0.15.0 to 0.19.0 - Bump @prisma/instrumentation from 6.15.0 to 6.19.0
1 parent 9ce440c commit 9980e4d

File tree

15 files changed

+312
-244
lines changed

15 files changed

+312
-244
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Bump OpenTelemetry instrumentations
2+
3+
1. Ensure you're on the `develop` branch with the latest changes:
4+
- If you have unsaved changes, stash them with `git stash -u`.
5+
- If you're on a different branch than `develop`, check out the develop branch using `git checkout develop`.
6+
- Pull the latest updates from the remote repository by running `git pull origin develop`.
7+
8+
2. Create a new branch `bump-otel-{yyyy-mm-dd}`, e.g. `bump-otel-2025-03-03`
9+
10+
3. Create a new empty commit with the commit message `feat(deps): Bump OpenTelemetry instrumentations`
11+
12+
4. Push the branch and create a draft PR, note down the PR number as {PR_NUMBER}
13+
14+
5. Create a changelog entry in `CHANGELOG.md` under `- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott` with the following format:
15+
`- feat(deps): Bump OpenTelemetry instrumentations ([#{PR_NUMBER}](https://github.com/getsentry/sentry-javascript/pull/{PR_NUMBER}))`
16+
17+
6. Find the "Upgrade OpenTelemetry instrumentations" rule in `.cursor/rules/upgrade_opentelemetry_instrumentations` and follow those complete instructions step by step.
18+
- Create one commit per package in `packages/**` with the commit message `Bump OpenTelemetry instrumentations for {SDK}`, e.g. `Bump OpenTelemetry instrumentation for @sentry/node`
19+
20+
- For each OpenTelemetry dependency bump, record an entry in the changelog with the format indented under the main entry created in step 5:
21+
`- Bump @opentelemetry/{instrumentation} from {previous_version} to {new_version}`, e.g. `- Bump @opentelemetry/instrumentation from 0.204.0 to 0.207.0`
22+
**CRITICAL**: Avoid duplicated entries, e.g. if we bump @opentelemetry/instrumentation in two packages, keep a single changelog entry.
23+
24+
7. Regenerate the yarn lockfile and run `yarn yarn-deduplicate`
25+
26+
8. Run `yarn fix` to fix all formatting issues
27+
28+
9. Finally update the PR description to list all dependency bumps
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
description: Use this rule if you are looking to grade OpenTelemetry instrumentations for the Sentry JavaScript SDKs
3+
globs: *
4+
alwaysApply: false
5+
---
6+
7+
# Upgrading OpenTelemetry instrumentations
8+
9+
1. For every package in packages/\*\*:
10+
- When upgrading dependencies for OpenTelemetry instrumentations we need to first upgrade `@opentelemetry/instrumentation` to the latest version.
11+
**CRITICAL**: `@opentelemetry/instrumentation` MUST NOT include any breaking changes.
12+
Read through the changelog of `@opentelemetry/instrumentation` to figure out if breaking changes are included and fail with the reason if it does include breaking changes.
13+
14+
- After successfully upgrading `@opentelemetry/instrumentation` upgrade all `@opentelemetry/instrumentation-{instrumentation}` packages, e.g. `@opentelemetry/instrumentation-pg`
15+
**CRITICAL**: `@opentelemetry/instrumentation-{instrumentation}` MUST NOT include any breaking changes.
16+
Read through the changelog of `@opentelemetry/instrumentation-{instrumentation}` to figure out if breaking changes are included and fail with the reason if it does including breaking changes.
17+
18+
- Finally, upgrade third party instrumentations to their latest versions, these are currently:
19+
- @prisma/instrumentation
20+
21+
**CRITICAL**: Upgrades to third party instrumentations MUST NOT include breaking changes.
22+
Read through the changelog of each third party instrumentation to figure out if breaking changes are included and fail with the reason if it does include breaking changes.
23+
24+
2. For packages and apps in dev-packages/\*\*:
25+
- If an app depends on `@opentelemetry/instrumentation` >= 0.200.x upgrade it to the latest version.
26+
**CRITICAL**: `@opentelemetry/instrumentation` MUST NOT include any breaking changes.
27+
28+
- If an app depends on `@opentelemetry/instrumentation-http` >= 0.200.x upgrade it to the latest version.
29+
**CRITICAL**: `@opentelemetry/instrumentation-http` MUST NOT include any breaking changes.
30+
31+
3. Generate a new yarn lock file.

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,33 @@
44

55
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
66

7+
- feat(deps): Bump OpenTelemetry instrumentations ([#18239](https://github.com/getsentry/sentry-javascript/pull/18239))
8+
- Bump @opentelemetry/instrumentation from 0.204.0 to 0.208.0
9+
- Bump @opentelemetry/instrumentation-amqplib from 0.51.0 to 0.55.0
10+
- Bump @opentelemetry/instrumentation-aws-sdk from 0.59.0 to 0.64.0
11+
- Bump @opentelemetry/instrumentation-connect from 0.48.0 to 0.52.0
12+
- Bump @opentelemetry/instrumentation-dataloader from 0.22.0 to 0.26.0
13+
- Bump @opentelemetry/instrumentation-express from 0.53.0 to 0.57.0
14+
- Bump @opentelemetry/instrumentation-fs from 0.24.0 to 0.28.0
15+
- Bump @opentelemetry/instrumentation-generic-pool from 0.48.0 to 0.52.0
16+
- Bump @opentelemetry/instrumentation-graphql from 0.52.0 to 0.56.0
17+
- Bump @opentelemetry/instrumentation-hapi from 0.51.0 to 0.55.0
18+
- Bump @opentelemetry/instrumentation-http from 0.204.0 to 0.208.0
19+
- Bump @opentelemetry/instrumentation-ioredis from 0.52.0 to 0.56.0
20+
- Bump @opentelemetry/instrumentation-kafkajs from 0.14.0 to 0.18.0
21+
- Bump @opentelemetry/instrumentation-knex from 0.49.0 to 0.53.0
22+
- Bump @opentelemetry/instrumentation-koa from 0.52.0 to 0.57.0
23+
- Bump @opentelemetry/instrumentation-lru-memoizer from 0.49.0 to 0.53.0
24+
- Bump @opentelemetry/instrumentation-mongodb from 0.57.0 to 0.61.0
25+
- Bump @opentelemetry/instrumentation-mongoose from 0.51.0 to 0.55.0
26+
- Bump @opentelemetry/instrumentation-mysql from 0.50.0 to 0.54.0
27+
- Bump @opentelemetry/instrumentation-mysql2 from 0.51.0 to 0.55.0
28+
- Bump @opentelemetry/instrumentation-nestjs-core from 0.50.0 to 0.55.0
29+
- Bump @opentelemetry/instrumentation-pg from 0.57.0 to 0.61.0
30+
- Bump @opentelemetry/instrumentation-redis from 0.53.0 to 0.57.0
31+
- Bump @opentelemetry/instrumentation-tedious from 0.23.0 to 0.27.0
32+
- Bump @opentelemetry/instrumentation-undici from 0.15.0 to 0.19.0
33+
- Bump @prisma/instrumentation from 6.15.0 to 6.19.0
734
- fix(node): Fix Spotlight configuration precedence to match specification (#18195)
835

936
## 10.25.0

dev-packages/e2e-tests/test-applications/node-core-express-otel-v2-custom-sampler/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"@opentelemetry/api": "^1.9.0",
1515
"@opentelemetry/context-async-hooks": "^2.1.0",
1616
"@opentelemetry/core": "^2.1.0",
17-
"@opentelemetry/instrumentation": "^0.204.0",
17+
"@opentelemetry/instrumentation": "^0.208.0",
1818
"@opentelemetry/instrumentation-http": "^0.204.0",
1919
"@opentelemetry/resources": "^2.1.0",
2020
"@opentelemetry/sdk-trace-node": "^2.1.0",

dev-packages/e2e-tests/test-applications/node-core-express-otel-v2-sdk-node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"@opentelemetry/api": "^1.9.0",
1515
"@opentelemetry/context-async-hooks": "^2.1.0",
1616
"@opentelemetry/core": "^2.1.0",
17-
"@opentelemetry/instrumentation": "^0.204.0",
17+
"@opentelemetry/instrumentation": "^0.208.0",
1818
"@opentelemetry/instrumentation-http": "^0.204.0",
1919
"@opentelemetry/resources": "^2.1.0",
2020
"@opentelemetry/sdk-trace-node": "^2.1.0",

dev-packages/e2e-tests/test-applications/node-core-express-otel-v2/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@opentelemetry/api": "^1.9.0",
1717
"@opentelemetry/context-async-hooks": "^2.1.0",
1818
"@opentelemetry/core": "^2.1.0",
19-
"@opentelemetry/instrumentation": "^0.204.0",
19+
"@opentelemetry/instrumentation": "^0.208.0",
2020
"@opentelemetry/instrumentation-http": "^0.204.0",
2121
"@opentelemetry/resources": "^2.1.0",
2222
"@opentelemetry/sdk-trace-node": "^2.1.0",

dev-packages/e2e-tests/test-applications/node-otel-without-tracing/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"@opentelemetry/exporter-trace-otlp-http": "0.204.0",
1616
"@opentelemetry/instrumentation-undici": "0.13.2",
1717
"@opentelemetry/instrumentation-http": "0.204.0",
18-
"@opentelemetry/instrumentation": "0.204.0",
18+
"@opentelemetry/instrumentation": "0.208.0",
1919
"@sentry/node": "latest || *",
2020
"@types/express": "4.17.17",
2121
"@types/node": "^18.19.1",

dev-packages/node-core-integration-tests/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
"@opentelemetry/api": "^1.9.0",
3030
"@opentelemetry/context-async-hooks": "^2.1.0",
3131
"@opentelemetry/core": "^2.1.0",
32-
"@opentelemetry/instrumentation": "^0.204.0",
33-
"@opentelemetry/instrumentation-http": "0.204.0",
32+
"@opentelemetry/instrumentation": "^0.208.0",
33+
"@opentelemetry/instrumentation-http": "0.208.0",
3434
"@opentelemetry/resources": "^2.1.0",
3535
"@opentelemetry/sdk-trace-base": "^2.1.0",
3636
"@opentelemetry/semantic-conventions": "^1.37.0",

packages/aws-serverless/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@
6666
},
6767
"dependencies": {
6868
"@opentelemetry/api": "^1.9.0",
69-
"@opentelemetry/instrumentation": "^0.204.0",
70-
"@opentelemetry/instrumentation-aws-sdk": "0.59.0",
69+
"@opentelemetry/instrumentation": "^0.208.0",
70+
"@opentelemetry/instrumentation-aws-sdk": "0.64.0",
7171
"@opentelemetry/semantic-conventions": "^1.37.0",
7272
"@sentry/core": "10.25.0",
7373
"@sentry/node": "10.25.0",

packages/nestjs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
"dependencies": {
4747
"@opentelemetry/api": "^1.9.0",
4848
"@opentelemetry/core": "^2.1.0",
49-
"@opentelemetry/instrumentation": "^0.204.0",
50-
"@opentelemetry/instrumentation-nestjs-core": "0.50.0",
49+
"@opentelemetry/instrumentation": "^0.208.0",
50+
"@opentelemetry/instrumentation-nestjs-core": "0.55.0",
5151
"@opentelemetry/semantic-conventions": "^1.37.0",
5252
"@sentry/core": "10.25.0",
5353
"@sentry/node": "10.25.0"

0 commit comments

Comments
 (0)