getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
37.55k stars 4.04k forks source link

Stack Trace Rules bypass recusion check #73738

Open lhunath opened 6 days ago

lhunath commented 6 days ago

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

  1. Specify a stack trace rule for a frame which may appear in a recursion
  2. Produce an error where the frame participates in a stack recursion
  3. Observe the grouping of the error event's stack

eg.

stack.package:**/UIKitCore stack.function:[-+]\[* +group

Expected Result

frame (un-ignored by stack trace rule (package:**/SwiftUI function:[-+]\[* +group))
    function -[UIScrollView(SwiftUI) _swiftui_adjustsContentInsetWhenScrollDisabled]
frame (ignored due to recursion)
    function -[UIScrollView(SwiftUI) _swiftui_adjustsContentInsetWhenScrollDisabled]
frame (ignored due to recursion)
    function -[UIScrollView(SwiftUI) _swiftui_adjustsContentInsetWhenScrollDisabled]

Actual Result

frame (un-ignored by stack trace rule (package:**/SwiftUI function:[-+]\[* +group))
    function -[UIScrollView(SwiftUI) _swiftui_adjustsContentInsetWhenScrollDisabled]
frame (un-ignored by stack trace rule (package:**/SwiftUI function:[-+]\[* +group))
    function -[UIScrollView(SwiftUI) _swiftui_adjustsContentInsetWhenScrollDisabled]
frame (un-ignored by stack trace rule (package:**/SwiftUI function:[-+]\[* +group))
    function -[UIScrollView(SwiftUI) _swiftui_adjustsContentInsetWhenScrollDisabled]

It doesn't seem to be desirable to make the default behaviour be the one that is least useful, this makes the group sensitive to the # of recursions which is not the default Sentry stack grouping behaviour.

Furthermore, there is no simple way to restore the recursive check. One might be forced to explicitly write out sibling rules for each standard rule just to restore the default recursion behaviour. A recursion:yes/no matcher might be a useful addition if flipping the default behaviour by itself is inadequate.

Product Area

Issues

Link

https://hubstaff.sentry.io/issues/5565708392/events/bed216c2a2974d35b147bddd99587b01/

DSN

https://d5eb5898c01249b7a9396e7fa5deea1b@o378389.ingest.sentry.io/5277412

Version

8.25.0

getsantry[bot] commented 6 days ago

Auto-routing to @getsentry/product-owners-issues for triage ⏲️

scttcper commented 6 days ago

Thanks for reporting i've added this to our grouping backlog. cc @armenzg