Last active
March 17, 2023 08:41
-
-
Save pradishb/c000ff52f5b6c894e5394772735513ac to your computer and use it in GitHub Desktop.
Python sentry config with LoggingIntegration CRITICAL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sentry_sdk | |
from sentry_sdk.integrations.logging import LoggingIntegration | |
sentry_logging = LoggingIntegration(event_level=logging.CRITICAL) | |
sentry_sdk.init( | |
dsn=SENTRY_DSN, | |
traces_sample_rate=1.0, integrations=[sentry_logging], | |
ignore_errors=[KeyboardInterrupt], | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment