Commit 0a3a203
Merge #153289
153289: stmtdiagnostics: write transaction diagnostics to new system tables r=kyle-a-wong a=kyle-a-wong
Updates `TxnRegistry.InsertTxnRequest` and `TxnRegistry.InsertTxnDiagnostic`
to persist data to the new `system.transaction_diagnostics_requests` and
`system.transaction_diagnostics` tables.
`InsertTxnDiagnostic` will also update the `system.statement_diagnostics`
table to update the `transaction_diagnostics_id` column and update
the `system.transaction_diagnostics_requests` table to mark the request
as complete. It will also insert its own bundle into
`system.statement_bundle_chunks`. For now, this bundle will only contain
trace recordings, but in the future it can be updated to have any data
related to the transaction.
Part-of: [CRDB-53546](https://cockroachlabs.atlassian.net/browse/CRDB-53546)
Epic: [CRDB-53541](https://cockroachlabs.atlassian.net/browse/CRDB-53541)
Release note: None
----
Note: this is a stacked PR, only the last commit needs to be reviewed
Co-authored-by: Kyle Wong <37189875+kyle-a-wong@users.noreply.github.com>File tree
7 files changed
+553
-144
lines changed- pkg/sql
- stmtdiagnostics
7 files changed
+553
-144
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
| 68 | + | |
65 | 69 | | |
66 | 70 | | |
67 | 71 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
583 | | - | |
| 583 | + | |
584 | 584 | | |
585 | 585 | | |
586 | 586 | | |
| |||
627 | 627 | | |
628 | 628 | | |
629 | 629 | | |
630 | | - | |
| 630 | + | |
631 | 631 | | |
632 | 632 | | |
633 | 633 | | |
| |||
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
666 | 674 | | |
667 | 675 | | |
668 | 676 | | |
669 | 677 | | |
670 | 678 | | |
671 | | - | |
672 | | - | |
673 | | - | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
674 | 682 | | |
675 | 683 | | |
676 | 684 | | |
| |||
0 commit comments