From 74af735e1e80d24358ac621609173781240b6a9b Mon Sep 17 00:00:00 2001 From: debugtalk Date: Mon, 23 Dec 2019 18:44:05 +0800 Subject: [PATCH] feat: add version tag for sentry --- httprunner/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/httprunner/__init__.py b/httprunner/__init__.py index e345eca5..04424948 100644 --- a/httprunner/__init__.py +++ b/httprunner/__init__.py @@ -4,4 +4,8 @@ __description__ = "One-stop solution for HTTP(S) testing." __all__ = ["__version__", "__description__"] import sentry_sdk + sentry_sdk.init("https://cc6dd86fbe9f4e7fbd95248cfcff114d@sentry.io/1862849") + +with sentry_sdk.configure_scope() as scope: + scope.set_tag("version", __version__)