feat: disable sentry reports by setting environment DISABLE_SENTRY=true

This commit is contained in:
debugtalk
2022-04-18 15:27:45 +08:00
parent eaf3ffb16c
commit 67d37c0605
3 changed files with 7 additions and 0 deletions

View File

@@ -18,6 +18,9 @@ from httprunner.models import VariablesMapping
def init_sentry_sdk():
if os.getenv("DISABLE_SENTRY") == "true":
return
sentry_sdk.init(
dsn="https://460e31339bcb428c879aafa6a2e78098@sentry.io/5263855",
release="httprunner@{}".format(__version__),