sentry: make sentry events more useful #76571
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
T-server-and-security
DB Server & Security
We have recently fixed our automatic issue creating from sentry events (thanks Rail!); however, there are still some things to be desired.
Let's examine a very recent issue #76570 (sentry link). It gives us a nice stack trace, but the details about what error prompted the event are missing. All we can see is that an error was thrown by the vectorized engine here:
cockroach/pkg/sql/colexec/parallel_unordered_synchronizer.go
Line 353 in c7cfac5
which is just a wrapper around
panic
cockroach/pkg/sql/colexecerror/error.go
Line 192 in c7cfac5
The error is augmented with "unexpected error from the vectorized engine" message here
cockroach/pkg/sql/colexecerror/error.go
Line 88 in c7cfac5
(when the error is caught later in the stack).
The sentry event contains this
but it is missing all other details about the original error. And that's what I'd like to find out how to add.
Anecdotally, I think this was working on 20.2 and prior and stopped working with 21.1 release. It's possible that we're misusing
errors
API incolexecerror/error.go
, but I'm not sure. cc @knz if you have wisdom to share about it.Jira issue: CRDB-13179
The text was updated successfully, but these errors were encountered: