MySQL 9.1.0
Source Code Documentation
mysql_server_telemetry_logs_client_service_imp.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_SERVER_TELEMETRY_LOGS_CLIENT_SERVICE_IMP_H
25#define MYSQL_SERVER_TELEMETRY_LOGS_CLIENT_SERVICE_IMP_H
26
28#include <mysql/plugin.h>
29
30/**
31 @file storage/perfschema/mysql_server_telemetry_logs_client_service_imp.h
32 The performance schema implementation of server telemetry logs client service.
33*/
34extern SERVICE_TYPE(mysql_server_telemetry_logs_client)
35 SERVICE_IMPLEMENTATION(performance_schema,
36 mysql_server_telemetry_logs_client);
37
40
42 const char *category);
45void pfs_log_emit_v1(PSI_logger *logger, OTELLogLevel level,
46 const char *message, time_t timestamp,
47 const log_attribute_t *attr_array, size_t attr_count);
48
49#endif /* MYSQL_SERVER_TELEMETRY_LOGS_CLIENT_SERVICE_IMP_H */
static int count
Definition: myisam_ftdump.cc:45
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 initialize_mysql_server_telemetry_logs_client_service()
Definition: mysql_server_telemetry_logs_client_service_imp.cc:91
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
const mysql_service_mysql_server_telemetry_logs_client_t SERVICE_IMPLEMENTATION(performance_schema, mysql_server_telemetry_logs_client)
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
void cleanup_mysql_server_telemetry_logs_client_service()
Definition: mysql_server_telemetry_logs_client_service_imp.cc:98
constexpr value_type timestamp
Definition: classic_protocol_constants.h:278
static const char * category
Definition: sha2_password.cc:170
static Logger logger
The "top-level" logger used when no connection context is given.
Definition: test_trace_plugin.cc:296
required string key
Definition: replication_asynchronous_connection_failover.proto:60
OTELLogLevel
Log levels as supported by opentelemetry-cpp (+ "none"), see: api/include/opentelemetry/logs/severity...
Definition: server_telemetry_logs_client_bits.h:43
unsigned int PSI_logger_key
Definition: server_telemetry_logs_client_bits.h:45
#define SERVICE_TYPE(name)
Generates the standard Service type name.
Definition: service.h:76
Defines a logger from the side of instrumented code (log API client).
Definition: server_telemetry_logs_client_bits.h:57
Definition: server_telemetry_attribute_bits.h:57