Modulesยง
- sealed ๐
Structsยง
- Prepared
Statement Event - Rows to be written to
mz_prepared_statement_historyandmz_sql_text, with the session id. - Session
History ๐Event - Statement
Began Execution Record - Contains all the information necessary to generate the initial
entry in
mz_statement_execution_history. We need to keep this around in order to modify the entry later once the statement finishes executing. - Statement
Ended Execution Record - Statement
Logging Frontend - Encapsulates statement logging state needed by the frontend peek sequencing.
- Statement
Logging Id - Statement
Prepared ๐Record - Contains all the information necessary to generate an entry in
mz_prepared_statement_history - Throttling
State - Throttling state for statement logging, shared across multiple frontend tasks (and currently also shared with the old peek sequencing).
- Throttling
State ๐Inner - Watch
SetCreation - Bundles all information needed to install watch sets for statement lifecycle logging. This includes the statement logging ID and the transitive dependencies to watch.
Enumsยง
- Frontend
Statement Logging Event - Represents a single statement logging event that can be sent from the frontend peek sequencing to the Coordinator via an mpsc channel.
- Prepared
Statement Logging Info - Metadata required for logging a prepared statement.
- Statement
Ended Execution Reason - Statement
Execution Strategy - Statement
Lifecycle Event
Functionsยง
- create_
began_ ๐execution_ record - Helper function to create a
StatementBeganExecutionRecord. - effective_
sample_ ๐rate - The effective rate at which statement execution should be sampled.
This is the value of the session var
statement_logging_sample_rate, constrained by the system varstatement_logging_max_sample_rate. - pack_
statement_ ๐began_ execution_ update - pack_
statement_ ๐execution_ inner - pack_
statement_ ๐prepared_ update - serialize_
params ๐ - Helper function to serialize statement parameters for logging.
- should_
sample_ ๐statement - Helper function to decide whether to sample a statement execution.
Returns
trueif the statement should be sampled based on the sample rate.