You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Java SDK cannot determine in-app frames for customer issues. In some cases, it does create it based on the app package identifier.
NOTE: Some Java SDKs do mark in-app frames: Spring Boot and Android.
NOTE: At the moment, this system will only work for customers using the GitHub integration. Other SCMs will need to invest in implementing the get trees repo functionality.
DISCLAIMER: For the privacy-conscious developer, source code contents are not used; only the file paths.
Relying on customers setting up their in-app frames with Stack Trace Rules is not successful.
Without in-app frames, the following Sentry features cannot work:
Stack trace linking
Code coverage linking (if applicable)
GitHub pull request comments
Suspect Commits
Auto-assignments
Only a small number of Java stack traces have in-app frames, thus, the Sentry experience is handicapped.
The idea is that we create a code mapping and a stack trace rule to map from the module or package in the error (e.g. com.foo.bar) to the file (com/foo/bar.java) representing the file in their repositories.
armenzg
changed the title
Derive code mappings & in-app frames for Java projects
Automatic code mappings & in-app frames for Java projects
Jan 28, 2025
The Java SDK cannot determine in-app frames for customer issues. In some cases, it does create it based on the app package identifier.
NOTE: Some Java SDKs do mark in-app frames: Spring Boot and Android.
NOTE: At the moment, this system will only work for customers using the GitHub integration. Other SCMs will need to invest in implementing the get trees repo functionality.
DISCLAIMER: For the privacy-conscious developer, source code contents are not used; only the file paths.
Relying on customers setting up their in-app frames with Stack Trace Rules is not successful.
Without in-app frames, the following Sentry features cannot work:
Only a small number of Java stack traces have in-app frames, thus, the Sentry experience is handicapped.
The idea is that we create a code mapping and a stack trace rule to map from the
module
orpackage
in the error (e.g.com.foo.bar
) to the file (com/foo/bar.java
) representing the file in their repositories.Automatically generating code mappings is based on the documented manual step of creating code mappings by developers.
We already derive code mappings for other languages (1). The novelty of this project is that we will also create the stack trace rules.
Once we derive the code mapping we can add this stack trace rule for the project:
Task list:
The text was updated successfully, but these errors were encountered: