diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 9fde7f15..2bfc6d4e 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,6 +1,10 @@ # Release History -## 2.4.5 (2019-12-19) +## 2.4.5 (2019-12-20) + +**Added** + +- feat: integrate sentry sdk **Fixed** diff --git a/httprunner/__main__.py b/httprunner/__main__.py index 7cc58a3b..59d39cb5 100644 --- a/httprunner/__main__.py +++ b/httprunner/__main__.py @@ -1,6 +1,11 @@ import sys +import sentry_sdk + from httprunner.cli import main +sentry_sdk.init("https://cc6dd86fbe9f4e7fbd95248cfcff114d@sentry.io/1862849") + + if __name__ == "__main__": sys.exit(main()) diff --git a/poetry.lock b/poetry.lock index 1f0d0e58..9c336eb7 100644 --- a/poetry.lock +++ b/poetry.lock @@ -174,6 +174,32 @@ version = "0.9.1" [package.dependencies] requests = ">=2.0.1,<3.0.0" +[[package]] +category = "main" +description = "Python client for Sentry (https://getsentry.com)" +name = "sentry-sdk" +optional = false +python-versions = "*" +version = "0.13.5" + +[package.dependencies] +certifi = "*" +urllib3 = ">=1.10.0" + +[package.extras] +aiohttp = ["aiohttp (>=3.5)"] +beam = ["beam (>=2.12)"] +bottle = ["bottle (>=0.12.13)"] +celery = ["celery (>=3)"] +django = ["django (>=1.8)"] +falcon = ["falcon (>=1.4)"] +flask = ["flask (>=0.11)", "blinker (>=1.1)"] +pyspark = ["pyspark (>=2.4.4)"] +rq = ["0.6"] +sanic = ["sanic (>=0.8)"] +sqlalchemy = ["sqlalchemy (>=1.2)"] +tornado = ["tornado (>=5)"] + [[package]] category = "main" description = "HTTP library with thread-safe connection pooling, file post, and more." @@ -201,7 +227,7 @@ termcolor = ["termcolor"] watchdog = ["watchdog"] [metadata] -content-hash = "8963771b32271f9cfbec299fdccfd46f8847a4817c1d2083ca451ccff81646cb" +content-hash = "3a262aa9fb64682ee5fcecc0e72249d0a549b78c697fce7bbabc79648d615fef" python-versions = "~2.7 || ^3.5" [metadata.files] @@ -340,6 +366,10 @@ requests-toolbelt = [ {file = "requests-toolbelt-0.9.1.tar.gz", hash = "sha256:968089d4584ad4ad7c171454f0a5c6dac23971e9472521ea3b6d49d610aa6fc0"}, {file = "requests_toolbelt-0.9.1-py2.py3-none-any.whl", hash = "sha256:380606e1d10dc85c3bd47bf5a6095f815ec007be7a8b69c878507068df059e6f"}, ] +sentry-sdk = [ + {file = "sentry-sdk-0.13.5.tar.gz", hash = "sha256:c6b919623e488134a728f16326c6f0bcdab7e3f59e7f4c472a90eea4d6d8fe82"}, + {file = "sentry_sdk-0.13.5-py2.py3-none-any.whl", hash = "sha256:05285942901d38c7ce2498aba50d8e87b361fc603281a5902dda98f3f8c5e145"}, +] urllib3 = [ {file = "urllib3-1.25.7-py2.py3-none-any.whl", hash = "sha256:a8a318824cc77d1fd4b2bec2ded92646630d7fe8619497b142c84a9e6f5a7293"}, {file = "urllib3-1.25.7.tar.gz", hash = "sha256:f3c5fd51747d450d4dcf6f923c81f78f811aab8205fda64b0aba34a4e48b0745"}, diff --git a/pyproject.toml b/pyproject.toml index 59ccb517..cdc3defa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,6 +41,7 @@ colorlog = "^4.0.2" filetype = "^1.0.5" jsonpath = "^0.82" future = { version = "^0.18.1", python = "~2.7" } +sentry-sdk = "^0.13.5" [tool.poetry.dev-dependencies] flask = "<1.0.0"