Skip to content

Debug Info File not getting associated correctly #4766

@Rubyrubex

Description

@Rubyrubex

Integration

sentry

Java Version

21.0.7

Version

8.16.0

Steps to Reproduce

The build process uses the Maven-Sentry-Plugin with the uploadSourceBundle goal and sets up the jdk properly with correct debug ids in the debug meta of the exception.
The app also uses the log4j2 sentry appender but the tested exception was made with a generic Sentry.captureException.

  1. Manually generate source bundle with collected sources in target/sentry/collected-sources (made by the Maven Sentry plugin (the actual uploadSourceBundle goal does the same but bundles less files than found, 900 files found 170 bundled in the case of my project, doing it manually bundles all files))
  2. Upload Bundle
  3. Add the bundle id to the Sentry.init options
  4. Throw a test exception and capture it:
Image

Expected Result

Source code with the exception as seen in the Docs for Source Context

Image

Actual Result

An error with no source code in the Stack trace (both classes are in the source bundle)
Image
And when looking at the images loaded section there is one unreferenced image
Image
which when viewed shows
Image
and opening it in settings shows that there is a file with the correct debug id
Image

It could be i missed something in the docs related to this but i made sure to compare the .jvm files in the .zip and everything seemed in place (.jvm files matching packages with the .java classes) but i found it weird that nothing was showing in the images section

also here's the json of the exception
test-exception.json

If any more information is needed i will happily provide and if it's just that i missed something with my setup please let me know so i can fix my issue.

Metadata

Metadata

Assignees

Labels

Projects

Status

Waiting for: Product Owner

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions