mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00: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>
168 lines
6.3 KiB
JSON
168 lines
6.3 KiB
JSON
{
|
|
"action": "triggered",
|
|
"data": {
|
|
"event": {
|
|
"event_id": "80777a9cc30e4d0eb8904333d5c298b0",
|
|
"project": 5216640,
|
|
"release": null,
|
|
"dist": null,
|
|
"platform": "go",
|
|
"message": "",
|
|
"datetime": "2020-04-29T11:23:45.978469Z",
|
|
"tags": [
|
|
[
|
|
"level",
|
|
"error"
|
|
],
|
|
[
|
|
"os.name",
|
|
"linux"
|
|
],
|
|
[
|
|
"runtime",
|
|
"go go1.14.1"
|
|
],
|
|
[
|
|
"runtime.name",
|
|
"go"
|
|
],
|
|
[
|
|
"server_name",
|
|
"hp-pavilion"
|
|
]
|
|
],
|
|
"_metrics": {
|
|
"bytes.ingested.event": 1225,
|
|
"bytes.stored.event": 2231
|
|
},
|
|
"contexts": {
|
|
"device": {
|
|
"num_cpu": 8,
|
|
"arch": "amd64",
|
|
"type": "device"
|
|
},
|
|
"runtime": {
|
|
"name": "go",
|
|
"go_numcgocalls": 1,
|
|
"go_numroutines": 2,
|
|
"version": "go1.14.1",
|
|
"go_maxprocs": 8,
|
|
"type": "runtime"
|
|
},
|
|
"os": {
|
|
"type": "os",
|
|
"name": "linux"
|
|
}
|
|
},
|
|
"culprit": "main in main",
|
|
"exception": {
|
|
"values": [
|
|
{
|
|
"type": "*http.badStringError",
|
|
"value": "unsupported protocol scheme \"\""
|
|
},
|
|
{
|
|
"stacktrace": {
|
|
"frames": [
|
|
{
|
|
"function": "main",
|
|
"abs_path": "/home/hemanth/Desktop/sentry/trigger-exception.go",
|
|
"errors": null,
|
|
"pre_context": [
|
|
" // Set the timeout to the maximum duration the program can afford to wait.",
|
|
" defer sentry.Flush(2 * time.Second)",
|
|
"",
|
|
" resp, err := http.Get(os.Args[1])",
|
|
" if err != nil {"
|
|
],
|
|
"post_context": [
|
|
" log.Printf(\"reported to Sentry: %s\", err)",
|
|
" return",
|
|
" }",
|
|
" defer resp.Body.Close()",
|
|
""
|
|
],
|
|
"vars": null,
|
|
"package": null,
|
|
"context_line": " sentry.CaptureException(err)",
|
|
"symbol": null,
|
|
"image_addr": null,
|
|
"module": "main",
|
|
"in_app": false,
|
|
"symbol_addr": null,
|
|
"filename": "trigger-exception.go",
|
|
"lineno": 45,
|
|
"colno": null,
|
|
"trust": null,
|
|
"data": {
|
|
"orig_in_app": 1
|
|
},
|
|
"platform": null,
|
|
"instruction_addr": null,
|
|
"raw_function": null
|
|
}
|
|
]
|
|
},
|
|
"type": "*url.Error",
|
|
"value": "Get \"bad_url\": unsupported protocol scheme \"\""
|
|
}
|
|
]
|
|
},
|
|
"fingerprint": [
|
|
"{{ default }}"
|
|
],
|
|
"grouping_config": {
|
|
"enhancements": "eJybzDhxY3J-bm5-npWRgaGlroGxrpHxBABcTQcY",
|
|
"id": "newstyle:2019-10-29"
|
|
},
|
|
"hashes": [
|
|
"acfd5581b952e2955c28d0d4615b2eeb",
|
|
"62313c010c35c98db6151e708d658e61"
|
|
],
|
|
"key_id": "1146336",
|
|
"level": "error",
|
|
"location": "trigger-exception.go",
|
|
"logger": "",
|
|
"metadata": {
|
|
"function": "main",
|
|
"type": "*url.Error",
|
|
"value": "Get \"bad_url\": unsupported protocol scheme \"\"",
|
|
"filename": "trigger-exception.go"
|
|
},
|
|
"received": 1588159427.160184,
|
|
"sdk": {
|
|
"version": "0.6.0",
|
|
"name": "sentry.go",
|
|
"packages": [
|
|
{
|
|
"version": "0.6.0",
|
|
"name": "sentry-go"
|
|
}
|
|
],
|
|
"integrations": [
|
|
"ContextifyFrames",
|
|
"Environment",
|
|
"IgnoreErrors",
|
|
"Modules"
|
|
]
|
|
},
|
|
"timestamp": 1588159425.978469,
|
|
"title": "*url.Error: Get \"bad_url\": unsupported protocol scheme \"\"",
|
|
"type": "error",
|
|
"version": "7",
|
|
"url": "https://sentry.io/api/0/projects/hypro999-personal-organization/zulip-integration-testing/events/80777a9cc30e4d0eb8904333d5c298b0/",
|
|
"web_url": "https://sentry.io/organizations/hypro999-personal-organization/issues/1637164584/events/80777a9cc30e4d0eb8904333d5c298b0/",
|
|
"issue_url": "https://sentry.io/api/0/issues/1637164584/"
|
|
},
|
|
"triggered_rule": "Send a webhook payload to Webhook.site"
|
|
},
|
|
"installation": {
|
|
"uuid": "65027794-169a-4042-80d0-808ece377141"
|
|
},
|
|
"actor": {
|
|
"type": "application",
|
|
"id": "sentry",
|
|
"name": "Sentry"
|
|
}
|
|
}
|