Skip to content

EnhancerByGuice proxies are not filtered out in stack trace #21645

Closed

Description

@svetlana-nikitina

Hi, we are running sentry java sdk on play framework ver. 2.6.5 with Java 1.8

      <dependency>
            <groupId>io.sentry</groupId>
            <artifactId>sentry</artifactId>
            <version>3.1.1</version>
        </dependency>

and experience an issue that the guice-enhanced proxies are apparently the part of the stack trace fingerprint calculation, so we have a lot of detached events:
image

is there a way to exclude them so our events are merged out of the box?

Activity

  1. self-assigned this
    on Oct 29, 2020
  2. bruno-garcia commented on Oct 29, 2020

    @bruno-garcia
    Member

    As a work around until we find the final solution, I suggest adding an EventProcessor that will go through each stacktrace frame and if the function contains $EnhancerByGuice$ you mark the frame setInApp(false).

    Only inApp=true events are considered when grouping.

    We'll add some server-side rule for this on our end though.

  3. svetlana-nikitina commented on Oct 29, 2020

    @svetlana-nikitina
    Author

    i've played with project configuration a bit and added from UI in Custom Grouping Enhancements section this rule:

    stack.module:*EnhancerByGuice* -group
    stack.module:*EnhancerByGuice* -app
    

    i don't have enough traffic atm to prove it, but I hope that it helps

    ps:
    the documentation for Java is very strange and kind of disaster though as all examples and explanations are about JS: https://docs.sentry.io/platforms/java/data-management/event-grouping/grouping-enhancements/

  4. github-actions commented on Jan 6, 2021

    @github-actions
    Contributor

    This issue has gone three weeks without activity. In another week, I will close it.

    But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Accepted, I will leave it alone ... forever!


    "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

  5. removed their assignment
    on Sep 12, 2023
  6. bruno-garcia commented on Sep 12, 2023

    @bruno-garcia
    Member

    I believe @adinauer did some improvements in this area?

  7. adinauer commented on Sep 12, 2023

    @adinauer
    Member

    Yes, we made some improvements via #45185

  8. svetlana-nikitina commented on Sep 12, 2023

    @svetlana-nikitina
    Author

    seems to work! thanks!

  9. moved this to Waiting for: Product Owner in GitHub Issues with 👀on Sep 12, 2023
  10. svetlana-nikitina commented on Sep 12, 2023

    @svetlana-nikitina
    Author

    Works

  11. locked and limited conversation to collaborators on Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions