MySQL 9.1.0
Source Code Documentation
server_telemetry_traces_bits.h File Reference
#include <cstddef>
#include <cstdint>

Go to the source code of this file.

Classes

struct  telemetry_stmt_data_v1_t
 
struct  telemetry_v1_t
 

Macros

#define TRACE_STATEMENTS   0x0001
 Telemetry tracing scope (span types) flags. More...
 
#define TRACE_NOTHING   0x0000
 Telemetry tracing scope (span types) masks. More...
 
#define TRACE_EVERYTHING   0xFFFF
 

Typedefs

typedef telemetry_session_t *(* tel_session_create_v1_t) ()
 
typedef void(* tel_session_destroy_v1_t) (telemetry_session_t *session)
 
typedef telemetry_locker_t *(* tel_stmt_start_v1_t) (telemetry_session_t *session, uint64_t *flags)
 
typedef telemetry_locker_t *(* tel_stmt_notify_qa_v1_t) (telemetry_locker_t *locker, bool with_query_attributes, uint64_t *flags)
 
typedef void(* tel_stmt_abort_v1_t) (telemetry_locker_t *locker)
 
typedef void(* tel_stmt_end_v1_t) (telemetry_locker_t *locker, telemetry_stmt_data_v1_t *stmt_data)
 
typedef bool(* register_telemetry_v1_t) (telemetry_v1_t *telemetry)
 Register set of telemetry notification callbacks. More...
 
typedef void(* abort_telemetry_v1_t) (THD *thd)
 Abort the current statement and session. More...
 
typedef bool(* unregister_telemetry_v1_t) (telemetry_v1_t *telemetry)
 Unregister set of telemetry notification callbacks. More...
 
typedef telemetry_stmt_data_v1_t telemetry_stmt_data_t
 
typedef telemetry_v1_t telemetry_t
 

Macro Definition Documentation

◆ TRACE_EVERYTHING

#define TRACE_EVERYTHING   0xFFFF

◆ TRACE_NOTHING

#define TRACE_NOTHING   0x0000

Telemetry tracing scope (span types) masks.

◆ TRACE_STATEMENTS

#define TRACE_STATEMENTS   0x0001

Telemetry tracing scope (span types) flags.

Typedef Documentation

◆ abort_telemetry_v1_t

typedef void(* abort_telemetry_v1_t) (THD *thd)

Abort the current statement and session.

Parameters
thdsession pointer.

◆ register_telemetry_v1_t

typedef bool(* register_telemetry_v1_t) (telemetry_v1_t *telemetry)

Register set of telemetry notification callbacks.

Parameters
telemetrypointer to struct of functions to be registered.
Return values
FALSEsuccess
TRUEfailure

◆ tel_session_create_v1_t

typedef telemetry_session_t *(* tel_session_create_v1_t) ()

◆ tel_session_destroy_v1_t

typedef void(* tel_session_destroy_v1_t) (telemetry_session_t *session)

◆ tel_stmt_abort_v1_t

typedef void(* tel_stmt_abort_v1_t) (telemetry_locker_t *locker)

◆ tel_stmt_end_v1_t

typedef void(* tel_stmt_end_v1_t) (telemetry_locker_t *locker, telemetry_stmt_data_v1_t *stmt_data)

◆ tel_stmt_notify_qa_v1_t

typedef telemetry_locker_t *(* tel_stmt_notify_qa_v1_t) (telemetry_locker_t *locker, bool with_query_attributes, uint64_t *flags)

◆ tel_stmt_start_v1_t

typedef telemetry_locker_t *(* tel_stmt_start_v1_t) (telemetry_session_t *session, uint64_t *flags)

◆ telemetry_stmt_data_t

◆ telemetry_t

◆ unregister_telemetry_v1_t

typedef bool(* unregister_telemetry_v1_t) (telemetry_v1_t *telemetry)

Unregister set of telemetry notification callbacks.

Parameters
telemetrypointer to struct of functions to be unregistered.
Return values
FALSEsuccess
TRUEfailure