Sentry: Get URL of event by ID

Created on 13 Jan 2014  路  18Comments  路  Source: getsentry/sentry

Previously raven test <uri> would print a URL which linked directly to the just captured event, e.g.

The test message can be viewed at the following URL: http://localhost:9000/1/search/?q=c988bf5cb7db4653825c92f6864e7206$b8a6fbd29cc9113a149ad62cf7e0ddd5

This functionality no longer seems to be possible in the new API without also knowing the team slug and project name.
The client only knows the Project ID from the DSN and the event ID.

Is there some other way to get a URL to your event?

Most helpful comment

@ruimarinho as long as you know the project slug you could:

/org-slug/project-slug/?query=EVENTID

All 18 comments

I'm having same problem. Not to sure what i'm doing wrong.

I have a python app, running flask and im trying to log events. I can only see them in the organisation stats.

Just to close this out, there's no way to build the full URL currently with just the DSN and event ID.

Thanks. I did eventually figure it out :)

@dcramer, is there any way to build the full URL at all?

@ruimarinho not currently (due to project ID), but we're planning to change that in the near future

Alright, but if we know the project ID before hand, would it possible? I'd like to be able to generate a logging message with a direct link to the generated client side id, even if some of the variables have to be fed in.

@ruimarinho as long as you know the project slug you could:

/org-slug/project-slug/?query=EVENTID

Got it, but that takes me to the aggregated event and not the exact event id, which is eventually mapped to org-slug/project-slug/group/<groupid>/events/<eventid>/.

@ruimarinho there's no guarantee the event is stored as Sentry may sample it. Because of that we dont implement a solid way to jump directly to the event at this time.

Ok, fair enough. Thanks for your time!

@dcramer Any update how to implement a reliable direct url to a ticket programmatically?

You could dump the event ID into the cross project search and it'll bubble up any matches, but otherwise there's no way to infer it from just the event ID.

Just came across this thread, people seem to have been asking for this for years now. What's preventing an implementation?

It鈥檚 already doable via what I said above. Event IDs are not globally unique so you need the project.

@dcramer can you show why my attempts don't work please? I tried:

https://sentry.io/organizations/org-name/project-name/?query=ID

And got a page not found. Then I tried:

https://sentry.io/org-name/project-name/?query=da09b681aad14ec1adbc09db0a70eb81

Redirects me to the project's issue search URL which looks like /organizations/org-name/issues/?project=PROJECT-ID

Neither works, We're on sentry-raven 2.12.2 in Ruby

Are you sure the event made it into the system? If I drop a valid event ID into search it will auto redirect if there's only one match.

@dcramer I am reporting an event and said action yields no failures, so the event should be in the system right?

@mariogintili really depends - we apply filters and rate limits upstream. You can't search for an event that doesn't exist in the system, so if search isn't returning it that'd be the reason why. I would look at the statistics for the project and see if you're dropping events.

Was this page helpful?
0 / 5 - 0 ratings