-
-
Notifications
You must be signed in to change notification settings - Fork 435
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
Excluding proxy classes from stack trace #1018
Excluding proxy classes from stack trace #1018
Comments
hey @svetlana-nikitina thanks for raising this. does it help if you add those packages as |
Dupe: getsentry/sentry#21645 |
it don't think it's possible , because of:
However after paying around with sentry UI seems like it've fixed it
However I should say that Java documentation is a disaster, as all examples and explanations are about JS, not Java: https://docs.sentry.io/platforms/java/data-management/event-grouping/grouping-enhancements/ |
Thanks @svetlana-nikitina for feedback. We are working on making docs better. If you have something specific to add or change you are welcome to suggest changes in https://github.com/getsentry/sentry-docs/ |
We could bring the same blacklisting logic as in private static final Pattern IN_APP_BLACKLIST = Pattern.compile("\\$+" // match $ (one or more)
+ "(?:" // start outer group
+ "(?:EnhancerBy[a-zA-Z]*)" // Match Enhancer classes
+ "|(?:FastClassBy[a-zA-Z]*)" // Match FastClass
+ "|(?:HibernateProxy)" // match Hibernate proxies
+ ")\\$+"); // end outer group and match $ (one or more) What do you think @bruno-garcia? |
Generally at this point I think we should fix this on the server with improved default stack trace rules rather than in the SDKs themselves. |
For reference, where this exists on the server: https://github.com/getsentry/sentry/blob/master/src/sentry/grouping/enhancement-configs/[email protected] We'll add a platform: https://github.com/getsentry/sentry/blob/c62499d1de8414e119e8a199eee4c73a01393e44/src/sentry/stacktraces/platform.py Testing snapshots are here: https://github.com/getsentry/sentry/blob/master/tests/sentry/grouping/fingerprint_inputs/fingerprint-native.json Make sure |
@mitsuhiko how should we proceed with this? |
I think we are hitting the same issue whereby stack traces aren't getting matched up because of the hibernate proxies not matching, in our case the proxies are:
There seems to have been discussion about this a few years ago but things have stalled, the suggestion by @svetlana-nikitina of using the custom grouping is now documented on https://docs.sentry.io/product/data-management-settings/event-grouping/stack-trace-rules/ and looks to still be possible. Having the ability to customise this is good, however having it work out of the box for common use cases is much better. Filtering out dynamic classes generated by common frameworks seems like a sensible default to enable for everyone. |
We have a PR to improve fingerprinting of the stack traces mentioned here: getsentry/sentry#45185 Thanks for the feedback. |
Customers that have auto-update disabled will not be updated. The [2023-01-11](https://github.com/getsentry/sentry/blob/42a860c4fd13672cb3fa3384ede490654de44e0f/src/sentry/grouping/strategies/configurations.py#L189-L202) group config has the following changes: * A Java grouping fix: [java_cglib_hibernate_logic](#45185) * [A bunch of stacktrace enhancers](https://github.com/getsentry/sentry/blob/master/src/sentry/grouping/enhancer/enhancement-configs/newstyle%402023-01-11.txt) (based on the mobile enhancers) * More info in section 2 From: #45185 behind the `java_cglib_hibernate_logic` branch: Do not consider these as inApp: - `$EnhancerBy...$` - `$FastClassBy...$` - `$HibernateProxy$` Fixes getsentry/sentry-java#1018 [The file](https://github.com/getsentry/sentry/blob/master/src/sentry/grouping/enhancer/enhancement-configs/newstyle%402023-01-11.txt) has a bunch of enhancers. You can review the `pynsap` changes in the PR to get a sense of the changes. This is based off [the mobile enhancers file](https://github.com/getsentry/sentry/blob/master/src/sentry/grouping/enhancer/enhancement-configs/[email protected]). It basically adds the following [extra rules](https://github.com/getsentry/sentry/blob/8ef3e68d626d06859960a630a46296d52a9b93dc/src/sentry/grouping/enhancer/enhancement-configs/newstyle%402023-01-11.txt#L404-L463). All the PRs listed below are also part of [this milestone](https://github.com/getsentry/sentry/milestone/50?closed=1). The enhancements on top of the mobile enhancers includes these PRs (from [this historical view](https://github.com/getsentry/sentry/commits/master/src/sentry/grouping/enhancer/enhancement-configs/newstyle%402023-01-11.txt)): * #45423 * #44761 The changes for the mobile enhancers can be seen [here](https://github.com/getsentry/sentry/commits/master/src/sentry/grouping/enhancer/enhancement-configs/mobile%402021-04-02.txt): * #28669 * #28069 * #27994 * #27880 * #27836 * #27744 * #27781 * #27754 * #27314 * #27239 * #27076 * #27197
…#51040) This PR upgrades all projects that do not have auto-update disabled to the 2023-01-11 grouping config. This will happen as events for the project happen. Customers that want to override [any of the values from the enhancers in this release](https://github.com/getsentry/sentry/blob/master/src/sentry/grouping/enhancer/enhancement-configs/newstyle%402023-01-11.txt) can do so by using the project's [Stack Trace Rules under Issue Grouping](https://docs.sentry.io/product/data-management-settings/event-grouping/stack-trace-rules/). <img width="829" alt="image" src="https://github.com/getsentry/sentry/assets/44410/fd06e3d3-8f7b-438d-9a96-8431aa511a0f"> For instance, this change: `family:native package:/lib/** -app` can be overwritten with: `family:native package:/lib/** +app` ### Changes in this release The [2023-01-11](https://github.com/getsentry/sentry/blob/42a860c4fd13672cb3fa3384ede490654de44e0f/src/sentry/grouping/strategies/configurations.py#L189-L202) group config has the following changes: * A Java grouping fix: [java_cglib_hibernate_logic](#45185) * [A bunch of stacktrace enhancers](https://github.com/getsentry/sentry/blob/master/src/sentry/grouping/enhancer/enhancement-configs/newstyle%402023-01-11.txt) (based on the mobile enhancers) * More info in section 2 #### Java change From: #45185 behind the `java_cglib_hibernate_logic` branch: Do not consider these as inApp: - `$EnhancerBy...$` - `$FastClassBy...$` - `$HibernateProxy$` Fixes getsentry/sentry-java#1018 #### Stack Trace Rules Enhancers [The file](https://github.com/getsentry/sentry/blob/master/src/sentry/grouping/enhancer/enhancement-configs/newstyle%402023-01-11.txt) has a bunch of enhancers. You can review the `pynsap` changes in the PR to get a sense of the changes. This is based off [the mobile enhancers file](https://github.com/getsentry/sentry/blob/master/src/sentry/grouping/enhancer/enhancement-configs/[email protected]). It basically adds the following [extra rules](https://github.com/getsentry/sentry/blob/8ef3e68d626d06859960a630a46296d52a9b93dc/src/sentry/grouping/enhancer/enhancement-configs/newstyle%402023-01-11.txt#L404-L463). All the PRs listed below are also part of [this milestone](https://github.com/getsentry/sentry/milestone/50?closed=1). The enhancements on top of the mobile enhancers includes these PRs (from [this historical view](https://github.com/getsentry/sentry/commits/master/src/sentry/grouping/enhancer/enhancement-configs/newstyle%402023-01-11.txt)): * #45423 * #44761 The changes for the mobile enhancers can be seen [here](https://github.com/getsentry/sentry/commits/master/src/sentry/grouping/enhancer/enhancement-configs/mobile%402021-04-02.txt): * #28669 * #28069 * #27994 * #27880 * #27836 * #27744 * #27781 * #27754 * #27314 * #27239 * #27076 * #27197 --------- Co-authored-by: Armen Zambrano G <[email protected]> Co-authored-by: Arpad Borsos <[email protected]>
…#51040) This PR upgrades all projects that do not have auto-update disabled to the 2023-01-11 grouping config. This will happen as events for the project happen. Customers that want to override [any of the values from the enhancers in this release](https://github.com/getsentry/sentry/blob/master/src/sentry/grouping/enhancer/enhancement-configs/newstyle%402023-01-11.txt) can do so by using the project's [Stack Trace Rules under Issue Grouping](https://docs.sentry.io/product/data-management-settings/event-grouping/stack-trace-rules/). <img width="829" alt="image" src="https://github.com/getsentry/sentry/assets/44410/fd06e3d3-8f7b-438d-9a96-8431aa511a0f"> For instance, this change: `family:native package:/lib/** -app` can be overwritten with: `family:native package:/lib/** +app` ### Changes in this release The [2023-01-11](https://github.com/getsentry/sentry/blob/42a860c4fd13672cb3fa3384ede490654de44e0f/src/sentry/grouping/strategies/configurations.py#L189-L202) group config has the following changes: * A Java grouping fix: [java_cglib_hibernate_logic](#45185) * [A bunch of stacktrace enhancers](https://github.com/getsentry/sentry/blob/master/src/sentry/grouping/enhancer/enhancement-configs/newstyle%402023-01-11.txt) (based on the mobile enhancers) * More info in section 2 #### Java change From: #45185 behind the `java_cglib_hibernate_logic` branch: Do not consider these as inApp: - `$EnhancerBy...$` - `$FastClassBy...$` - `$HibernateProxy$` Fixes getsentry/sentry-java#1018 #### Stack Trace Rules Enhancers [The file](https://github.com/getsentry/sentry/blob/master/src/sentry/grouping/enhancer/enhancement-configs/newstyle%402023-01-11.txt) has a bunch of enhancers. You can review the `pynsap` changes in the PR to get a sense of the changes. This is based off [the mobile enhancers file](https://github.com/getsentry/sentry/blob/master/src/sentry/grouping/enhancer/enhancement-configs/[email protected]). It basically adds the following [extra rules](https://github.com/getsentry/sentry/blob/8ef3e68d626d06859960a630a46296d52a9b93dc/src/sentry/grouping/enhancer/enhancement-configs/newstyle%402023-01-11.txt#L404-L463). All the PRs listed below are also part of [this milestone](https://github.com/getsentry/sentry/milestone/50?closed=1). The enhancements on top of the mobile enhancers includes these PRs (from [this historical view](https://github.com/getsentry/sentry/commits/master/src/sentry/grouping/enhancer/enhancement-configs/newstyle%402023-01-11.txt)): * #45423 * #44761 The changes for the mobile enhancers can be seen [here](https://github.com/getsentry/sentry/commits/master/src/sentry/grouping/enhancer/enhancement-configs/mobile%402021-04-02.txt): * #28669 * #28069 * #27994 * #27880 * #27836 * #27744 * #27781 * #27754 * #27314 * #27239 * #27076 * #27197 --------- Co-authored-by: Armen Zambrano G <[email protected]> Co-authored-by: Arpad Borsos <[email protected]>
Hi, we are running sentry java sdk on play framework ver. 2.6.5 with Java 1.8
and experience an issue that the guice-enhanced proxies are apparently the parts of the stack trace fingerprint calculation, so we have a lot of detached events:
I see some old tickets which in the legacy SDK which used to solve the problem: #516
but don't see anything in the new sdk
Is it supported? How the issue be fixed?
The text was updated successfully, but these errors were encountered: