mirror of
https://github.com/zulip/zulip.git
synced 2026-07-03 21:10:12 +08:00
Sentry has client SDKs for many programming languages and frameworks.
Sentry has deprecated their old "Raven" series of client SDKs in favor
of a new series of client SDKs following their unified API format.
As it stood, our Sentry integration was already outdated being written
for the version 5 payloads (the Raven SDKs stopped at version 6 which
is already vastly different from version 5) when the current and
prominently used version is version 7.
This commit completely rewrites the existing Sentry integration.
Tested and supported events:
- Issue created, resolved, assigned, and ignored events.
- "Sentry events" for "capture exception" and "capture message" with
the Golang, Node.js, and Python SDKs (other SDKs should also work but
only these were used for testing).
For reference:
- Old (Raven) SDK for python:
https://github.com/getsentry/raven-python
- New (Unified API format) SDK for python:
https://github.com/getsentry/sentry-python
Signed-off-by: Hemanth V. Alluri <hdrive1999@gmail.com>
119 lines
2.9 KiB
JSON
119 lines
2.9 KiB
JSON
{
|
|
"action": "triggered",
|
|
"data": {
|
|
"event": {
|
|
"event_id": "8da63b42375e4d3b803c377fefb062f8",
|
|
"project": 5216640,
|
|
"release": null,
|
|
"dist": null,
|
|
"platform": "python",
|
|
"message": "A simple message-based issue.",
|
|
"datetime": "2020-04-28T14:05:04.210463Z",
|
|
"tags": [
|
|
[
|
|
"level",
|
|
"info"
|
|
],
|
|
[
|
|
"runtime",
|
|
"CPython 3.6.9"
|
|
],
|
|
[
|
|
"runtime.name",
|
|
"CPython"
|
|
],
|
|
[
|
|
"server_name",
|
|
"hp-pavilion"
|
|
]
|
|
],
|
|
"_metrics": {
|
|
"bytes.ingested.event": 796,
|
|
"bytes.stored.event": 1339
|
|
},
|
|
"contexts": {
|
|
"runtime": {
|
|
"version": "3.6.9",
|
|
"type": "runtime",
|
|
"name": "CPython",
|
|
"build": "3.6.9 (default, Apr 18 2020, 01:56:04) \n[GCC 8.4.0]"
|
|
}
|
|
},
|
|
"culprit": "",
|
|
"extra": {
|
|
"sys.argv": [
|
|
"trigger-message.py"
|
|
]
|
|
},
|
|
"fingerprint": [
|
|
"{{ default }}"
|
|
],
|
|
"grouping_config": {
|
|
"enhancements": "eJybzDhxY3J-bm5-npWRgaGlroGxrpHxBABcTQcY",
|
|
"id": "newstyle:2019-10-29"
|
|
},
|
|
"hashes": [
|
|
"b31896ab3433f42862a78d60fca14636"
|
|
],
|
|
"key_id": "1146336",
|
|
"level": "info",
|
|
"location": null,
|
|
"logentry": {
|
|
"message": null,
|
|
"params": null,
|
|
"formatted": "A simple message-based issue."
|
|
},
|
|
"logger": "",
|
|
"metadata": {
|
|
"title": "A simple message-based issue."
|
|
},
|
|
"modules": {
|
|
"wheel": "0.34.2",
|
|
"pkg-resources": "0.0.0",
|
|
"sentry-sdk": "0.14.3",
|
|
"urllib3": "1.25.9",
|
|
"setuptools": "46.1.3",
|
|
"pip": "20.0.2",
|
|
"certifi": "2020.4.5.1"
|
|
},
|
|
"received": 1588082705.406414,
|
|
"sdk": {
|
|
"version": "0.14.3",
|
|
"name": "sentry.python",
|
|
"packages": [
|
|
{
|
|
"version": "0.14.3",
|
|
"name": "pypi:sentry-sdk"
|
|
}
|
|
],
|
|
"integrations": [
|
|
"argv",
|
|
"atexit",
|
|
"dedupe",
|
|
"excepthook",
|
|
"logging",
|
|
"modules",
|
|
"stdlib",
|
|
"threading"
|
|
]
|
|
},
|
|
"timestamp": 1588082704.210463,
|
|
"title": "A simple message-based issue.",
|
|
"type": "default",
|
|
"version": "7",
|
|
"url": "https://sentry.io/api/0/projects/hypro999-personal-organization/zulip-integration-testing/events/8da63b42375e4d3b803c377fefb062f8/",
|
|
"web_url": "https://sentry.io/organizations/hypro999-personal-organization/issues/1635261062/events/8da63b42375e4d3b803c377fefb062f8/",
|
|
"issue_url": "https://sentry.io/api/0/issues/1635261062/"
|
|
},
|
|
"triggered_rule": "Send a webhook payload to Webhook.site"
|
|
},
|
|
"installation": {
|
|
"uuid": "65027794-169a-4042-80d0-808ece377141"
|
|
},
|
|
"actor": {
|
|
"type": "application",
|
|
"id": "sentry",
|
|
"name": "Sentry"
|
|
}
|
|
}
|