-
Notifications
You must be signed in to change notification settings - Fork 4.1k
sql: expose always-on tracing inflight registry using vtable and builtins #55733
Description
Is your feature request related to a problem? Please describe.
As part of always-on tracing, a node-local registry of inflight operations will be introduced (#55592). This registry would be most useful if it could be queried from SQL.
This would improve our troubleshooting story as we could filter on long-running KV trace spans in that table to easily detect hanging operations (unavailable range, heavy contention) in a self-service fashion.
Describe the solution you'd like
Introduce a virtual table crdb_internal.tracing_inflight (big question mark on the name) that pulls the node-local registry from all nodes in the cluster.
Add a view on that table that also translate (where possible) KV txn id -> SQL txn ID to allow filtering efficiently.
Describe alternatives you've considered
Additional context