#include <time.h>
#include <cstddef>
#include <cstdint>
#include "server_telemetry_attribute_bits.h"
Go to the source code of this file.
◆ PSI_CURRENT_LOGGER_CLIENT_VERSION
#define PSI_CURRENT_LOGGER_CLIENT_VERSION 1 |
Performance Schema Logger Client Interface number for the most recent version.
The most current version is PSI_METRIC_VERSION_1
◆ PSI_LOGGER_CLIENT_VERSION_1
#define PSI_LOGGER_CLIENT_VERSION_1 1 |
Performance Schema Logger Client Interface number for version 1.
This version is supported.
◆ check_enabled_telemetry_logger_client_v1_t
Check if the logger/log_level combination is currently enabled.
- Parameters
-
key | registered logger key |
level | log level to be checked |
- Return values
-
logger | pointer, NULL on failure |
◆ log_emit_telemetry_logger_client_v1_t
typedef void(* log_emit_telemetry_logger_client_v1_t) (PSI_logger *logger, OTELLogLevel level, const char *message, time_t timestamp, const log_attribute_t *attr_array, size_t attr_count) |
Emit telemetry log record.
- Parameters
-
logger | logger object |
level | log level |
message | message string to be logged |
timestamp | log timestamp |
attr_array | list of log record attributes (NULL for no attributes) |
attr_count | size of attributes array (0 for no attributes) |
◆ PSI_logger_key
◆ register_telemetry_logger_client_v1_t
typedef void(* register_telemetry_logger_client_v1_t) (PSI_logger_info_v1 *info, size_t count, const char *category) |
Register telemetry logger client.
- Parameters
-
info | array of logger definitions |
count | number of loggers in an array |
category | common category name for set of loggers |
◆ unregister_telemetry_logger_client_v1_t
Unregister telemetry logger client.
- Parameters
-
info | array of logger definitions |
count | array size |
◆ OTELLogLevel
Log levels as supported by opentelemetry-cpp (+ "none"), see: api/include/opentelemetry/logs/severity.h Some OTEL documentation pages also mention "fatal" level, but there is no support for it in the opentelemetry-cpp yet.
Note that enum integer values may not match those of OTEL.
Enumerator |
---|
TLOG_NONE | |
TLOG_ERROR | |
TLOG_WARN | |
TLOG_INFO | |
TLOG_DEBUG | |
◆ MAX_LOG_ATTRIBUTES
constexpr size_t MAX_LOG_ATTRIBUTES = 64 |
|
constexpr |
◆ MAX_LOGGER_NAME_LEN
constexpr size_t MAX_LOGGER_NAME_LEN = 63 |
|
constexpr |