-
-
Notifications
You must be signed in to change notification settings - Fork 341
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
Error is associated with incorrect transaction after crash #4375
Comments
Thanks for reporting this, @aellett. What exactly do you mean by
I tried to reproduce the issue but I couldn't. I start a manual transaction directly after let t = SentrySDK.startTransaction(name: "after-crash", operation: "crash", bindToScope: true)
let child = t.startChild(operation: "hello")
DispatchQueue.global().asyncAfter(deadline: .now() + 10.0) {
child.finish()
t.finish()
} Potential culprits could be that we have to ignore crash events here sentry-cocoa/Sources/Sentry/SentryScope.m Lines 567 to 586 in 33c23d3
and here sentry-cocoa/Sources/Sentry/SentryClient.m Lines 383 to 411 in 33c23d3
|
I just meant that I wouldn't think that having a transaction running when the crash happens matters. If I cause an error, but the It looks to me like you're correct that if those places (maybe just the first one?) ignored crash events, it would resolve this. |
Fix linking a crash event to an ongoing trace by skipping setting the trace context in Scope.applyToEvent for crash events. Fixes GH-4375
@aellett, we fixed the issue. We plan to release this fix early next week. |
Platform
iOS
Environment
Production
Installed
Manually
Version
8.36.0
Xcode Version
15.2
Did it work on previous versions?
No response
Steps to Reproduce
LAUNCH_[obscured]
Expected Result
I would expect to see either
The error has a
transaction
property that matches the name of the original scoped transaction (before the crash)or
The error has a
transaction
property that is nil, or doesn't have atransaction
property at all.Actual Result
The error is labeled with
transaction
ofLAUNCH_[obscured]
which was the transaction that I started after the second app launch.I think that I would rather not see a transaction at all, if the alternative is to see the next transaction after the crash. This is further misleading (for me) because it shows up in the title at the top of the screen on the view of the error (screenshot attached). If I ever wanted to count how many errors had some particular transaction value, I think this would throw off my calculations.
Note: I imagine this is sort of adjacent to #2306 so if it's more convenient to group these together, feel free, but this felt like a separate issue. Also felt like it might be able to be resolved even if 2306 can't be resolved.
Are you willing to submit a PR?
No response
The text was updated successfully, but these errors were encountered: