I hereby claim:
- I am mukgupta on github.
- I am mukgupta (https://keybase.io/mukgupta) on keybase.
- I have a public key ASD4iu717OKYGE4QAxg_Cpr33RyIfsHwsq5dULFUUp9I2go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
myApp.factory('RavenHTTPInterceptor', ['Raven', '$q', function(Raven, $q) { | |
var httpIgnoreErrors = [401]; //Error codes to be ignored | |
var ignoreError = function(error){ | |
return httpIgnoreErrors.indexOf(error) !== -1; | |
} | |
return { | |
// optional method |
// record a simple message | |
Raven.captureMessage('hello world!') | |
// capture an exception | |
try { | |
errorThrowingCode(); | |
} catch(err) { | |
Raven.captureException(err); | |
} |
# Add raven to the list of installed apps | |
INSTALLED_APPS = INSTALLED_APPS + ( | |
# ... | |
'raven.contrib.django.celery ', | |
) |
LOGGING = { | |
'version': 1, | |
'disable_existing_loggers': True, | |
'root': { | |
'level': 'WARNING', | |
'handlers': ['sentry'], | |
}, | |
'formatters': { | |
'verbose': { | |
'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s' |
# Set your DSN value | |
RAVEN_CONFIG = { | |
'dsn': 'YOUR_DSN_KEY', | |
} | |
# Add raven to the list of installed apps | |
INSTALLED_APPS = INSTALLED_APPS + ( | |
# ... | |
'raven.contrib.django.raven_compat', | |
) |
Raven.setUser({ | |
"id": 'UNIQUE_USER_ID', | |
"email": 'USER_EMAIL' | |
}) |
/** | |
* Angular.js plugin | |
* | |
* Provides an $exceptionHandler for Angular.js | |
*/ | |
;(function(Raven, angular) { | |
'use strict'; | |
// quit if angular isn't on the page | |
if (!angular) { |