Skip to content
Snippets Groups Projects
Commit 56e8af6c authored by Leo P. Singer's avatar Leo P. Singer
Browse files
parent 3d7fa45f
No related branches found
No related tags found
No related merge requests found
......@@ -63,6 +63,7 @@ def configure():
version = 'gwcelery-{}'.format(_version.get_versions()['version'])
environment = app.conf['sentry_environment']
sentry_sdk.init(dsn, environment=environment, release=version,
traces_sample_rate=1.0,
integrations=[celery.CeleryIntegration(),
condor.CondorIntegration(),
flask.FlaskIntegration(),
......
......@@ -48,6 +48,7 @@ def test_sentry_configure(mock_tornado_integration, mock_redis_integration,
mock_celery_integration.assert_called_once_with()
mock_sdk_init.assert_called_once_with(
dsn, environment=environment, release=release,
traces_sample_rate=1.0,
integrations=[
mock_celery_integration.return_value,
mock_condor_integration.return_value,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment