Event_id -> sentry issue url?

#1

Hello,

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,
Kurtiss

Construct a Sentry URL from the Event id alone
#2

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.

#3

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).

#4

You can do something like this for a clickable URL:

https://sentry.io/sentry/zeus/?query=2763c4eabd7240f59829ee1a02546293

(replace sentry/zeus accordingly)

1 Like
#5

That’s perfect. Thanks!

#6

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

Thanks!

#7

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.

#8

Yes, you’re correct. It does work.

Thank you!