MySQL 9.1.0
Source Code Documentation
server_telemetry_logs_bits.h File Reference
#include <time.h>
#include <cstddef>
#include <cstdint>
#include "server_telemetry_logs_client_bits.h"

Go to the source code of this file.

Typedefs

typedef void(* log_delivery_callback_t) (const char *logger_name, OTELLogLevel severity, const char *message, time_t timestamp, const log_attribute_t *attr_array, size_t attr_count)
 
typedef bool(* register_telemetry_logger_v1_t) (log_delivery_callback_t logger)
 Register telemetry logger callback. More...
 
typedef bool(* unregister_telemetry_logger_v1_t) (log_delivery_callback_t logger)
 Unregister telemetry logger callback. More...
 
typedef void(* notify_telemetry_logger_v1_t) (PSI_logger *logger, OTELLogLevel level, const char *message, time_t timestamp, const log_attribute_t *attr_array, size_t attr_count)
 Wrapper method to notify telemetry logger callback (if registered) of new log event. More...
 

Typedef Documentation

◆ log_delivery_callback_t

typedef void(* log_delivery_callback_t) (const char *logger_name, OTELLogLevel severity, const char *message, time_t timestamp, const log_attribute_t *attr_array, size_t attr_count)

◆ notify_telemetry_logger_v1_t

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

Wrapper method to notify telemetry logger callback (if registered) of new log event.

◆ register_telemetry_logger_v1_t

typedef bool(* register_telemetry_logger_v1_t) (log_delivery_callback_t logger)

Register telemetry logger callback.

Parameters
loggerpointer to callback function to be registered.
Return values
FALSEsuccess
TRUEfailure

◆ unregister_telemetry_logger_v1_t

typedef bool(* unregister_telemetry_logger_v1_t) (log_delivery_callback_t logger)

Unregister telemetry logger callback.

Parameters
loggerpointer to callback function to be unregistered.
Return values
FALSEsuccess
TRUEfailure