getsentry / getsentry/sentry

"Open this line in GitHub" at specific commit with GitHub integration

Open
#107,193 2 comments 0 reactions 0 assignees View on GitHub
2. High Feature GitHub Product Area: Settings - Integrations Waiting for: Product Owner
Dominant language
Python
Stars
44.8k
Forks
4.9k
Avg merge
21h 10m
Merged PRs (30d)
635

Description

### Problem Statement

Currently, the github integration allows you to open specific code lines from an error stack trace to view them in GitHub. However, it appears this always opens the file and line in the current main/master branch instead of the specific commit of the code running when the error was reported.

Image

### Solution Brainstorm

Especially with a continuously changing codebase, it would be nice to have the GitHub integration recognize the commit if specified in the error (for example, we specify the commit in the revision/release and via a tag) and open the line at that specific commit, so that opening older errors still brought up the relevant line in GitHub.

### Product Area

Unknown

Contributor guide

Open the contributing guide

Research direction

Start by locating the GitHub integration's handling of links from error stack traces, then inspect how revisions, releases, and tags are represented in reported errors. Done means opening a line for an older error targets the specified commit rather than the current main/master branch.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, python
Domain
devtools, observability-sre
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.