mirror of
https://github.com/zulip/zulip.git
synced 2026-07-09 21:21:47 +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>
84 lines
2.7 KiB
JSON
84 lines
2.7 KiB
JSON
{
|
|
"action": "triggered",
|
|
"data": {
|
|
"event": {
|
|
"event_id": "6886bb1fe7ce4497b7836f6083d5fd34",
|
|
"project": 5216640,
|
|
"release": null,
|
|
"dist": null,
|
|
"platform": "node",
|
|
"message": "Test event from node.",
|
|
"datetime": "2020-04-30T06:09:56.493251Z",
|
|
"tags": [
|
|
[
|
|
"level",
|
|
"info"
|
|
]
|
|
],
|
|
"_metrics": {
|
|
"bytes.ingested.event": 363,
|
|
"bytes.stored.event": 933
|
|
},
|
|
"culprit": "",
|
|
"fingerprint": [
|
|
"{{ default }}"
|
|
],
|
|
"grouping_config": {
|
|
"enhancements": "eJybzDhxY3J-bm5-npWRgaGlroGxrpHxBABcTQcY",
|
|
"id": "newstyle:2019-10-29"
|
|
},
|
|
"hashes": [
|
|
"b1e874f29de1cc06a65a1cb4faafc21b"
|
|
],
|
|
"key_id": "1146336",
|
|
"level": "info",
|
|
"location": null,
|
|
"logentry": {
|
|
"message": null,
|
|
"params": null,
|
|
"formatted": "Test event from node."
|
|
},
|
|
"logger": "",
|
|
"metadata": {
|
|
"title": "Test event from node."
|
|
},
|
|
"received": 1588226996.493251,
|
|
"sdk": {
|
|
"version": "5.15.5",
|
|
"name": "sentry.javascript.node",
|
|
"packages": [
|
|
{
|
|
"version": "5.15.5",
|
|
"name": "npm:@sentry/node"
|
|
}
|
|
],
|
|
"integrations": [
|
|
"InboundFilters",
|
|
"FunctionToString",
|
|
"Console",
|
|
"Http",
|
|
"OnUncaughtException",
|
|
"OnUnhandledRejection",
|
|
"LinkedErrors"
|
|
]
|
|
},
|
|
"timestamp": 1588226996.493251,
|
|
"title": "Test event from node.",
|
|
"type": "default",
|
|
"version": "7",
|
|
"url": "https://sentry.io/api/0/projects/hypro999-personal-organization/zulip-integration-testing/events/6886bb1fe7ce4497b7836f6083d5fd34/",
|
|
"web_url": "https://sentry.io/organizations/hypro999-personal-organization/issues/1638840427/events/6886bb1fe7ce4497b7836f6083d5fd34/",
|
|
"issue_url": "https://sentry.io/api/0/issues/1638840427/"
|
|
},
|
|
"triggered_rule": "Send a webhook payload to Webhook.site"
|
|
},
|
|
"installation": {
|
|
"uuid": "65027794-169a-4042-80d0-808ece377141"
|
|
},
|
|
"actor": {
|
|
"type": "application",
|
|
"id": "sentry",
|
|
"name": "Sentry"
|
|
}
|
|
}
|