-
-
Couldn't load subscription status.
- Fork 1.7k
Draft PR: Effect Integration for Sentry Node SDK #17432
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
Draft PR: Effect Integration for Sentry Node SDK #17432
Conversation
marbemac
commented
Sep 8, 2025
Just a quick note - @Divyanshu7001 the auto formatting on your machine resulted in lots of unrelated files being changed that make it more difficult to digest this PR.
Just a quick note - @Divyanshu7001 the auto formatting on your machine resulted in lots of unrelated files being changed that make it more difficult to digest this PR.
I was afraid of the same thing & thats why used github codespaces with no local settings
but yes..i did run yarn fix to do all the linting fixes on the package level , which has caused this issue.😅
@marbemac would you prefer another PR without the linting fixes?
i can do that if that will suit things better.
all open for it.
Thanks for creating this PR!
Can you please run fix:prettier from the root package.json? And also update the PR (merging or rebasing).
And to make sure we don't forget to review the PR you can assign e.g. me as a reviewer when you are ready.
@marbemac
marbemac
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Divyanshu7001, after actually looking at it, I don't understand how this is supposed to work. Most of the interfaces and methods used are not present in effect.
I created a custom effect tracer for Sentry over here, if you are interested -> https://github.com/marbemac/cloudflare-sentry-effect-tracing/blob/main/worker/effect-sentry-tracer.ts.
@marbemac
marbemac
Sep 16, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where can you find this in effect?
@marbemac
marbemac
Sep 16, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The span method on custom tracers takes 6 args, not 2.
@marbemac
marbemac
Sep 16, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where can you find this in the effect tracer interface?
@marbemac
marbemac
Sep 16, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where did you find these methods on the effect tracer? I do not think they exist.
1. Goal
This PR adds support for tracing Effect computations in the Sentry Node SDK. The goal is to automatically create Sentry spans for Effect operations and capture errors that occur within Effect computations as Sentry exceptions, providing better observability for users of the Effect library.
2. Pathway Taken
effectIntegration) and instrumentation (instrumentEffect) under@sentry/node.effectpackage as a dependency and provided type definitions for Effect’s tracer API.3. How the integration has happened and where it is included now
packages/node/src/integrations/tracing/effect/.4. How users should integrate Effect into their own project
Basic usage:
Sentry.effectIntegration()to your integrations array.5. Where am i stuck / need help
- Some test cases are still flaky or failing due to mocking or module loading order (see attached images).
Screenshot 2025年08月19日 054036 Screenshot 2025年08月19日 054110 Screenshot 2025年08月19日 054126 Screenshot 2025年08月19日 0540556. What is my thinking about these errors?
I think these errors are due to me not being able to setup the test environment properly as in most errors..the problem is just Span processes being undefined.
I would appreciate some pointers of where i am going wrong and how should i setup the test environment properly to test.