24#ifndef SERVER_TELEMETRY_TRACES_BITS_H
25#define SERVER_TELEMETRY_TRACES_BITS_H
31#define TRACE_STATEMENTS 0x0001
45#define TRACE_NOTHING 0x0000
46#define TRACE_EVERYTHING 0xFFFF
49struct telemetry_session_t;
52struct telemetry_locker_t;
54typedef telemetry_session_t *(*tel_session_create_v1_t)();
58typedef telemetry_locker_t *(*tel_stmt_start_v1_t)(telemetry_session_t *session,
60typedef telemetry_locker_t *(*tel_stmt_notify_qa_v1_t)(
61 telemetry_locker_t *locker,
bool with_query_attributes, uint64_t *
flags);
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:34
static int flags[50]
Definition: hp_test1.cc:40
telemetry_v1_t telemetry_t
Definition: server_telemetry_traces_bits.h:173
telemetry_stmt_data_v1_t telemetry_stmt_data_t
Definition: server_telemetry_traces_bits.h:172
void(* abort_telemetry_v1_t)(THD *thd)
Abort the current statement and session.
Definition: server_telemetry_traces_bits.h:161
bool(* register_telemetry_v1_t)(telemetry_v1_t *telemetry)
Register set of telemetry notification callbacks.
Definition: server_telemetry_traces_bits.h:155
void(* tel_stmt_end_v1_t)(telemetry_locker_t *locker, telemetry_stmt_data_v1_t *stmt_data)
Definition: server_telemetry_traces_bits.h:134
telemetry_locker_t *(* tel_stmt_start_v1_t)(telemetry_session_t *session, uint64_t *flags)
Definition: server_telemetry_traces_bits.h:58
void(* tel_stmt_abort_v1_t)(telemetry_locker_t *locker)
Definition: server_telemetry_traces_bits.h:132
bool(* unregister_telemetry_v1_t)(telemetry_v1_t *telemetry)
Unregister set of telemetry notification callbacks.
Definition: server_telemetry_traces_bits.h:170
void(* tel_session_destroy_v1_t)(telemetry_session_t *session)
Definition: server_telemetry_traces_bits.h:56
telemetry_locker_t *(* tel_stmt_notify_qa_v1_t)(telemetry_locker_t *locker, bool with_query_attributes, uint64_t *flags)
Definition: server_telemetry_traces_bits.h:60
telemetry_session_t *(* tel_session_create_v1_t)()
Definition: server_telemetry_traces_bits.h:54
Definition: server_telemetry_traces_bits.h:63
const char * m_message_text
Error message text.
Definition: server_telemetry_traces_bits.h:90
unsigned long m_sort_rows
Metric, number of sort rows.
Definition: server_telemetry_traces_bits.h:120
const char * m_object_type
Object type.
Definition: server_telemetry_traces_bits.h:77
unsigned long m_select_range
Metric, number of select range.
Definition: server_telemetry_traces_bits.h:110
size_t m_object_type_length
Definition: server_telemetry_traces_bits.h:78
unsigned long long m_rows_affected
Rows affected.
Definition: server_telemetry_traces_bits.h:96
unsigned long m_created_tmp_disk_tables
Metric, temporary tables created on disk.
Definition: server_telemetry_traces_bits.h:102
const char * m_event_name
Performance schema event name.
Definition: server_telemetry_traces_bits.h:65
size_t m_object_schema_length
Definition: server_telemetry_traces_bits.h:81
const char * m_object_name
Object name.
Definition: server_telemetry_traces_bits.h:83
unsigned long m_select_scan
Metric, number of select scan.
Definition: server_telemetry_traces_bits.h:114
const char * m_sql_text
SQL text.
Definition: server_telemetry_traces_bits.h:69
int m_sql_errno
MYSQL_ERRNO.
Definition: server_telemetry_traces_bits.h:86
size_t m_cpu_time
Definition: server_telemetry_traces_bits.h:129
size_t m_max_controlled_memory
Definition: server_telemetry_traces_bits.h:127
const char * m_sqlstate
SQLSTATE.
Definition: server_telemetry_traces_bits.h:88
unsigned long m_sort_scan
Metric, number of sort scans.
Definition: server_telemetry_traces_bits.h:122
unsigned long m_error_count
Number or errors.
Definition: server_telemetry_traces_bits.h:92
unsigned long m_select_range_check
Metric, number of select range check.
Definition: server_telemetry_traces_bits.h:112
unsigned char m_no_good_index_used
Metric, no good index used flag.
Definition: server_telemetry_traces_bits.h:126
size_t m_max_total_memory
Definition: server_telemetry_traces_bits.h:128
size_t m_current_schema_length
Definition: server_telemetry_traces_bits.h:75
const char * m_object_schema
Object schema.
Definition: server_telemetry_traces_bits.h:80
unsigned long m_created_tmp_tables
Metric, temporary tables created.
Definition: server_telemetry_traces_bits.h:104
unsigned long long m_rows_sent
Rows sent.
Definition: server_telemetry_traces_bits.h:98
unsigned long m_sort_range
Metric, number of sort merge.
Definition: server_telemetry_traces_bits.h:118
size_t m_object_name_length
Definition: server_telemetry_traces_bits.h:84
const char * m_digest_text
DIGEST text.
Definition: server_telemetry_traces_bits.h:72
unsigned long m_select_full_range_join
Metric, number of select full range join.
Definition: server_telemetry_traces_bits.h:108
unsigned long m_select_full_join
Metric, number of select full join.
Definition: server_telemetry_traces_bits.h:106
size_t m_sql_text_length
Definition: server_telemetry_traces_bits.h:70
unsigned long long m_rows_examined
Rows examined.
Definition: server_telemetry_traces_bits.h:100
const char * m_current_schema
Current schema.
Definition: server_telemetry_traces_bits.h:74
unsigned long m_sort_merge_passes
Metric, number of sort merge passes.
Definition: server_telemetry_traces_bits.h:116
unsigned long m_warning_count
Number of warnings.
Definition: server_telemetry_traces_bits.h:94
unsigned long long m_lock_time
Locked time.
Definition: server_telemetry_traces_bits.h:67
unsigned char m_no_index_used
Metric, no index used flag.
Definition: server_telemetry_traces_bits.h:124
Definition: server_telemetry_traces_bits.h:137
tel_stmt_end_v1_t m_tel_stmt_end
Definition: server_telemetry_traces_bits.h:143
tel_session_destroy_v1_t m_tel_session_destroy
Definition: server_telemetry_traces_bits.h:139
tel_stmt_start_v1_t m_tel_stmt_start
Definition: server_telemetry_traces_bits.h:140
tel_session_create_v1_t m_tel_session_create
Definition: server_telemetry_traces_bits.h:138
tel_stmt_notify_qa_v1_t m_tel_stmt_notify_qa
Definition: server_telemetry_traces_bits.h:141
tel_stmt_abort_v1_t m_tel_stmt_abort
Definition: server_telemetry_traces_bits.h:142