MySQL 9.1.0
Source Code Documentation
mysql_server_telemetry_logs_client_service_imp.cc File Reference

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

Functions

void initialize_mysql_server_telemetry_logs_client_service ()
 
void cleanup_mysql_server_telemetry_logs_client_service ()
 
static int build_prefix (const LEX_CSTRING *prefix, const char *category, char *output, size_t *output_length)
 Build the prefix name of a class of instruments in a category. More...
 
void pfs_register_logger_client_v1 (PSI_logger_info_v1 *info, size_t count, const char *category)
 
void pfs_unregister_logger_client_v1 (PSI_logger_info_v1 *info, size_t count)
 
PSI_logger * pfs_check_enabled_v1 (PSI_logger_key key, OTELLogLevel level)
 
void pfs_log_emit_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_client_t imp_performance_schema_mysql_server_telemetry_logs_client
 
bool server_telemetry_logs_client_service_initialized = false
 

Detailed Description

The performance schema implementation of server telemetry logs client service.

Function Documentation

◆ build_prefix()

static int build_prefix ( const LEX_CSTRING prefix,
const char *  category,
char *  output,
size_t *  output_length 
)
static

Build the prefix name of a class of instruments in a category.

For example, this function builds the string 'wait/sync/mutex/sql/' from a prefix 'wait/sync/mutex' and a category 'sql'. This prefix is used later to build each instrument name, such as 'wait/sync/mutex/sql/LOCK_open'.

Parameters
prefixPrefix for this class of instruments
categoryCategory name
[out]outputBuffer of length PFS_MAX_INFO_NAME_LENGTH.
[out]output_lengthLength of the resulting output string.
Returns
0 for success, non zero for errors

◆ cleanup_mysql_server_telemetry_logs_client_service()

void cleanup_mysql_server_telemetry_logs_client_service ( )

◆ initialize_mysql_server_telemetry_logs_client_service()

void initialize_mysql_server_telemetry_logs_client_service ( )

◆ pfs_check_enabled_v1()

PSI_logger * pfs_check_enabled_v1 ( PSI_logger_key  key,
OTELLogLevel  level 
)

◆ pfs_log_emit_v1()

void pfs_log_emit_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_client_v1()

void pfs_register_logger_client_v1 ( PSI_logger_info_v1 info,
size_t  count,
const char *  category 
)

◆ pfs_unregister_logger_client_v1()

void pfs_unregister_logger_client_v1 ( PSI_logger_info_v1 info,
size_t  count 
)

Variable Documentation

◆ imp_performance_schema_mysql_server_telemetry_logs_client

const mysql_service_mysql_server_telemetry_logs_client_t imp_performance_schema_mysql_server_telemetry_logs_client
Initial value:
= {
void pfs_log_emit_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_client_service_imp.cc:216
void pfs_register_logger_client_v1(PSI_logger_info_v1 *info, size_t count, const char *category)
Definition: mysql_server_telemetry_logs_client_service_imp.cc:152
PSI_logger * pfs_check_enabled_v1(PSI_logger_key key, OTELLogLevel level)
Definition: mysql_server_telemetry_logs_client_service_imp.cc:203
void pfs_unregister_logger_client_v1(PSI_logger_info_v1 *info, size_t count)
Definition: mysql_server_telemetry_logs_client_service_imp.cc:194

◆ server_telemetry_logs_client_service_initialized

bool server_telemetry_logs_client_service_initialized = false