-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Limit focused events to session-captured trace IDs #217
Conversation
Adjust the behavior of Traces and Errors to show events which are associated with a known-local trace ID. If no trace IDs are known, assume all events should be present instead.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #217 +/- ##
==========================================
- Coverage 32.47% 32.21% -0.27%
==========================================
Files 39 42 +3
Lines 1869 1993 +124
Branches 71 71
==========================================
+ Hits 607 642 +35
- Misses 1262 1351 +89 ☔ View full report in Codecov by Sentry. |
One note - Sentry's Remix integration, and there's probably more, is currently not able to handle SSR errors. That is, if you load a route, and it hits the top level ErrorBoundary, we fail to propagate the trace headers correctly. That means in this regard the error is shown as "in another session" because we've got an active frontend trace. However, that frontend trace is also detached from the backend hydration because of that same issue. |
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.
I generally really like this change! We should be aware that the limitation you mentioned for Remix also exists for Astro SSR error pages (e.g. astro playground /ssr-error
page) but maybe that's also okay. In fact, this might just trigger the fallback logic to show all events.
I'm gonna wait with merging #228 until this is merged (if we still wanna merge before tomorrow). |
Will follow up with a GH issue tracking this + an experimental flag for it. The Astro SSR case - at least in our playground - bypasses all session local logic so in that case the behavior is ok. |
Adjust the behavior of Traces and Errors to show events which are associated with a known-local trace ID. If no trace IDs are known, assume all events should be present instead.
Fixes #188