-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
115722: telemetry: log transaction exec events to TELEMETRY r=xinhaoz a=xinhaoz ### 1. [sql/telemetry: add SkippedTransactions to SampledTransaction proto](a356e63) This commit adds the field SkippedTransactions to the SampledTransaction protobuf to count the number of transactions that were not sampled while telemetry transaction logging is enabled. The corresponding field is added to the telemetryLogging struct and will be used in the following commit to track skipped transactions. Some whitespace in the SampledTransaction proto definition is adjusted. Epic: none Release note (sql change): New field `SkippedTransactions` in the SampledTransaction event, which is emitted to the TELEMETRY logging channel when telemetry logging is enabled and set to "transaction" mode. ### 2. [eventpb: make MVCCIteratorStats in SampledExecStats non-nullable](6610467) This field should always exist in SampledExecStats. Since SampledTransaction is the only user of this message right now and is yet to be used we can safely change the proto definition. Epic: none Release note: None ### 3. [eventpb: make MVCCIteratorStats in SampledExecStats non-nullable](6610467) This field should always exist in SampledExecStats. Since SampledTransaction is the only user of this message right now and is yet to be used we can safely change the proto definition. Epic: none Release note: None ### 4. [telemetry: log transaction exec events to TELEMETRY](cc0d1bb) This commit sends SampledTransaction events to the telemetry channel. In "transaction" sampling mode, if a transaction is marked to be logged to telemetry, we will emit a SampledTranaction event on transaction end containing transaction level stats. It is expected that if a transaction event exists in telemetry, its statement events will also have been logged (with a maximum number according to the setting sql.telemetry.transaction_sampling.statement_events_per_transaction.max. Closes: #108284 Release note (ops change): Transactions sampled for the telemetry logging channel will now emit a SampledTransaction event. To sample transactions, set the cluster setting `sql.telemetry.query_sampling.mode = 'transaction'` and enable telemetry logging via `sql.telemetry.query_sampling.enabled = true`. 118325: datapathutils: update comment for `DebuggableTempDir` r=rail a=rickystewart Improve some of the wording here. Also I accidentally wrote "temp" instead of "test" which is confusing. Epic: none Release note: None Co-authored-by: Xin Hao Zhang <[email protected]> Co-authored-by: Ricky Stewart <[email protected]>
- Loading branch information
Showing
16 changed files
with
925 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.