MySQL 9.1.0
Source Code Documentation
psi_logger_client.h
Go to the documentation of this file.
1/* Copyright (c) 2024, Oracle and/or its affiliates.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License, version 2.0,
5 as published by the Free Software Foundation.
6
7 This program is designed to work with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License, version 2.0, for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef MYSQL_PSI_LOGGER_CLIENT_H
25#define MYSQL_PSI_LOGGER_CLIENT_H
26
27/**
28 @file include/mysql/psi/psi_logger_client.h
29 Performance schema instrumentation interface.
30
31 @defgroup psi_abi_logger Logger Client Instrumentation (ABI)
32 @ingroup psi_abi
33 @{
34*/
35
36#include "my_inttypes.h"
37#include "my_macros.h"
38
39/* HAVE_PSI_*_INTERFACE */
40#include "my_psi_config.h" // IWYU pragma: keep
41
42#include "my_sharedlib.h"
44
45/** Entry point for the performance schema interface. */
47 /**
48 ABI interface finder.
49 Calling this method with an interface version number returns either
50 an instance of the ABI for this version, or NULL.
51 @sa PSI_LOGGER_CLIENT_VERSION_1
52 @sa PSI_LOGGER_CLIENT_VERSION
53 */
54 void *(*get_interface)(int version);
55};
56
57#ifdef HAVE_PSI_SERVER_TELEMETRY_LOGS_INTERFACE
58
59/**
60 Performance Schema Stage Interface, version 1.
61 @since PSI_STAGE_VERSION_1
62*/
64 /** @sa register_telemetry_logger_client_v1_t. */
66 /** @sa unregister_telemetry_logger_client_v1_t. */
68 /** @sa check_enabled_telemetry_logger_client_v1_t. */
70 /** @sa log_emit_telemetry_logger_client_v1_t. */
72};
73
75
77
78#endif /* HAVE_PSI_SERVER_TELEMETRY_LOGS_INTERFACE */
79
80/** @} (end of group psi_abi_logger_client) */
81
82#endif /* MYSQL_PSI_LOGGER_CLIENT_H */
MYSQL_PLUGIN_IMPORT PSI_logs_client_service_t * psi_logs_client_service
Definition: psi_noop.cc:1060
Some integer typedefs for easier portability.
Some common macros.
Defines various enable/disable and HAVE_ macros related to the performance schema instrumentation sys...
Functions related to handling of plugins and other dynamically loaded libraries.
#define MYSQL_PLUGIN_IMPORT
Definition: my_sharedlib.h:71
required uint64 version
Definition: replication_group_member_actions.proto:41
void(* unregister_telemetry_logger_client_v1_t)(PSI_logger_info_v1 *info, size_t count)
Unregister telemetry logger client.
Definition: server_telemetry_logs_client_bits.h:82
void(* register_telemetry_logger_client_v1_t)(PSI_logger_info_v1 *info, size_t count, const char *category)
Register telemetry logger client.
Definition: server_telemetry_logs_client_bits.h:72
PSI_logger *(* check_enabled_telemetry_logger_client_v1_t)(PSI_logger_key key, OTELLogLevel level)
Check if the logger/log_level combination is currently enabled.
Definition: server_telemetry_logs_client_bits.h:92
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.
Definition: server_telemetry_logs_client_bits.h:105
Entry point for the performance schema interface.
Definition: psi_logger_client.h:46
Performance Schema Stage Interface, version 1.
Definition: psi_logger_client.h:63
check_enabled_telemetry_logger_client_v1_t check_enabled
Definition: psi_logger_client.h:69
unregister_telemetry_logger_client_v1_t unregister_logger_client
Definition: psi_logger_client.h:67
register_telemetry_logger_client_v1_t register_logger_client
Definition: psi_logger_client.h:65
log_emit_telemetry_logger_client_v1_t log_emit
Definition: psi_logger_client.h:71