sentry-python icon indicating copy to clipboard operation
sentry-python copied to clipboard

Add ability for users to ensure a specific local variable gets logged in error stack trace

Open kylemumma opened this issue 1 year ago • 0 comments

Problem Statement

Currently not all of my local variables are showing up in my error stack trace, and the ones that show up and the ones that don't is determined arbitrarily. I want to ensure that a specific variable that I care about shows up in this stack trace.

Solution Brainstorm

I'm not too sure how the sdk works so take my suggestions here with a grain of salt but one way I thought of is some sdk function like: var1 = 15 ensure_capture(var1) ...

kylemumma avatar Jan 26 '24 18:01 kylemumma