Add ability to capture variables from all frames
Maintainer antworten meist innerhalb von 2 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Feature
- Klarheit
- Muss geklärt werden
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- ruby
- Bereich
- observability
Rechercherichtung
Beginne mit lib/sentry-ruby.rb in den Zeilen 57-58, wo im Issue steht, dass TracePoint das binding für lokale Variablen abruft. Ermittle, ob Ruby aus einem Exception-Handler auf bindings für jeden Frame zugreifen kann, und identifiziere anschließend die vorhandenen Tests für include_local_variables. Als abgeschlossen gilt die Aufgabe, wenn ein Opt-in-Report Variablen aus allen Stack-Frames enthält, ohne das aktuelle Verhalten zu ändern.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Describe the idea
I am currently using the include_local_variables flag to capture the top frame's variables on an exception. AFAIK there isn't support for capturing variables for all frames, only the top frame. I am curious if it is possible to report variables for all frames in the stack as an option as well.
Why do you think it's beneficial to most of the users
In my case, it would help a ton to debug why an error is occurring to understand how to solve it. For example, there is an exception being raised by an HTTP request, but the part I am trying to understand is how that request was constructed, not why the exception was raised when executing that request (the wrong request is being sent).
Possible implementation
I am not sure if this is possible in Ruby!
I see the current implementation gets the binding using TracePoint, and then gets the variables from that.
I don't know in ruby if you can navigate up the stack in an exception handler like this.
- Vorherrschende Sprache
- Ruby
- Sterne
- 990
- Forks
- 552
- Ø Merge
- 2 T. 16 Std.
- Gemergte PRs (30 T.)
- 29
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus getsentry/sentry-ruby
-
Bug Ruby
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
getsentry/sentry-ruby#3211 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Events dropped client-side for size are only logged at debug level and not recorded as lostEvtl. vergeben @sentry-junior hat das heute übernommen. OffenBug Junior: repro Ruby
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
getsentry/sentry-ruby#3209 · 2 Kommentare · 1 Reaktion ·
Maintainer antworten meist innerhalb von 2 Tagen
-
with_child_span drops spans when blocks exit via break, return, or throwEvtl. vergeben @itsrayeedscodespace hat das vor 1 Tag übernommen. OffenBug Ruby Traces Waiting for: Product Owner
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 38/100
getsentry/sentry-ruby#3206 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Let apps choose how the client IP on events is determinedEvtl. vergeben @sl0thentr0py hat das vor 12 Tagen übernommen. OffenImprovement Ruby
getsentry/sentry-ruby#3180 · 2 Kommentare · 1 Reaktion · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 2 Tagen
-
breaking change Next Major
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 58/100
getsentry/sentry-ruby#3176 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
Alle Issues in getsentry/sentry-ruby
Ähnliche Issues
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
internetee/registry#2984 ·
Maintainer antworten meist innerhalb von 6 Tagen
-
interest-zsv
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
hitobito/hitobito_zsv#6 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
ecosyste-ms/issues#862 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Redis Lua error `@user_script:52: ERR value is not an integer or out of range` when `window_size` is configuredEvtl. vergeben @mimosa hat das heute übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
riscv/riscv-unified-db#2829 ·
Maintainer antworten meist innerhalb von 1 Tag