Event_id -> sentry issue url?



We’re using the raven library to send exceptions generated from Python code to Sentry. The return value of the captureException() method is a client-generated id. I would like to use this ID to generate a Sentry dashboard URL linking to the related Sentry issue, but I’m not sure how. For instance, one recent exception I captured has the following characteristics:

event_id: d10be0c7e6aa450cbb5127e8249921f3
URL: https:||sentry.io|||issues|579522194|

When we visit the above URL, it clearly lists event_id as being a kind of clickable, unique identifier for the issue. However, the link itself doesn’t seem to use that same key.

Is there a URL structure exposed that will automatically redirect from, for example, https:||sentry.io|events|d10be0c7e6aa450cbb5127e8249921f3 to https:||sentry.io|||issues|579522194| ?

Is there some other way to generate and log a clickable URL on the event sender’s side? Is it a limitation of the raven Python client, which does not appear to store or return any data that results from sending the event to Sentry’s servers?

Thank you,

Construct a Sentry URL from the Event id alone

You’d have to know the org/project names in order to do it today. If you have that, you can enter it into the search bar on the issues page, or you can query the same API that the search bar uses (take a look via Chrome Inspector). We’ve talked about exposing a more global search here that’d let you look up events by ID without knowing the project.


Thanks for the reply! We do know the org and project, but we still don’t know the issue ID. The idea is not that we’d want to be able to search the dashboard for the event_id, which works well enough, but to be able to generate a clickable URL at event-send time (to send to our logs, for example). So, +1 for a global event url redirect structure (global search would be less helpful).


You can do something like this for a clickable URL:


(replace sentry/zeus accordingly)

1 Like

That’s perfect. Thanks!


The solution above seems to be outdated, what’s the better way to do it now?



The same rough link should work, you’ll just need to update the URL to the final form. At the very least, the above schema should correctly redirect you.


Yes, you’re correct. It does work.

Thank you!