Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add custom tags to raven

How to add custom tags to get raven set it to sentry?

When I used raven in django there was several tags like OS, Browser, etc.

But I want to add such tags by myself using raven, without django.

Thanks.

like image 918
Eugene Nagorny Avatar asked Mar 10 '13 19:03

Eugene Nagorny


1 Answers

If I'm correctly understanding the question, you can pass to sentry whatever you want in extra dictionary, see raven docs.

You can also construct messages via capture* methods (and pass extra too):

  • capture
  • captureException
  • captureMessage
  • captureQuery

Btw, OS, browser...etc parameters sentry gets from the passed request object.

like image 181
alecxe Avatar answered Sep 17 '22 13:09

alecxe