MySQL 9.1.0
Source Code Documentation
mysql_server_telemetry_logs_service_imp.cc File Reference

The performance schema implementation of server telemetry logs service. More...

Functions

void initialize_mysql_server_telemetry_logs_service ()
 
void cleanup_mysql_server_telemetry_logs_service ()
 
bool pfs_register_logger_v1 (log_delivery_callback_t logger)
 
bool pfs_unregister_logger_v1 (log_delivery_callback_t logger)
 
void pfs_notify_logger_v1 (PSI_logger *logger, OTELLogLevel level, const char *message, time_t timestamp, const log_attribute_t *attr_array, size_t attr_count)
 

Variables

const mysql_service_mysql_server_telemetry_logs_t imp_performance_schema_mysql_server_telemetry_logs
 
bool server_telemetry_logs_service_initialized = false
 
std::atomic< log_delivery_callback_tg_telemetry_log = nullptr
 
mysql_mutex_t LOCK_pfs_logging_callback
 
static PSI_mutex_key key_LOCK_pfs_logging_callback
 
static PSI_mutex_info info_LOCK_pfs_logging_callback
 

Detailed Description

The performance schema implementation of server telemetry logs service.

Function Documentation

◆ cleanup_mysql_server_telemetry_logs_service()

void cleanup_mysql_server_telemetry_logs_service ( )

◆ initialize_mysql_server_telemetry_logs_service()

void initialize_mysql_server_telemetry_logs_service ( )

◆ pfs_notify_logger_v1()

void pfs_notify_logger_v1 ( PSI_logger *  logger,
OTELLogLevel  level,
const char *  message,
time_t  timestamp,
const log_attribute_t attr_array,
size_t  attr_count 
)

◆ pfs_register_logger_v1()

bool pfs_register_logger_v1 ( log_delivery_callback_t  logger)

◆ pfs_unregister_logger_v1()

bool pfs_unregister_logger_v1 ( log_delivery_callback_t  logger)

Variable Documentation

◆ g_telemetry_log

std::atomic<log_delivery_callback_t> g_telemetry_log = nullptr

◆ imp_performance_schema_mysql_server_telemetry_logs

const mysql_service_mysql_server_telemetry_logs_t imp_performance_schema_mysql_server_telemetry_logs
Initial value:
= {
}
void pfs_notify_logger_v1(PSI_logger *logger, OTELLogLevel level, const char *message, time_t timestamp, const log_attribute_t *attr_array, size_t attr_count)
Definition: mysql_server_telemetry_logs_service_imp.cc:199
bool pfs_register_logger_v1(log_delivery_callback_t logger)
Definition: mysql_server_telemetry_logs_service_imp.cc:152
bool pfs_unregister_logger_v1(log_delivery_callback_t logger)
Definition: mysql_server_telemetry_logs_service_imp.cc:176

◆ info_LOCK_pfs_logging_callback

PSI_mutex_info info_LOCK_pfs_logging_callback
static
Initial value:
= {
&key_LOCK_pfs_logging_callback, "LOCK_pfs_logging_callback",
"This lock protects telemetry logs callback function."}
#define PSI_FLAG_SINGLETON
Singleton flag.
Definition: component_common.h:35
#define PSI_VOLATILITY_PERMANENT
Definition: psi_bits.h:154
static PSI_mutex_key key_LOCK_pfs_logging_callback
Definition: mysql_server_telemetry_logs_service_imp.cc:121

◆ key_LOCK_pfs_logging_callback

PSI_mutex_key key_LOCK_pfs_logging_callback
static

◆ LOCK_pfs_logging_callback

mysql_mutex_t LOCK_pfs_logging_callback

◆ server_telemetry_logs_service_initialized

bool server_telemetry_logs_service_initialized = false