Add sentry SDK to flask app and celery worker
1 unresolved thread
1 unresolved thread
Merge request reports
Activity
requested review from @erik.reid
assigned to @Robert.Latta
1 1 """ 2 2 default app creation 3 3 """ 4 import os 5 import pkg_resources 6 import sentry_sdk 7 from sentry_sdk.integrations.flask import FlaskIntegration 8 9 sentry_dsn = os.getenv('SENTRY_DSN') 10 if sentry_dsn: 11 sentry_sdk.init( 12 dsn=sentry_dsn, 13 integrations=[FlaskIntegration()], 14 release=pkg_resources.get_distribution('inventory-provider').version) 15 16 # sentry should load before any other inventory-provider specific imports changed this line in version 2 of the diff
mentioned in commit c5da4995
Please register or sign in to reply