MySQL 9.7.0
Source Code Documentation
tm_system_variables.h
Go to the documentation of this file.
1/*
2 Copyright (c) 2022, 2026, Oracle and/or its affiliates.
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License, version 2.0,
6 as published by the Free Software Foundation.
7
8 This program is designed to work with certain software (including
9 but not limited to OpenSSL) that is licensed under separate terms,
10 as designated in a particular file or component or in included license
11 documentation. The authors of MySQL hereby grant you an additional
12 permission to link the program and your derivative works with the
13 separately licensed software that they have either included with
14 the program or referenced in the documentation.
15
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License, version 2.0, for more details.
20
21 You should have received a copy of the GNU General Public License
22 along with this program; if not, write to the Free Software
23 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24*/
25
26#ifndef TELEMETRY_SYSTEM_VARIABLES_H_INCLUDED
27#define TELEMETRY_SYSTEM_VARIABLES_H_INCLUDED
28
29namespace telemetry {
30
31extern bool sv_trace_enabled;
32extern bool sv_metrics_enabled;
33extern bool sv_log_enabled;
34
35extern bool sv_query_text_enabled;
36
37const unsigned long OTEL_LOG_LEVEL_SILENT = 0;
38const unsigned long OTEL_LOG_LEVEL_ERROR = 1;
39const unsigned long OTEL_LOG_LEVEL_WARNING = 2;
40const unsigned long OTEL_LOG_LEVEL_INFO = 3;
41const unsigned long OTEL_LOG_LEVEL_DEBUG = 4;
42extern unsigned long sv_otel_log_level;
43
44const unsigned long OTLP_TLS_DEFAULT = 0;
45const unsigned long OTLP_TLS_12 = 1;
46const unsigned long OTLP_TLS_13 = 2;
47
49
50const unsigned long OTLP_PROTOCOL_HTTP_PROTOBUF = 0;
51const unsigned long OTLP_PROTOCOL_HTTP_JSON = 1;
52extern unsigned long sv_otel_exporter_otlp_traces_protocol;
53
55
57
59
61
63
64extern unsigned long sv_otel_exporter_otlp_traces_min_tls;
65extern unsigned long sv_otel_exporter_otlp_traces_max_tls;
68
71
72const unsigned long OTLP_COMPRESSION_NONE = 0;
73const unsigned long OTLP_COMPRESSION_GZIP = 1;
75
77
81
82/* METRICS */
83
85
87
89
91
93
95
96extern unsigned long sv_otel_exporter_otlp_metrics_min_tls;
97extern unsigned long sv_otel_exporter_otlp_metrics_max_tls;
100
103
105
107
108extern unsigned long sv_metrics_reader_frequency_1;
109extern unsigned long sv_metrics_reader_frequency_2;
110extern unsigned long sv_metrics_reader_frequency_3;
111
112/* LOGS */
113
114extern unsigned long sv_otel_exporter_otlp_logs_protocol;
115
117
119
121
123
125
126extern unsigned long sv_otel_exporter_otlp_logs_min_tls;
127extern unsigned long sv_otel_exporter_otlp_logs_max_tls;
130
133
134extern unsigned long sv_otel_exporter_otlp_logs_compression;
135
137
141
142extern char *sv_resource_provider;
143extern char *sv_secret_provider;
144
147
148} // namespace telemetry
149
150#endif /* TELEMETRY_SYSTEM_VARIABLES_H_INCLUDED */
Definition: option_usage.cc:40
ulong sv_otel_log_level
Definition: tm_system_variables.cc:329
unsigned long sv_otel_exporter_otlp_metrics_protocol
Definition: tm_system_variables.cc:825
ulong sv_otel_exporter_otlp_traces_compression
Definition: tm_system_variables.cc:678
long sv_otel_blrp_max_queue_size
Definition: tm_system_variables.cc:1617
char * sv_otel_exporter_otlp_metrics_cipher
Definition: tm_system_variables.cc:1009
const unsigned long OTLP_COMPRESSION_GZIP
Definition: tm_system_variables.h:73
unsigned long sv_otel_exporter_otlp_logs_max_tls
Definition: tm_system_variables.cc:1408
ulong sv_otel_exporter_otlp_metrics_compression
Definition: tm_system_variables.cc:1101
char * sv_otel_exporter_otlp_metrics_client_key
Definition: tm_system_variables.cc:919
char * sv_otel_exporter_otlp_metrics_cipher_suite
Definition: tm_system_variables.cc:1033
char * sv_otel_exporter_otlp_logs_certificates
Definition: tm_system_variables.cc:1320
bool sv_log_enabled
Definition: tm_system_variables.cc:265
unsigned long sv_otel_exporter_otlp_traces_min_tls
Definition: tm_system_variables.cc:530
ulong sv_metrics_reader_frequency_1
Definition: tm_system_variables.cc:1153
unsigned long sv_otel_exporter_otlp_metrics_min_tls
Definition: tm_system_variables.cc:964
const unsigned long OTLP_PROTOCOL_HTTP_PROTOBUF
Definition: tm_system_variables.h:50
char * sv_otel_exporter_otlp_traces_client_certificates
Definition: tm_system_variables.cc:509
bool sv_metrics_enabled
Definition: tm_system_variables.cc:226
int register_system_variables()
Definition: tm_system_variables.cc:1780
bool sv_query_text_enabled
Definition: tm_system_variables.cc:295
const unsigned long OTEL_LOG_LEVEL_SILENT
Definition: tm_system_variables.h:37
long sv_otel_blrp_max_export_batch_size
Definition: tm_system_variables.cc:1648
long sv_otel_blrp_schedule_delay
Definition: tm_system_variables.cc:1586
char * sv_otel_exporter_otlp_logs_secret_headers
Definition: tm_system_variables.cc:1502
char * sv_otel_exporter_otlp_traces_secret_headers
Definition: tm_system_variables.cc:645
char * sv_otel_exporter_otlp_metrics_endpoint
Definition: tm_system_variables.cc:849
ulong sv_otel_exporter_otlp_logs_compression
Definition: tm_system_variables.cc:1524
unsigned long sv_otel_exporter_otlp_metrics_max_tls
Definition: tm_system_variables.cc:985
const unsigned long OTEL_LOG_LEVEL_WARNING
Definition: tm_system_variables.h:39
const unsigned long OTLP_TLS_13
Definition: tm_system_variables.h:46
char * sv_otel_exporter_otlp_traces_certificates
Definition: tm_system_variables.cc:462
char * sv_otel_exporter_otlp_traces_client_key
Definition: tm_system_variables.cc:485
long sv_otel_exporter_otlp_traces_timeout
Definition: tm_system_variables.cc:709
char * sv_otel_exporter_otlp_metrics_network_namespace
Definition: tm_system_variables.cc:873
unsigned long sv_otel_exporter_otlp_traces_max_tls
Definition: tm_system_variables.cc:551
char * sv_otel_exporter_otlp_logs_client_certificates
Definition: tm_system_variables.cc:1366
char * sv_otel_exporter_otlp_traces_network_namespace
Definition: tm_system_variables.cc:439
const unsigned long OTLP_TLS_DEFAULT
Definition: tm_system_variables.h:44
const unsigned long OTEL_LOG_LEVEL_INFO
Definition: tm_system_variables.h:40
char * sv_otel_exporter_otlp_traces_cipher_suite
Definition: tm_system_variables.cc:599
char * sv_otel_resource_attributes
Definition: tm_system_variables.cc:359
ulong sv_otel_exporter_otlp_traces_protocol
Definition: tm_system_variables.cc:392
char * sv_otel_exporter_otlp_traces_headers
Definition: tm_system_variables.cc:622
ulong sv_metrics_reader_frequency_3
Definition: tm_system_variables.cc:1216
unsigned long sv_otel_exporter_otlp_logs_protocol
Definition: tm_system_variables.cc:1250
char * sv_otel_exporter_otlp_traces_endpoint
Definition: tm_system_variables.cc:416
char * sv_otel_exporter_otlp_traces_cipher
Definition: tm_system_variables.cc:575
long sv_otel_bsp_schedule_delay
Definition: tm_system_variables.cc:740
long sv_otel_bsp_max_queue_size
Definition: tm_system_variables.cc:771
char * sv_otel_exporter_otlp_metrics_secret_headers
Definition: tm_system_variables.cc:1079
const unsigned long OTEL_LOG_LEVEL_DEBUG
Definition: tm_system_variables.h:41
const unsigned long OTLP_COMPRESSION_NONE
Definition: tm_system_variables.h:72
ulong sv_metrics_reader_frequency_2
Definition: tm_system_variables.cc:1184
const unsigned long OTLP_TLS_12
Definition: tm_system_variables.h:45
char * sv_otel_exporter_otlp_logs_endpoint
Definition: tm_system_variables.cc:1274
char * sv_secret_provider
Definition: tm_system_variables.cc:1695
long sv_otel_exporter_otlp_metrics_timeout
Definition: tm_system_variables.cc:1132
unsigned long sv_otel_exporter_otlp_logs_min_tls
Definition: tm_system_variables.cc:1387
long sv_otel_exporter_otlp_logs_timeout
Definition: tm_system_variables.cc:1555
char * sv_otel_exporter_otlp_logs_cipher_suite
Definition: tm_system_variables.cc:1456
char * sv_otel_exporter_otlp_metrics_headers
Definition: tm_system_variables.cc:1056
const unsigned long OTLP_PROTOCOL_HTTP_JSON
Definition: tm_system_variables.h:51
long sv_otel_bsp_max_export_batch_size
Definition: tm_system_variables.cc:802
char * sv_otel_exporter_otlp_metrics_client_certificates
Definition: tm_system_variables.cc:943
bool sv_trace_enabled
Definition: tm_system_variables.cc:204
char * sv_resource_provider
Definition: tm_system_variables.cc:1671
void unregister_system_variables()
Definition: tm_system_variables.cc:1813
char * sv_otel_exporter_otlp_logs_headers
Definition: tm_system_variables.cc:1479
char * sv_otel_exporter_otlp_logs_network_namespace
Definition: tm_system_variables.cc:1297
char * sv_otel_exporter_otlp_logs_cipher
Definition: tm_system_variables.cc:1432
char * sv_otel_exporter_otlp_logs_client_key
Definition: tm_system_variables.cc:1343
const unsigned long OTEL_LOG_LEVEL_ERROR
Definition: tm_system_variables.h:38
char * sv_otel_exporter_otlp_metrics_certificates
Definition: tm_system_variables.cc:896