-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/bun
SDK Version
10.5.0
Framework Version
No response
Link to Sentry event
Reproduction Example/SDK Setup
We can invite your staff to our repo if needed.
Steps to Reproduce
We are experiencing an issue with errors ending up in the wrong transactions.
We are using @sentry/bun 10.5.0
We have manually instrumented spans with Sentry.withScope and Sentry.createSpan and our global error handler calls captureException. All errors are passed to the next() function from inside the span.
What we find is under load exceptions end up in transactions that are impossible: errors from production appearing on Sentry.io in preview environments, one route handler containing errors from another.
So we are looking for suggestions on how to resolve this.
Expected Result
An error thrown in route1 appears in route1's transaction, not in route2.
Actual Result
Errors appear attached to the wrong transactions.
Metadata
Metadata
Assignees
Projects
Status