sql: add tracing for locks requested by a scan
Previously, we would only log the spans requested by a scan. To provide additional visibility about lock acquisition, we now include information about locking modes requested by a scan.
Fixes: #115016
Release note: None
It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?
:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.
nit: what's reason for incrementing
bytesHintby 1?
I must've typoed that while updating the print statement. I was sitting here wondering "why 1025? that's a weird size."
bors r+