Large number of OTel instrumentation dependencies installed by Sentry #13846
Replies: 2 comments 5 replies
-
Your concern is very valid. Up until now we just kept adding deps for the simple reason that we want to make it dead simple to set up Sentry. I am starting to think that this could go south long term when thinking about, maintenance, reliability, and security. I don't have a specific answer for you but I will take this to the team and discuss. |
Beta Was this translation helpful? Give feedback.
-
This fact is the root cause for pain and issues in our mono repo as well.
Before 9.x this used to be kept in sync quite well by Sentry maintainers. But now that 9.x alpha is being worked on, the 8.x branch is no longer kept up to date with these dependencies. We have our own explicit dependency to Combining all these facts amounts to a version diff which is causing problems with duplicate metrics in our OTEL exporters, and this issue can only be fixed if we manually downgrade our PLEASE make these peer dependencies or drop them, this is not working. It needs to be fixed in 9.x this is not sustainable. I'd rather drop |
Beta Was this translation helpful? Give feedback.
-
In recent releases, the number of OpenTelemetry instrumentation packages installed by
@sentry/node
has ballooned to 21:These comprise many megabytes of dependencies that increase install times and bloat the size of our container images with absolutely zero value for our team, application, or users.
Is there any chance that we'll get a
@sentry/node-core
or similar package that doesn't include this OpenTelemetry bloat? This would mirror what OpenTelemetry itself does:@opentelemetry/auto-instrumentations-node
can be used by anyone who wants all possible instrumentation, but one can still piece together their own setup by manually installing and configuring just the constituent packages that they need.If not: what'll happen in the long run here? The official OTel autoinstrumentation package is up to 39
@opentelemetry/instrumentation-*
dependencies, with more being periodically added. Will@sentry/node
just keep adding more and more dependencies to keep up?Beta Was this translation helpful? Give feedback.
All reactions