-
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.
log: add protobuf messages for telemetry txn events
This commit adds the messages listed below to `telemetry.proto` in preparation for sending transaction executions to the telemetry channel. The transaction event that is eventually sent should contain all execution information currently being tracked for transaction fingerprints. - `SampledTransaction`: contains fields equivalent to the execution information stored by `CollectedTransactionStatistics` from app_stats.proto, but represents a single txn execution instead of aggregated executions of a transaction fingerprint. - `SampledExecStats`: used as a field in `SampledTransaction`, it contains execution stats that are sampled. This event is the equivalent to `ExecStats` from app_stats.proto but for a single execution. - `MVCCIteratorStats`: used in `SampledExecStats` above, the equivalent of MVCCIteratorStats from app_stats.proto but for a single execution. In addition, in order to support the above fields a couple of additional code templates have been added for generating json log encoding: - array_of_uint64 type is now being handled for json logs - `nestedMessage` has been added as a custom type in `gen.go`. Object field types can be assigned to this type in order to generate them as nested objects. Part of: #108284 Release note: None
- Loading branch information
Showing
8 changed files
with
686 additions
and
6 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.