Skip to content
Snippets Groups Projects

Add sentry SDK to flask app and celery worker

Merged Bjarke Madsen requested to merge sentry-sdk-integration into develop
1 unresolved thread

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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
  • Bjarke Madsen added 1 commit

    added 1 commit

    Compare with previous version

  • Bjarke Madsen mentioned in commit c5da4995

    mentioned in commit c5da4995

  • merged

  • Please register or sign in to reply
    Loading