Questions tagged [raven]

Use the [raven] tag for questions related to the standalone (and the official) Python client for Sentry (previously django-sentry). Use [ravendb] for the RavenDB related questions.

Raven is a standalone (and the official) Python client for Sentry (previously django-sentry).

135 questions
7
votes
1 answer

Sentry + Raven, HTTP Error 401: UNAUTHORIZED

I have a Sentry application, running correctly on the url: mydomain.com:11011. I have a project created with the CDN: http://XXX:YYY@mydomain.com:11011/2 This url is served with HAProxy with this configuration: listen sentry *:11011 mode tcp …
b3ni
  • 149
  • 1
  • 8
5
votes
0 answers

Sentry for logging in Spring

I use Sentry (on premise) for our logging. Recently I started moving to the Spring framework, I am not able to get the logs hit Sentry servers. I tried using log4j and logger (slf4j). In both cases I was not able to make any progress. My assumption…
Codevalley
  • 4,593
  • 7
  • 42
  • 56
5
votes
3 answers

Logging 404 Not Found pages to Sentry with Django

I'd like to log 404 Not Found errors codes to Sentry in Django 1.7. What hooks Django provides so I could push logger.error() message for these? Any other ideas how one should monitor non-500 missing / weirdly behaving pages with Django and…
Mikko Ohtamaa
  • 82,057
  • 50
  • 264
  • 435
5
votes
1 answer

How to prevent duplicate exception logging from a celery task

Second Edit: After a bit of digging, the question changed from how to log an exception with local variables to how to prevent celery from sending the 2nd log message which does not has the local vars. After the below attempt, I actually noticed…
tutuDajuju
  • 10,307
  • 6
  • 65
  • 88
5
votes
1 answer

Django Raven Very Slow

I'm logging messages in django using raven and getsentry, but the logging seems to delay the execution of the code. For example: # ...view code tic = datetime.datetime.now() logging.warning('foo warning') toc = datetime.datetime.now() print "log…
acrophobia
  • 924
  • 7
  • 22
5
votes
1 answer

Raven's SentryHandler is suppressing StreamHandler output to file

I have a plain python (non-Django) project where I'm trying to tie Raven into the logging setup. Under our current setup, we use a simple logging config: import logging logging.basicConfig(format='long detailed format', …
eternicode
  • 6,805
  • 4
  • 33
  • 39
4
votes
0 answers

Sentry doesn't group exceptions correctly (React app)

We're using Raven & Sentry to track errors from React app And each deploy produces new js bundle: my_bundle.e1277d4630b7d8cbb771.js my_bundle.844d5be4607494ae004f.js ... The same bundle can be served from different…
Igor
  • 355
  • 2
  • 14
4
votes
1 answer

Raven doesn't use source maps in Sentry for TS/JS code

I already used Sentry in a C# project and was very pleased about it. So I also want to use it in a new NodeJS project with TypeScript. Sadly, the required sourcemaps doesn't work fine here. I first tried it in a plain TS project without success.…
Lion
  • 16,606
  • 23
  • 86
  • 148
4
votes
4 answers

Disable SSL verification Sentry Raven in Django

I want to add a test sentry instance that has a self signed certificate. The app has the default RAVEN_CONFIG RAVEN_CONFIG = { 'dsn': 'https://xxxx@sentry.tst2.server.com/2', # If you are using git, you can also automatically configure the …
windravenii
  • 95
  • 1
  • 9
4
votes
1 answer

Celery Worker – remove warn message `[WARNING/MainProcess] celery@localhost ready`

When starting Celery Worker it outputs one warn message: [2016-06-26 20:30:23,005: WARNING/MainProcess] celery@daniula.local ready When setting up Raven client to collect errors and warning to Sentry: from raven.contrib.celery import…
daniula
  • 6,898
  • 4
  • 32
  • 49
4
votes
3 answers

Use Sentry's Raven JS to collect all HTTP errors

I have setup a Sentry application to collect HTTP / JS errors that can occur on the client side. However, it seems that when I try to make some 400 HTTP requests, Sentry failed to capture the request accordingly. Is it the default behavior of…
Hoang HUA
  • 325
  • 4
  • 7
4
votes
1 answer

Sentry - how to log only exceptions, not logger

I want to use sentry for logging test exceptions. So I configured it: # tests/__init__.py from raven import Client from raven.conf import setup_logging from raven.handlers.logging import SentryHandler client = Client(dsn='here goes dsn') handler =…
voy
  • 1,568
  • 2
  • 17
  • 28
4
votes
0 answers

Using Raven, how to save exception to file and sent later to Sentry?

In my Python app, I have been working with Raven+Sentry to catch exception and sent it to sentry at the time of the exception occur, code below: if __name__ == '__main__': from raven import Client client = Client(dsn='') try: …
swdev
  • 4,997
  • 8
  • 64
  • 106
4
votes
2 answers

raven not reporting exceptions to sentry

Uncaught exceptions are not being reported to sentry. I have ran manage.py raven test and I get the test message in sentry to confirm the communication is working. My configurations include: # settings.py RAVEN_CONFIG = { 'dsn':…
Rich Tier
  • 9,021
  • 10
  • 48
  • 71
4
votes
1 answer

Sentry logging in Django/Celery stopped working

I have no idea whats wrong. So far logging worked fine (and I was relying on that) but it seems to have stopped. I wrote a little test function (which does not work either): core.tasks.py import logging from celery.utils.log import…
kev
  • 8,928
  • 14
  • 61
  • 103
1
2
3
8 9