Skip to content

fix(node): Use sentry forked @fastify/otel dependency with pinned Otel v1 deps #16256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 12, 2025

Conversation

andreiborza
Copy link
Member

@andreiborza andreiborza commented May 12, 2025

The @fastify/otel instrumentation uses OpenTelemetry v2, but for the time being Sentry only supports OpenTelemetry v1. We forked the library at https://github.com/getsentry/fastify-otel/tree/otel-v1 and downgraded its dependencies to OpenTelemetry v1.

For the downgrade work in the fork see: getsentry/fastify-otel@7893f70

Note: This also bumps the instrumentation from 0.6.0 to 0.8.0.

Resolves: #16245

…tel v1 deps

The `@fastify/otel` instrumentation uses OpenTelemetry v2, but for the time
being Sentry only supports OpenTelemetry v1. We forked the library at
https://github.com/getsentry/fastify-otel/tree/otel-v1 and downgraded its
dependencies to OpenTelemetry v1.

Resolves: #16245
Copy link
Contributor

github-actions bot commented May 12, 2025

size-limit report 📦

Path Size % Change Change
@sentry/browser 23.35 KB - -
@sentry/browser - with treeshaking flags 23.19 KB - -
@sentry/browser (incl. Tracing) 37.25 KB - -
@sentry/browser (incl. Tracing, Replay) 74.47 KB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 68.34 KB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 79.12 KB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 90.93 KB - -
@sentry/browser (incl. Feedback) 39.75 KB - -
@sentry/browser (incl. sendFeedback) 27.98 KB - -
@sentry/browser (incl. FeedbackAsync) 32.74 KB - -
@sentry/react 25.16 KB - -
@sentry/react (incl. Tracing) 39.24 KB - -
@sentry/vue 27.63 KB - -
@sentry/vue (incl. Tracing) 39.01 KB - -
@sentry/svelte 23.38 KB - -
CDN Bundle 24.55 KB - -
CDN Bundle (incl. Tracing) 37.29 KB - -
CDN Bundle (incl. Tracing, Replay) 72.33 KB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 77.64 KB - -
CDN Bundle - uncompressed 71.62 KB - -
CDN Bundle (incl. Tracing) - uncompressed 110.34 KB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 221.63 KB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 234.15 KB - -
@sentry/nextjs (client) 40.84 KB - -
@sentry/sveltekit (client) 37.73 KB - -
@sentry/node 154.12 KB +1.82% +2.75 KB 🔺
@sentry/node - without tracing 95.77 KB - -
@sentry/aws-serverless 120.16 KB - -

View base workflow run

Co-authored-by: Francesco Gringl-Novy <[email protected]>
resolved "https://registry.yarnpkg.com/@fastify/otel/-/otel-0.6.0.tgz#f86dfa6711804d0087288d7fadc097b41feea5b1"
integrity sha512-lL+36KwGcFiAMcsPOLLsR+GV8ZpQuz5RLVstlgqmecTdQLTXVOe9Z8uwpMg9ktPcV++Ugp3dzzpBKNFWWWelYg==
"@fastify/otel@git+https://github.com/getsentry/fastify-otel.git#otel-v1":
version "0.8.0"
Copy link
Member

Choose a reason for hiding this comment

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

side note: this also bumps this from 0.6.0 to 0.8.0, which may be relevant too? maybe to note the changes in the PR description?

Copy link
Member Author

Choose a reason for hiding this comment

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

Added a note 👍

@andreiborza andreiborza merged commit f1121ce into develop May 12, 2025
305 of 309 checks passed
@andreiborza andreiborza deleted the ab/use-sentry-fastify-fork branch May 12, 2025 11:36
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.

Since v9.17.0, peer dependencies issues have been introduced
3 participants