MySQL 9.1.0
Source Code Documentation
|
The performance schema implementation of server telemetry logs client service. More...
#include "storage/perfschema/mysql_server_telemetry_logs_client_service_imp.h"
#include "storage/perfschema/mysql_server_telemetry_logs_service_imp.h"
#include <mysql/components/services/mysql_server_telemetry_logs_client_service.h>
#include <list>
#include <string>
#include "sql/auth/sql_security_ctx.h"
#include "sql/field.h"
#include "sql/pfs_priv_util.h"
#include "sql/sql_class.h"
#include "pfs_column_values.h"
#include "pfs_global.h"
#include "pfs_instr_class.h"
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 |
The performance schema implementation of server telemetry logs client service.
|
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'.
prefix | Prefix for this class of instruments | |
category | Category name | |
[out] | output | Buffer of length PFS_MAX_INFO_NAME_LENGTH. |
[out] | output_length | Length of the resulting output string. |
void cleanup_mysql_server_telemetry_logs_client_service | ( | ) |
void initialize_mysql_server_telemetry_logs_client_service | ( | ) |
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 | ||
) |
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 | ||
) |
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 |