sentry-python
sentry-python copied to clipboard
Add ability for users to ensure a specific local variable gets logged in error stack trace
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) ...