-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Unable to pass additional span processors to OTEL Node client #14826
Comments
Hi @sunnybak thanks for writing in! This is indeed a noteworthy change in the next Otel SDK major version and we'll probably need to adapt our strategy how to enable adding processors.
Is this actually hard-blocking you? The new Otel SDK version isn't released yet, so right now, adding a span processor via Otherwise, your proposed API makes sense to me. I'll also tag @mydea - thoughts? Btw, for the next time, please use our issue templates. They're there for a reason. Thanks! |
Another thought: Have you tried using a custom Otel Setup where you add Sentry components instead of using the Sentry setup and adding additional Otel components? Maybe this can also unblock you. |
Imho we can add a config similar to what we did for additional otel instrumentation to also pass in more span processors to sentry init! But agree, for now using the deprecated methods should be fine, we will work on a suitable replacement in early January then :) |
Thank you for the quick response, appreciate you looking into this! |
A PR closing this issue has just been released 🚀This issue was referenced by PR #14853, which was included in the 8.48.0 release. |
Goal: add additional span processors to Sentry Node and Sentry NextJS. This is currently blocking our production customers, so urgency would be appreciated!
TLDR:
client.traceProvider.addSpanProcessors([...])
as documented here.@sentry/node
or@sentry/nextjs
Proposed Solution:
spanProcessors
when theTraceProvider
is initialized, which would be hereNodeOption
) can be read and added to thespanProcessors
when initializing OTEL in SentryProposed code change in initOtel.ts:
and the user would do something like this:
Please let us know if you need anything.
The text was updated successfully, but these errors were encountered: