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
We already derive code mappings for other languages ([[1](https://blog.sentry.io/code-mappings-and-why-they-matter/)]). The novelty for 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:
/* Sentry added this stack trace rule to have in-app frames */
stack.module:foo.bar.** +app
For the concerned developer, source code contents are not used; only the file paths.
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.
Relying on customers setting up their in-app frames with Stack Trace Rules is not successful.
Without in-app frames, the following Sentry features do not 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 mapping from the
module
in the error (e.g.com.foo.bar
) to the file (com/foo/bar.java
) representingThis is the same process as [the documented manual step of creating the code mapping](https://docs.sentry.io/platforms/java/source-context/#setting-up-code-mappings).
We already derive code mappings for other languages ([[1](https://blog.sentry.io/code-mappings-and-why-they-matter/)]). The novelty for 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:
For the concerned developer, source code contents are not used; only the file paths.
Task list:
The text was updated successfully, but these errors were encountered: