Skip to content

feat(deps): Bump OpenTelemetry dependencies#19682

Open
andreiborza wants to merge 1 commit intodevelopfrom
ab/bump-otel
Open

feat(deps): Bump OpenTelemetry dependencies#19682
andreiborza wants to merge 1 commit intodevelopfrom
ab/bump-otel

Conversation

@andreiborza
Copy link
Member

@andreiborza andreiborza commented Mar 6, 2026

  • Bump @opentelemetry/context-async-hooks from 2.5.1 to 2.6.0
  • Bump @opentelemetry/core from 2.5.1 to 2.6.0
  • Bump @opentelemetry/instrumentation from 0.211.0 to 0.213.0
  • Bump @opentelemetry/instrumentation-amqplib from 0.58.0 to 0.60.0
  • Bump @opentelemetry/instrumentation-aws-sdk from 0.66.0 to 0.68.0
  • Bump @opentelemetry/instrumentation-connect from 0.54.0 to 0.56.0
  • Bump @opentelemetry/instrumentation-dataloader from 0.28.0 to 0.30.0
  • Bump @opentelemetry/instrumentation-express from 0.59.0 to 0.61.0
  • Bump @opentelemetry/instrumentation-fs from 0.30.0 to 0.32.0
  • Bump @opentelemetry/instrumentation-generic-pool from 0.54.0 to 0.56.0
  • Bump @opentelemetry/instrumentation-graphql from 0.58.0 to 0.61.0
  • Bump @opentelemetry/instrumentation-hapi from 0.57.0 to 0.59.0
  • Bump @opentelemetry/instrumentation-http from 0.211.0 to 0.213.0
  • Bump @opentelemetry/instrumentation-ioredis from 0.59.0 to 0.61.0
  • Bump @opentelemetry/instrumentation-kafkajs from 0.20.0 to 0.22.0
  • Bump @opentelemetry/instrumentation-knex from 0.55.0 to 0.57.0
  • Bump @opentelemetry/instrumentation-koa from 0.59.0 to 0.61.0
  • Bump @opentelemetry/instrumentation-lru-memoizer from 0.55.0 to 0.57.0
  • Bump @opentelemetry/instrumentation-mongodb from 0.64.0 to 0.66.0
  • Bump @opentelemetry/instrumentation-mongoose from 0.57.0 to 0.59.0
  • Bump @opentelemetry/instrumentation-mysql from 0.57.0 to 0.59.0
  • Bump @opentelemetry/instrumentation-mysql2 from 0.57.0 to 0.59.0
  • Bump @opentelemetry/instrumentation-nestjs-core from 0.57.0 to 0.59.0
  • Bump @opentelemetry/instrumentation-pg from 0.63.0 to 0.65.0
  • Bump @opentelemetry/instrumentation-redis from 0.59.0 to 0.61.0
  • Bump @opentelemetry/instrumentation-tedious from 0.30.0 to 0.32.0
  • Bump @opentelemetry/instrumentation-undici from 0.21.0 to 0.23.0
  • Bump @opentelemetry/resources from 2.5.1 to 2.6.0
  • Bump @opentelemetry/sdk-trace-base from 2.5.1 to 2.6.0
  • Bump @opentelemetry/semantic-conventions from 1.39.0 to 1.40.0
  • Bump @prisma/instrumentation from 7.2.0 to 7.4.2
  • Bump @fastify/otel from 0.16.0 to 0.17.1

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

Closes #19683 (added automatically)

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

- Bump @opentelemetry/context-async-hooks from 2.5.1 to 2.6.0
- Bump @opentelemetry/core from 2.5.1 to 2.6.0
- Bump @opentelemetry/instrumentation from 0.211.0 to 0.213.0
- Bump @opentelemetry/instrumentation-amqplib from 0.58.0 to 0.60.0
- Bump @opentelemetry/instrumentation-aws-sdk from 0.66.0 to 0.68.0
- Bump @opentelemetry/instrumentation-connect from 0.54.0 to 0.56.0
- Bump @opentelemetry/instrumentation-dataloader from 0.28.0 to 0.30.0
- Bump @opentelemetry/instrumentation-express from 0.59.0 to 0.61.0
- Bump @opentelemetry/instrumentation-fs from 0.30.0 to 0.32.0
- Bump @opentelemetry/instrumentation-generic-pool from 0.54.0 to 0.56.0
- Bump @opentelemetry/instrumentation-graphql from 0.58.0 to 0.61.0
- Bump @opentelemetry/instrumentation-hapi from 0.57.0 to 0.59.0
- Bump @opentelemetry/instrumentation-http from 0.211.0 to 0.213.0
- Bump @opentelemetry/instrumentation-ioredis from 0.59.0 to 0.61.0
- Bump @opentelemetry/instrumentation-kafkajs from 0.20.0 to 0.22.0
- Bump @opentelemetry/instrumentation-knex from 0.55.0 to 0.57.0
- Bump @opentelemetry/instrumentation-koa from 0.59.0 to 0.61.0
- Bump @opentelemetry/instrumentation-lru-memoizer from 0.55.0 to 0.57.0
- Bump @opentelemetry/instrumentation-mongodb from 0.64.0 to 0.66.0
- Bump @opentelemetry/instrumentation-mongoose from 0.57.0 to 0.59.0
- Bump @opentelemetry/instrumentation-mysql from 0.57.0 to 0.59.0
- Bump @opentelemetry/instrumentation-mysql2 from 0.57.0 to 0.59.0
- Bump @opentelemetry/instrumentation-nestjs-core from 0.57.0 to 0.59.0
- Bump @opentelemetry/instrumentation-pg from 0.63.0 to 0.65.0
- Bump @opentelemetry/instrumentation-redis from 0.59.0 to 0.61.0
- Bump @opentelemetry/instrumentation-tedious from 0.30.0 to 0.32.0
- Bump @opentelemetry/instrumentation-undici from 0.21.0 to 0.23.0
- Bump @opentelemetry/resources from 2.5.1 to 2.6.0
- Bump @opentelemetry/sdk-trace-base from 2.5.1 to 2.6.0
- Bump @opentelemetry/semantic-conventions from 1.39.0 to 1.40.0
- Bump @prisma/instrumentation from 7.2.0 to 7.4.2
- Bump @fastify/otel from 0.16.0 to 0.17.1
- Bump import-in-the-middle from ^2.0.6 to ^3.0.0

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Agent transcript: https://claudescope.sentry.dev/share/4-aMP6Zabhb5qeepADKpI3z4_QabyNnztuj6SDAbsmk
"@opentelemetry/resources": "^2.5.1",
"@opentelemetry/sdk-trace-base": "^2.5.1",
"@opentelemetry/semantic-conventions": "^1.39.0",
"@opentelemetry/context-async-hooks": "^2.6.0",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The code uses an outdated API for import-in-the-middle v3.0.0. createAddHookMessageChannel no longer returns addHookMessagePort, which will cause a runtime error and break ESM instrumentation.
Severity: CRITICAL

Suggested Fix

Update the code to use the new API returned by createAddHookMessageChannel in v3. Destructure registerOptions from the function call and pass it directly to moduleModule.register(). The call should look like: const { registerOptions } = createAddHookMessageChannel(); moduleModule.register('import-in-the-middle/hook.mjs', import.meta.url, registerOptions);.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: packages/node-core/package.json#L108

Potential issue: The pull request upgrades the `import-in-the-middle` dependency to
version 3.0.0, a major version with breaking API changes. However, the code in
`esmLoader.ts` was not updated to reflect these changes. The function
`createAddHookMessageChannel` no longer returns `addHookMessagePort` in v3. Instead, it
returns `{ registerOptions, waitForAllMessagesAcknowledged }`. This mismatch will cause
`addHookMessagePort` to be `undefined`, leading to a runtime error when it's passed in
the `transferList` to `moduleModule.register()`. This failure will prevent ESM module
instrumentation from being registered, effectively breaking all OpenTelemetry
instrumentation for ESM modules.

Did we get this right? 👍 / 👎 to inform future reviews.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, the 3.0 release only dropped node support.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2026

size-limit report 📦

⚠️ Warning: Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.

Path Size % Change Change
@sentry/browser 25.63 kB - -
@sentry/browser - with treeshaking flags 24.13 kB - -
@sentry/browser (incl. Tracing) 42.43 kB - -
@sentry/browser (incl. Tracing, Profiling) 47.09 kB - -
@sentry/browser (incl. Tracing, Replay) 81.25 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 70.87 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 85.95 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 98.21 kB - -
@sentry/browser (incl. Feedback) 42.44 kB - -
@sentry/browser (incl. sendFeedback) 30.3 kB - -
@sentry/browser (incl. FeedbackAsync) 35.35 kB - -
@sentry/browser (incl. Metrics) 26.8 kB - -
@sentry/browser (incl. Logs) 26.94 kB - -
@sentry/browser (incl. Metrics & Logs) 27.61 kB - -
@sentry/react 27.38 kB - -
@sentry/react (incl. Tracing) 44.77 kB - -
@sentry/vue 30.08 kB - -
@sentry/vue (incl. Tracing) 44.3 kB - -
@sentry/svelte 25.66 kB - -
CDN Bundle 28.17 kB - -
CDN Bundle (incl. Tracing) 43.26 kB - -
CDN Bundle (incl. Logs, Metrics) 29.01 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 44.1 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 68.09 kB - -
CDN Bundle (incl. Tracing, Replay) 80.14 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 81 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 85.65 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 86.53 kB - -
CDN Bundle - uncompressed 82.35 kB - -
CDN Bundle (incl. Tracing) - uncompressed 128.07 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 85.19 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 130.9 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 208.85 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 244.95 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 247.77 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 257.86 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 260.67 kB - -
@sentry/nextjs (client) 47.18 kB - -
@sentry/sveltekit (client) 42.89 kB - -
@sentry/node-core 52.26 kB +0.05% +21 B 🔺
@sentry/node 174.15 kB -0.33% -562 B 🔽
@sentry/node - without tracing 97.08 kB -0.32% -304 B 🔽
@sentry/aws-serverless 112.8 kB -0.35% -395 B 🔽

View base workflow run

@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2026

node-overhead report 🧳

Note: This is a synthetic benchmark with a minimal express app and does not necessarily reflect the real-world performance impact in an application.

Scenario Requests/s % of Baseline Prev. Requests/s Change %
GET Baseline 8,975 - 9,167 -2%
GET With Sentry 1,658 18% 1,740 -5%
GET With Sentry (error only) 6,186 69% 6,123 +1%
POST Baseline 1,185 - 1,196 -1%
POST With Sentry 594 50% 600 -1%
POST With Sentry (error only) 1,046 88% 1,068 -2%
MYSQL Baseline 3,227 - 3,344 -3%
MYSQL With Sentry 423 13% 510 -17%
MYSQL With Sentry (error only) 2,618 81% 2,729 -4%

View base workflow run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(deps): Bump OpenTelemetry dependencies

1 participant