getsentry / getsentry/sentry-python
Add file name and line number to logentry
- Vorherrschende Sprache
- Python
- Sterne
- 2.2k
- Forks
- 669
- Ø Merge
- 1 T. 1 Std.
- Gemergte PRs (30 T.)
- 213
Beschreibung
### Problem Statement
I want more metadata in `logentry` so I can create GitHub/GitLab links from the Issue Details page.
### Solution Brainstorm
logentry [1] does not have enough metadata to create a link back to GitHub. If you add the file name and line number it would be sufficient for me.
For instance, [this issue](https://sentry.sentry.io/issues/4957163612/?project=1&query=start%3D2024-02-29T06%3A48%3A00%26end%3D2024-02-29T09%3A19%3A00%26groupStatsPeriod%3Dauto&referrer=alerts-related-issues-issue-stream) shows this under `Message`:
If I had the extra metadata, I could create a hyperlink to this line (which is where the error is raised):
https://github.com/getsentry/sentry/blob/817cc75c6f22bdfcd05bc08cafdb6e89046e1e41/src/sentry/utils/safe.py#L43
[1]
```
"logentry": {
"message": "%s.process_error",
"formatted": "send_notification.process_error",
"params": [
"send_notification"
]
},
```
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.