Skip to main content

[Java] How do I verify my events are set up properly for Source Context?

Issue

I'm not sure whether my events carry a debug ID, or whether my source bundles uploaded correctly, so I can't tell if Source Context is set up properly.

Applies To

  • All SaaS Customers and Self-Hosted Users

  • Java SDK (Maven or Gradle plugin)

  • Users manually uploading source bundles with sentry-cli

  • Source Context

Resolution

To confirm Source Context is set up, verify that your event carries a debug ID and that a source bundle with the same ID is uploaded to your project.

  1. Open the event. Go to an issue's event page and click JSON to open the event's JSON view.

  2. Confirm the debug ID is present. Check that the JSON contains a debug_meta key holding the event's debug ID. Sentry uses this value to match the event with your uploaded source bundles.

    Screenshot 2024-01-31 at 4.54.14 PM.png

    [Screenshot: the debug_meta section in the event JSON, showing the debug ID.]

  3. Find the matching bundle. Go to Project Settings > Debug Files and search for that debug ID. If Source Context is working, you will see an uploaded bundle with the same debug ID as the one in the event.

    Screenshot 2024-01-31 at 4.54.43 PM.png

    [Screenshot: Project Settings > Debug Files search showing a bundle with the matching debug ID.]

Did this answer your question?