Search code examples
pythonmonitoringsentry

Get an event page url for Sentry


Sentry's event url pattern looks like this https://{host}/{organization}/{project}/issues/{issue_id}/events/{event_id}/.

I can get event_id from last_event_id

Is there a way to get issue_id with a known event_id or to use only event_id to get an event page URL?


Solution

  • I found the answer in sources.

    Sentry have a redirect from https://{host}/{organization}/{project}/events/{event_id} to https://{host}/{organization}/{project}/issues/{issue_id}/events/{event_id}

    So a known event_id will be enough to get an event page url