![]() |
MySQL 9.7.0
Source Code Documentation
|
Classes | |
| struct | bool_check_arg_s |
| struct | enum_check_arg_s |
| class | Log |
| class | LogOptionUsage |
| struct | long_check_arg_s |
| class | MetricOptionUsage |
| class | MyMultiKeyValueIterable |
| class | MySingleKeyValueIterable |
| class | MySQLLogRecordExporter |
| Intercept calls and delegate to a LogRecordExporter. More... | |
| class | MySQLMeter |
| class | MySQLMeterProviders |
| class | MySQLMetric |
| class | MySQLOtelLogHandler |
| class | MySQLPushMetricExporter |
| Intercept calls and delegate to a PushMetricExporter. More... | |
| class | MySQLSpanExporter |
| Intercept calls and delegate to a SpanExporter. More... | |
| class | MySQLThreadInstrumentation |
| struct | MySQLThreadInstrumentationState |
| class | OptionUsage |
| class | QueryAttributeTextMapCarrier |
| class | QueryAttributeTextMapPropagator |
| class | Session_data |
| struct | str_check_arg_s |
| struct | System_variable |
| class | TraceOptionUsage |
| struct | ulong_check_arg_s |
| struct | value_access |
| Implement a st_mysql_value subclass, that retrieves the value of a system variable. More... | |
Typedefs | |
| typedef weak_service_reference< const mysql_service_mysql_option_tracker_option_t, c_name, opt_name > | weak_option |
Functions | |
| const std::string | c_name ("component_telemetry") |
| const std::string | opt_name ("mysql_option_tracker_option") |
| const std::string | c_option_name ("MySQL Telemetry") |
| static bool | cb (unsigned long long new_value) |
| bool | otel_component_option_usage_init () |
| bool | otel_component_option_usage_deinit () |
| bool | otel_component_option_usage_set () |
| REQUIRES_SERVICE_PLACEHOLDER_AS (status_variable_registration, statvar_register_srv) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (component_sys_variable_register, sysvar_register_srv) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (component_sys_variable_unregister, sysvar_unregister_srv) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (log_builtins, log_srv) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (log_builtins_string, log_string_srv) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (pfs_notification_v3, notification_srv) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (mysql_current_thread_reader, current_thd_srv) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (mysql_connection_attributes_iterator, con_attr_srv) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (mysql_thd_store, thd_store_srv) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (mysql_server_telemetry_traces_v1, telemetry_traces_srv) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (mysql_server_telemetry_metrics_v1, telemetry_metrics_srv) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (mysql_server_telemetry_logs, telemetry_logs_srv) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (mysql_query_attributes_iterator, qa_iter_srv) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (mysql_query_attribute_string, qa_string_srv) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (mysql_string_get_data_in_charset, string_get_data_srv) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (mysql_string_factory, string_factory_srv) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (mysql_string_converter, string_converter_srv) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (mysql_cond_v1, cond_srv) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (mysql_mutex_v1, mutex_srv) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (psi_metric_v1, metric_srv) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (psi_stage_v1, stage_srv) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (psi_thread_v7, thread_srv) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (psi_idle_v1, idle_srv) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (registry_registration, reg_reg) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (registry, reg_srv) | |
| mysql_service_status_t | telemetry_init_install () |
| void | telemetry_init_detect_resource (bool &must_wait) |
| mysql_service_status_t | telemetry_init_decode_secret (bool &must_wait) |
| mysql_service_status_t | telemetry_init_configure () |
| void | telemetry_init_noop_configure () |
| void | telemetry_deinit_install () |
| static mysql_service_status_t | services_loaded_notification (const char **, unsigned int) noexcept |
| int | register_services_loaded_notification () |
| void | unregister_services_loaded_notification () |
| mysql_service_status_t | telemetry_init () |
| mysql_service_status_t | telemetry_deinit () |
| END_COMPONENT_PROVIDES () | |
| REQUIRES_SERVICE_AS (status_variable_registration, statvar_register_srv) | |
| REQUIRES_SERVICE_AS (component_sys_variable_register, sysvar_register_srv) | |
| REQUIRES_SERVICE_AS (component_sys_variable_unregister, sysvar_unregister_srv) | |
| REQUIRES_SERVICE_AS (log_builtins, log_srv) | |
| REQUIRES_SERVICE_AS (log_builtins_string, log_string_srv) | |
| REQUIRES_SERVICE_AS (pfs_notification_v3, notification_srv) | |
| REQUIRES_SERVICE_AS (mysql_current_thread_reader, current_thd_srv) | |
| REQUIRES_SERVICE_AS (mysql_connection_attributes_iterator, con_attr_srv) | |
| REQUIRES_SERVICE_AS (mysql_thd_store, thd_store_srv) | |
| REQUIRES_SERVICE_AS (mysql_server_telemetry_traces_v1, telemetry_traces_srv) | |
| REQUIRES_SERVICE_AS (mysql_server_telemetry_metrics_v1, telemetry_metrics_srv) | |
| REQUIRES_SERVICE_AS (mysql_server_telemetry_logs, telemetry_logs_srv) | |
| REQUIRES_SERVICE_AS (mysql_query_attributes_iterator, qa_iter_srv) | |
| REQUIRES_SERVICE_AS (mysql_query_attribute_string, qa_string_srv) | |
| REQUIRES_SERVICE_AS (mysql_string_get_data_in_charset, string_get_data_srv) | |
| REQUIRES_SERVICE_AS (mysql_string_factory, string_factory_srv) | |
| REQUIRES_SERVICE_AS (mysql_string_converter, string_converter_srv) | |
| REQUIRES_SERVICE_AS (mysql_cond_v1, cond_srv) | |
| REQUIRES_SERVICE_AS (mysql_mutex_v1, mutex_srv) | |
| REQUIRES_SERVICE_AS (psi_metric_v1, metric_srv) | |
| REQUIRES_SERVICE_AS (psi_stage_v1, stage_srv) | |
| REQUIRES_SERVICE_AS (psi_thread_v7, thread_srv) | |
| REQUIRES_SERVICE_AS (psi_idle_v1, idle_srv) | |
| REQUIRES_SERVICE_AS (registry_registration, reg_reg) | |
| REQUIRES_SERVICE_AS (registry, reg_srv) | |
| END_COMPONENT_REQUIRES () | |
| METADATA ("mysql.author", "Oracle Corporation") | |
| METADATA ("mysql.license", "GPL") | |
| METADATA ("component_telemetry", "1") | |
| END_COMPONENT_METADATA () | |
| static const opentelemetry::nostd::string_view | k_control ("control") |
| static const opentelemetry::nostd::string_view | k_traces_enabled ("mysql.traces_enabled") |
| static const opentelemetry::nostd::string_view | k_metrics_enabled ("mysql.metrics_enabled") |
| static const opentelemetry::nostd::string_view | k_logs_enabled ("mysql.logs_enabled") |
| static const opentelemetry::nostd::string_view | k_details ("mysql.details") |
| static const opentelemetry::nostd::string_view | k_event_name ("mysql.event_name") |
| static const opentelemetry::nostd::string_view | k_log_message ("emit_control_log") |
| static const opentelemetry::nostd::string_view | k_logger_name ("telemetry_component") |
| void | emit_control_span (bool traces_enabled, bool metrics_enabled, bool logs_enabled, const char *details) |
| void | emit_control_log (bool traces_enabled, bool metrics_enabled, bool logs_enabled, const char *details) |
| std::shared_ptr< opentelemetry::sdk::trace::TracerProvider > | g_tracer_provider (nullptr) |
| opentelemetry::nostd::shared_ptr< opentelemetry::trace::Tracer > | g_tracer (nullptr) |
| std::atomic_int64_t | g_session_count (0LL) |
| std::atomic_bool | g_shutting_down (false) |
| std::atomic_int64_t | g_sessions_closed (0LL) |
| std::atomic_int64_t | g_run_level (RUN_LEVEL_BOOT) |
| void | to_timespec (const std::chrono::time_point< std::chrono::system_clock > &from, struct timespec &to) |
| void | my_delivery_int64_0_callback (void *context, int64_t value) |
| void | my_delivery_int64_1_callback (void *context, int64_t value, const char *attr_name, const char *attr_value) |
| void | my_delivery_int64_n_callback (void *context, int64_t value, const char **attr_name_array, const char **attr_value_array, size_t size) |
| void | my_delivery_double_0_callback (void *context, double value) |
| void | my_delivery_double_1_callback (void *context, double value, const char *attr_name, const char *attr_value) |
| void | my_delivery_double_n_callback (void *context, double value, const char **attr_name_array, const char **attr_value_array, size_t size) |
| static const nostd::string_view | k_session ("session") |
| static const nostd::string_view | k_stmt ("stmt") |
| static const nostd::string_view | k_processlist_id ("mysql.processlist_id") |
| static const nostd::string_view | k_thread_id ("mysql.thread_id") |
| static const nostd::string_view | k_user ("mysql.user") |
| static const nostd::string_view | k_host ("mysql.host") |
| static const nostd::string_view | k_group ("mysql.group") |
| static const nostd::string_view | k_session_attr_prefix ("mysql.session_attr.") |
| static const nostd::string_view | k_event_name ("mysql.event_name") |
| static const nostd::string_view | k_lock_time ("mysql.lock_time") |
| static const nostd::string_view | k_sql_text ("mysql.sql_text") |
| static const nostd::string_view | k_digest_text ("mysql.digest_text") |
| static const nostd::string_view | k_current_schema ("mysql.current_schema") |
| static const nostd::string_view | k_object_type ("mysql.object_type") |
| static const nostd::string_view | k_object_schema ("mysql.object_schema") |
| static const nostd::string_view | k_object_name ("mysql.object_name") |
| static const nostd::string_view | k_sql_errno ("mysql.sql_errno") |
| static const nostd::string_view | k_sqlstate ("mysql.sqlstate") |
| static const nostd::string_view | k_message_text ("mysql.message_text") |
| static const nostd::string_view | k_error_count ("mysql.error_count") |
| static const nostd::string_view | k_warning_count ("mysql.warning_count") |
| static const nostd::string_view | k_rows_affected ("mysql.rows_affected") |
| static const nostd::string_view | k_rows_sent ("mysql.rows_sent") |
| static const nostd::string_view | k_rows_examined ("mysql.rows_examined") |
| static const nostd::string_view | k_created_tmp_disk_tables ("mysql.created_tmp_disk_tables") |
| static const nostd::string_view | k_created_tmp_tables ("mysql.created_tmp_tables") |
| static const nostd::string_view | k_select_full_join ("mysql.select_full_join") |
| static const nostd::string_view | k_select_full_range_join ("mysql.select_full_range_join") |
| static const nostd::string_view | k_select_range ("mysql.select_range") |
| static const nostd::string_view | k_select_range_check ("mysql.select_range_check") |
| static const nostd::string_view | k_select_scan ("mysql.select_scan") |
| static const nostd::string_view | k_sort_merge_passes ("mysql.sort_merge_passes") |
| static const nostd::string_view | k_sort_range ("mysql.sort_range") |
| static const nostd::string_view | k_sort_rows ("mysql.sort_rows") |
| static const nostd::string_view | k_sort_scan ("mysql.sort_scan") |
| static const nostd::string_view | k_no_index_used ("mysql.no_index_used") |
| static const nostd::string_view | k_no_good_index_used ("mysql.no_good_index_used") |
| static const nostd::string_view | k_max_controlled_memory ("mysql.max_controlled_memory") |
| static const nostd::string_view | k_max_total_memory ("mysql.max_total_memory") |
| static const nostd::string_view | k_cpu_time ("mysql.cpu_time") |
| void | inc_session_count () |
| void | dec_session_count () |
| static int64_t | big_attribute (unsigned long long value) |
| void | set_span_thread_attr (const opentelemetry::nostd::shared_ptr< opentelemetry::trace::Span > &otel_span, const PSI_thread_attrs *thread_attrs) |
| void | set_span_session_attr (const opentelemetry::nostd::shared_ptr< opentelemetry::trace::Span > &otel_span, MYSQL_THD thd) |
| void | set_span_stmt_aborted (const opentelemetry::nostd::shared_ptr< opentelemetry::trace::Span > &otel_span) |
| void | set_span_stmt_data (const opentelemetry::nostd::shared_ptr< opentelemetry::trace::Span > &otel_span, telemetry_stmt_data_t *stmt_data) |
| void | tm_thread_create (const PSI_thread_attrs *) |
| void | tm_thread_destroy (const PSI_thread_attrs *) |
| void | tm_session_connect (const PSI_thread_attrs *thread_attrs) |
| void | tm_session_disconnect (const PSI_thread_attrs *thread_attrs) |
| void | tm_session_change_user (const PSI_thread_attrs *) |
| int | register_notification_callback () |
| void | unregister_notification_callback () |
| telemetry_session_t * | tm_session_create () |
| void | tm_session_destroy (telemetry_session_t *session) |
| telemetry_locker_t * | tm_stmt_start (telemetry_session_t *session, uint64_t *flags) |
| void | tm_set_parent_from_qa (opentelemetry::trace::StartSpanOptions &options, Session_data *data) |
| telemetry_locker_t * | tm_stmt_notify_qa (telemetry_locker_t *locker, bool with_query_attributes, uint64_t *) |
| void | tm_stmt_abort (telemetry_locker_t *locker) |
| void | tm_stmt_end (telemetry_locker_t *locker, telemetry_stmt_data_t *stmt_data) |
| int | register_telemetry_callback () |
| void | unregister_telemetry_callback () |
| void | abort_current_session () |
| void | wait_for_sessions () |
| void | setup_otel_metric (const std::unique_ptr< MySQLMeter > &meter, const char *metric_name, const char *metric_desc, const char *metric_unit, MetricNumType metric_numeric, MetricOTELType metric_type, measurement_callback_t metric_cb, void *metric_cb_context) |
| std::unique_ptr< MySQLMeter > | do_setup_otel_meter (const char *name, ulong frequency) |
| void | setup_otel_meter (const char *name, ulong frequency) |
| void | cleanup_otel_meter (const char *name) |
| void | tm_meter_change_callback (const char *meter, MeterNotifyType change) |
| void | setup_otel_meters_notification () |
| void | cleanup_otel_meters_notification () |
| void | setup_otel_meters () |
| void | cleanup_otel_meters () |
| opentelemetry::logs::Severity | convert_severity (uint8_t mysql_severity) |
| void | set_log_record_trace (opentelemetry::logs::LogRecord *record) |
| void | tm_log_callback (const char *logger_name, OTELLogLevel severity, const char *message, time_t timestamp, const log_attribute_t *attr_array, size_t attr_count) |
| int | register_telemetry_logger () |
| void | unregister_telemetry_logger () |
| int | open_network_namespace (const std::string &network_namespace, int *fd) |
| int | set_network_namespace (int fd) |
| int | close_network_namespace (int fd) |
| int | setup_network_namespaces () |
| int | cleanup_network_namespaces () |
| std::unique_ptr< opentelemetry::sdk::logs::LogRecordExporter > | otel_create_otlp_http_log_exporter (const opentelemetry::exporter::otlp::OtlpHttpLogRecordExporterOptions &options, const opentelemetry::exporter::otlp::OtlpHttpLogRecordExporterRuntimeOptions &runtime_options) |
| std::unique_ptr< opentelemetry::sdk::logs::LogRecordProcessor > | otel_create_batch_log_processor (const opentelemetry::sdk::logs::BatchLogRecordProcessorOptions &options, const opentelemetry::sdk::logs::BatchLogRecordProcessorRuntimeOptions &runtime_options, std::unique_ptr< opentelemetry::sdk::logs::LogRecordExporter > exporter) |
| opentelemetry::nostd::shared_ptr< opentelemetry::sdk::logs::LoggerProvider > | otel_create_logger_provider (const opentelemetry::sdk::resource::Resource &resource, std::unique_ptr< opentelemetry::sdk::logs::LogRecordProcessor > processor) |
| std::unique_ptr< opentelemetry::sdk::metrics::ViewRegistry > | otel_create_metric_view_registry () |
| std::unique_ptr< opentelemetry::sdk::metrics::MeterContext > | otel_create_metric_meter_context (std::unique_ptr< opentelemetry::sdk::metrics::ViewRegistry > views, const opentelemetry::sdk::resource::Resource &resource) |
| std::unique_ptr< opentelemetry::sdk::metrics::PushMetricExporter > | otel_create_otlp_http_metric_exporter (const opentelemetry::exporter::otlp::OtlpHttpMetricExporterOptions &options, const opentelemetry::exporter::otlp::OtlpHttpMetricExporterRuntimeOptions &runtime_options) |
| std::unique_ptr< opentelemetry::sdk::metrics::MetricReader > | otel_create_metric_reader (std::unique_ptr< opentelemetry::sdk::metrics::PushMetricExporter > exporter, const opentelemetry::sdk::metrics::PeriodicExportingMetricReaderOptions &options, const opentelemetry::sdk::metrics::PeriodicExportingMetricReaderRuntimeOptions &runtime_options) |
| std::unique_ptr< opentelemetry::metrics::MeterProvider > | otel_create_meter_provider (std::unique_ptr< opentelemetry::sdk::metrics::MeterContext > context) |
| std::unique_ptr< opentelemetry::sdk::trace::SpanExporter > | otel_create_otlp_http_exporter (const opentelemetry::exporter::otlp::OtlpHttpExporterOptions &options, const opentelemetry::exporter::otlp::OtlpHttpExporterRuntimeOptions &runtime_options) |
| std::unique_ptr< opentelemetry::sdk::trace::SpanProcessor > | otel_create_batch_processor (const opentelemetry::sdk::trace::BatchSpanProcessorOptions &options, const opentelemetry::sdk::trace::BatchSpanProcessorRuntimeOptions &runtime_options, std::unique_ptr< opentelemetry::sdk::trace::SpanExporter > exporter) |
| std::shared_ptr< opentelemetry::sdk::trace::TracerProvider > | otel_create_tracer_provider (const opentelemetry::sdk::resource::Resource &resource, std::unique_ptr< opentelemetry::sdk::trace::SpanProcessor > processor) |
| opentelemetry::nostd::shared_ptr< opentelemetry::trace::Tracer > | otel_create_tracer (const opentelemetry::nostd::shared_ptr< opentelemetry::trace::TracerProvider > &provider) |
| opentelemetry::nostd::shared_ptr< opentelemetry::trace::Tracer > | otel_create_tracer (opentelemetry::nostd::shared_ptr< opentelemetry::trace::TracerProvider > provider) |
| void | register_performance_schema () |
| void | init_mutexes () |
| void | cleanup_mutexes () |
| static const std::string | service_name ("telemetry_resource_provider") |
| REQUIRES_SERVICE_PLACEHOLDER_AS (telemetry_resource_provider, resource_provider_srv) | |
| static void | setup_default_resource (opentelemetry::sdk::resource::Resource &resource) |
| static void | detect_resource (opentelemetry::sdk::resource::Resource &resource, bool &must_wait) |
| void | setup_resource (opentelemetry::sdk::resource::Resource &resource, bool &must_wait) |
| static const std::string | service_name ("telemetry_secret_provider") |
| REQUIRES_SERVICE_PLACEHOLDER_AS (telemetry_secret_provider, secret_provider_srv) | |
| static int | decode_one_secret (telemetry_secret_client_t *client, const char *secret_name, std::string &decoded_secret) |
| int | decode_secrets (bool &must_wait) |
| static opentelemetry::nostd::shared_ptr< opentelemetry::sdk::common::internal_log::LogHandler > | g_log_handler (new MySQLOtelLogHandler()) |
| void | setup_internal_logger () |
| void | setup_internal_logger_level (unsigned long log_level) |
| static std::string | tls_option_string (unsigned long value, unsigned long value_for_default) |
| Convert a MySQL TLS option (as a system variable enum) to an OpenTelemetry TLS option. More... | |
| static void | merge_resource_attributes (opentelemetry::sdk::resource::ResourceAttributes &attributes, const char *attributes_string) |
| opentelemetry::sdk::resource::Resource | setup_resource (opentelemetry::sdk::resource::ResourceAttributes &attributes, const char *resource_atrtributes_string) |
| static void | parse_headers (opentelemetry::exporter::otlp::OtlpHeaders &result, const char *input) |
| static std::unique_ptr< opentelemetry::sdk::trace::SpanExporter > | setup_otel_otlp_http_exporter (bool json) |
| static std::unique_ptr< opentelemetry::sdk::trace::SpanExporter > | setup_otel_otlp_exporter () |
| static std::unique_ptr< opentelemetry::sdk::trace::SpanProcessor > | setup_otel_batch_processor (std::unique_ptr< opentelemetry::sdk::trace::SpanExporter > exporter) |
| std::shared_ptr< opentelemetry::sdk::trace::TracerProvider > | setup_otel_tracer_provider (const opentelemetry::sdk::resource::Resource &resource) |
| opentelemetry::nostd::shared_ptr< opentelemetry::trace::Tracer > | setup_otel_tracer (const std::shared_ptr< opentelemetry::trace::TracerProvider > &provider) |
| std::unique_ptr< opentelemetry::sdk::metrics::PushMetricExporter > | setup_otel_otlp_http_metric_exporter (bool json) |
| std::unique_ptr< opentelemetry::sdk::metrics::PushMetricExporter > | setup_otel_otlp_metrics_exporter () |
| std::unique_ptr< opentelemetry::sdk::metrics::MetricReader > | setup_otel_metric_reader (std::unique_ptr< opentelemetry::sdk::metrics::PushMetricExporter > exporter, const opentelemetry::sdk::metrics::PeriodicExportingMetricReaderOptions &options, const opentelemetry::sdk::metrics::PeriodicExportingMetricReaderRuntimeOptions &runtime_options) |
| std::unique_ptr< opentelemetry::metrics::MeterProvider > | setup_otel_meter_provider (const opentelemetry::sdk::resource::Resource &resource, const opentelemetry::sdk::metrics::PeriodicExportingMetricReaderOptions &options, const opentelemetry::sdk::metrics::PeriodicExportingMetricReaderRuntimeOptions &runtime_options) |
| void | setup_otel_meter_providers (const opentelemetry::sdk::resource::Resource &resource) |
| void | cleanup_otel_meter_providers () |
| static std::unique_ptr< opentelemetry::sdk::logs::LogRecordExporter > | setup_otel_otlp_http_log_exporter (bool json) |
| static std::unique_ptr< opentelemetry::sdk::logs::LogRecordExporter > | setup_otel_otlp_log_exporter () |
| static std::unique_ptr< opentelemetry::sdk::logs::LogRecordProcessor > | setup_otel_batch_log_processor (std::unique_ptr< opentelemetry::sdk::logs::LogRecordExporter > exporter) |
| opentelemetry::nostd::shared_ptr< opentelemetry::sdk::logs::LoggerProvider > | setup_otel_logger_provider (const opentelemetry::sdk::resource::Resource &resource) |
| opentelemetry::nostd::shared_ptr< opentelemetry::logs::Logger > | setup_otel_logger (const opentelemetry::nostd::shared_ptr< opentelemetry::sdk::logs::LoggerProvider > &provider) |
| std::unique_ptr< opentelemetry::metrics::MeterProvider > | setup_otel_meter_provider (const opentelemetry::sdk::resource::Resource &resource, const opentelemetry::sdk::metrics::PeriodicExportingMetricReaderOptions &options) |
| int | free_telemetry_slot (void *) |
| int | register_telemetry_slot () |
| void | unregister_telemetry_slot () |
| static int | tm_show_run_level (THD *, SHOW_VAR *var, char *buf) |
| static int | tm_show_session_refcount (THD *, SHOW_VAR *var, char *buf) |
| void | register_status_variables () |
| void | unregister_status_variables () |
| static int | validate_tls_cipher (const char *actual, const char *supported, std::vector< std::string > &all_illegal) |
| static int | check_tls_cipher (const char *tls_version, const char *actual, const char *expected) |
| static int | check_tls12_cipher (MYSQL_THD, SYS_VAR *, void *save, struct st_mysql_value *value) |
| static int | check_tls13_cipher_suite (MYSQL_THD, SYS_VAR *, void *save, struct st_mysql_value *value) |
| static void | update_log_enabled (MYSQL_THD, SYS_VAR *, void *, const void *value) |
| static void | update_log_level (MYSQL_THD, SYS_VAR *, void *, const void *value) |
| int | check_system_variable (System_variable *v) |
| Work around. More... | |
| int | register_system_variables () |
| void | unregister_system_variables () |
| typedef weak_service_reference<const mysql_service_mysql_option_tracker_option_t, c_name, opt_name> telemetry::weak_option |
| void telemetry::abort_current_session | ( | ) |
|
static |
| const std::string telemetry::c_name | ( | "component_telemetry" | ) |
| const std::string telemetry::c_option_name | ( | "MySQL Telemetry" | ) |
|
static |
| int telemetry::check_system_variable | ( | System_variable * | v | ) |
Work around.
|
static |
|
static |
|
static |
| void telemetry::cleanup_mutexes | ( | ) |
| int telemetry::cleanup_network_namespaces | ( | ) |
| void telemetry::cleanup_otel_meter | ( | const char * | name | ) |
| void telemetry::cleanup_otel_meter_providers | ( | ) |
| void telemetry::cleanup_otel_meters | ( | ) |
| void telemetry::cleanup_otel_meters_notification | ( | ) |
| int telemetry::close_network_namespace | ( | int | fd | ) |
| opentelemetry::logs::Severity telemetry::convert_severity | ( | uint8_t | mysql_severity | ) |
| void telemetry::dec_session_count | ( | ) |
|
static |
| int telemetry::decode_secrets | ( | bool & | must_wait | ) |
|
static |
| std::unique_ptr< MySQLMeter > telemetry::do_setup_otel_meter | ( | const char * | name, |
| ulong | frequency | ||
| ) |
| void telemetry::emit_control_log | ( | bool | traces_enabled, |
| bool | metrics_enabled, | ||
| bool | logs_enabled, | ||
| const char * | details | ||
| ) |
| void telemetry::emit_control_span | ( | bool | traces_enabled, |
| bool | metrics_enabled, | ||
| bool | logs_enabled, | ||
| const char * | details | ||
| ) |
| telemetry::END_COMPONENT_METADATA | ( | ) |
| telemetry::END_COMPONENT_PROVIDES | ( | ) |
| telemetry::END_COMPONENT_REQUIRES | ( | ) |
| int telemetry::free_telemetry_slot | ( | void * | ) |
|
static |
| std::atomic_int64_t telemetry::g_run_level | ( | RUN_LEVEL_BOOT | ) |
| std::atomic_int64_t telemetry::g_session_count | ( | 0LL | ) |
| std::atomic_int64_t telemetry::g_sessions_closed | ( | 0LL | ) |
| std::atomic_bool telemetry::g_shutting_down | ( | false | ) |
| opentelemetry::nostd::shared_ptr< opentelemetry::trace::Tracer > telemetry::g_tracer | ( | nullptr | ) |
| std::shared_ptr< opentelemetry::sdk::trace::TracerProvider > telemetry::g_tracer_provider | ( | nullptr | ) |
| void telemetry::inc_session_count | ( | ) |
| void telemetry::init_mutexes | ( | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| telemetry::METADATA | ( | "component_telemetry" | , |
| "1" | |||
| ) |
| telemetry::METADATA | ( | "mysql.author" | , |
| "Oracle Corporation" | |||
| ) |
| telemetry::METADATA | ( | "mysql.license" | , |
| "GPL" | |||
| ) |
| void telemetry::my_delivery_double_0_callback | ( | void * | context, |
| double | value | ||
| ) |
| void telemetry::my_delivery_double_1_callback | ( | void * | context, |
| double | value, | ||
| const char * | attr_name, | ||
| const char * | attr_value | ||
| ) |
| void telemetry::my_delivery_double_n_callback | ( | void * | context, |
| double | value, | ||
| const char ** | attr_name_array, | ||
| const char ** | attr_value_array, | ||
| size_t | size | ||
| ) |
| void telemetry::my_delivery_int64_0_callback | ( | void * | context, |
| int64_t | value | ||
| ) |
| void telemetry::my_delivery_int64_1_callback | ( | void * | context, |
| int64_t | value, | ||
| const char * | attr_name, | ||
| const char * | attr_value | ||
| ) |
| void telemetry::my_delivery_int64_n_callback | ( | void * | context, |
| int64_t | value, | ||
| const char ** | attr_name_array, | ||
| const char ** | attr_value_array, | ||
| size_t | size | ||
| ) |
| int telemetry::open_network_namespace | ( | const std::string & | network_namespace, |
| int * | fd | ||
| ) |
| const std::string telemetry::opt_name | ( | "mysql_option_tracker_option" | ) |
| bool telemetry::otel_component_option_usage_deinit | ( | ) |
| bool telemetry::otel_component_option_usage_init | ( | ) |
| bool telemetry::otel_component_option_usage_set | ( | ) |
| std::unique_ptr< opentelemetry::sdk::logs::LogRecordProcessor > telemetry::otel_create_batch_log_processor | ( | const opentelemetry::sdk::logs::BatchLogRecordProcessorOptions & | options, |
| const opentelemetry::sdk::logs::BatchLogRecordProcessorRuntimeOptions & | runtime_options, | ||
| std::unique_ptr< opentelemetry::sdk::logs::LogRecordExporter > | exporter | ||
| ) |
| std::unique_ptr< opentelemetry::sdk::trace::SpanProcessor > telemetry::otel_create_batch_processor | ( | const opentelemetry::sdk::trace::BatchSpanProcessorOptions & | options, |
| const opentelemetry::sdk::trace::BatchSpanProcessorRuntimeOptions & | runtime_options, | ||
| std::unique_ptr< opentelemetry::sdk::trace::SpanExporter > | exporter | ||
| ) |
| opentelemetry::nostd::shared_ptr< opentelemetry::sdk::logs::LoggerProvider > telemetry::otel_create_logger_provider | ( | const opentelemetry::sdk::resource::Resource & | resource, |
| std::unique_ptr< opentelemetry::sdk::logs::LogRecordProcessor > | processor | ||
| ) |
| std::unique_ptr< opentelemetry::metrics::MeterProvider > telemetry::otel_create_meter_provider | ( | std::unique_ptr< opentelemetry::sdk::metrics::MeterContext > | context | ) |
| std::unique_ptr< opentelemetry::sdk::metrics::MeterContext > telemetry::otel_create_metric_meter_context | ( | std::unique_ptr< opentelemetry::sdk::metrics::ViewRegistry > | views, |
| const opentelemetry::sdk::resource::Resource & | resource | ||
| ) |
| std::unique_ptr< opentelemetry::sdk::metrics::MetricReader > telemetry::otel_create_metric_reader | ( | std::unique_ptr< opentelemetry::sdk::metrics::PushMetricExporter > | exporter, |
| const opentelemetry::sdk::metrics::PeriodicExportingMetricReaderOptions & | options, | ||
| const opentelemetry::sdk::metrics::PeriodicExportingMetricReaderRuntimeOptions & | runtime_options | ||
| ) |
| std::unique_ptr< opentelemetry::sdk::metrics::ViewRegistry > telemetry::otel_create_metric_view_registry | ( | ) |
| std::unique_ptr< opentelemetry::sdk::trace::SpanExporter > telemetry::otel_create_otlp_http_exporter | ( | const opentelemetry::exporter::otlp::OtlpHttpExporterOptions & | options, |
| const opentelemetry::exporter::otlp::OtlpHttpExporterRuntimeOptions & | runtime_options | ||
| ) |
| std::unique_ptr< opentelemetry::sdk::logs::LogRecordExporter > telemetry::otel_create_otlp_http_log_exporter | ( | const opentelemetry::exporter::otlp::OtlpHttpLogRecordExporterOptions & | options, |
| const opentelemetry::exporter::otlp::OtlpHttpLogRecordExporterRuntimeOptions & | runtime_options | ||
| ) |
| std::unique_ptr< opentelemetry::sdk::metrics::PushMetricExporter > telemetry::otel_create_otlp_http_metric_exporter | ( | const opentelemetry::exporter::otlp::OtlpHttpMetricExporterOptions & | options, |
| const opentelemetry::exporter::otlp::OtlpHttpMetricExporterRuntimeOptions & | runtime_options | ||
| ) |
| opentelemetry::nostd::shared_ptr< opentelemetry::trace::Tracer > telemetry::otel_create_tracer | ( | const opentelemetry::nostd::shared_ptr< opentelemetry::trace::TracerProvider > & | provider | ) |
| opentelemetry::nostd::shared_ptr< opentelemetry::trace::Tracer > telemetry::otel_create_tracer | ( | opentelemetry::nostd::shared_ptr< opentelemetry::trace::TracerProvider > | provider | ) |
| std::shared_ptr< opentelemetry::sdk::trace::TracerProvider > telemetry::otel_create_tracer_provider | ( | const opentelemetry::sdk::resource::Resource & | resource, |
| std::unique_ptr< opentelemetry::sdk::trace::SpanProcessor > | processor | ||
| ) |
|
static |
| int telemetry::register_notification_callback | ( | ) |
| void telemetry::register_performance_schema | ( | ) |
| int telemetry::register_services_loaded_notification | ( | ) |
| void telemetry::register_status_variables | ( | ) |
| int telemetry::register_system_variables | ( | ) |
| int telemetry::register_telemetry_callback | ( | ) |
| int telemetry::register_telemetry_logger | ( | ) |
| int telemetry::register_telemetry_slot | ( | ) |
| telemetry::REQUIRES_SERVICE_AS | ( | component_sys_variable_register | , |
| sysvar_register_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_AS | ( | component_sys_variable_unregister | , |
| sysvar_unregister_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_AS | ( | log_builtins | , |
| log_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_AS | ( | log_builtins_string | , |
| log_string_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_AS | ( | mysql_cond_v1 | , |
| cond_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_AS | ( | mysql_connection_attributes_iterator | , |
| con_attr_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_AS | ( | mysql_current_thread_reader | , |
| current_thd_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_AS | ( | mysql_mutex_v1 | , |
| mutex_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_AS | ( | mysql_query_attribute_string | , |
| qa_string_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_AS | ( | mysql_query_attributes_iterator | , |
| qa_iter_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_AS | ( | mysql_server_telemetry_logs | , |
| telemetry_logs_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_AS | ( | mysql_server_telemetry_metrics_v1 | , |
| telemetry_metrics_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_AS | ( | mysql_server_telemetry_traces_v1 | , |
| telemetry_traces_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_AS | ( | mysql_string_converter | , |
| string_converter_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_AS | ( | mysql_string_factory | , |
| string_factory_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_AS | ( | mysql_string_get_data_in_charset | , |
| string_get_data_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_AS | ( | mysql_thd_store | , |
| thd_store_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_AS | ( | pfs_notification_v3 | , |
| notification_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_AS | ( | psi_idle_v1 | , |
| idle_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_AS | ( | psi_metric_v1 | , |
| metric_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_AS | ( | psi_stage_v1 | , |
| stage_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_AS | ( | psi_thread_v7 | , |
| thread_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_AS | ( | registry | , |
| reg_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_AS | ( | registry_registration | , |
| reg_reg | |||
| ) |
| telemetry::REQUIRES_SERVICE_AS | ( | status_variable_registration | , |
| statvar_register_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_PLACEHOLDER_AS | ( | component_sys_variable_register | , |
| sysvar_register_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_PLACEHOLDER_AS | ( | component_sys_variable_unregister | , |
| sysvar_unregister_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_PLACEHOLDER_AS | ( | log_builtins | , |
| log_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_PLACEHOLDER_AS | ( | log_builtins_string | , |
| log_string_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_PLACEHOLDER_AS | ( | mysql_cond_v1 | , |
| cond_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_PLACEHOLDER_AS | ( | mysql_connection_attributes_iterator | , |
| con_attr_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_PLACEHOLDER_AS | ( | mysql_current_thread_reader | , |
| current_thd_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_PLACEHOLDER_AS | ( | mysql_mutex_v1 | , |
| mutex_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_PLACEHOLDER_AS | ( | mysql_query_attribute_string | , |
| qa_string_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_PLACEHOLDER_AS | ( | mysql_query_attributes_iterator | , |
| qa_iter_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_PLACEHOLDER_AS | ( | mysql_server_telemetry_logs | , |
| telemetry_logs_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_PLACEHOLDER_AS | ( | mysql_server_telemetry_metrics_v1 | , |
| telemetry_metrics_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_PLACEHOLDER_AS | ( | mysql_server_telemetry_traces_v1 | , |
| telemetry_traces_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_PLACEHOLDER_AS | ( | mysql_string_converter | , |
| string_converter_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_PLACEHOLDER_AS | ( | mysql_string_factory | , |
| string_factory_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_PLACEHOLDER_AS | ( | mysql_string_get_data_in_charset | , |
| string_get_data_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_PLACEHOLDER_AS | ( | mysql_thd_store | , |
| thd_store_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_PLACEHOLDER_AS | ( | pfs_notification_v3 | , |
| notification_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_PLACEHOLDER_AS | ( | psi_idle_v1 | , |
| idle_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_PLACEHOLDER_AS | ( | psi_metric_v1 | , |
| metric_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_PLACEHOLDER_AS | ( | psi_stage_v1 | , |
| stage_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_PLACEHOLDER_AS | ( | psi_thread_v7 | , |
| thread_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_PLACEHOLDER_AS | ( | registry | , |
| reg_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_PLACEHOLDER_AS | ( | registry_registration | , |
| reg_reg | |||
| ) |
| telemetry::REQUIRES_SERVICE_PLACEHOLDER_AS | ( | status_variable_registration | , |
| statvar_register_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_PLACEHOLDER_AS | ( | telemetry_resource_provider | , |
| resource_provider_srv | |||
| ) |
| telemetry::REQUIRES_SERVICE_PLACEHOLDER_AS | ( | telemetry_secret_provider | , |
| secret_provider_srv | |||
| ) |
|
static |
|
static |
|
staticnoexcept |
| void telemetry::set_log_record_trace | ( | opentelemetry::logs::LogRecord * | record | ) |
| int telemetry::set_network_namespace | ( | int | fd | ) |
| void telemetry::set_span_session_attr | ( | const opentelemetry::nostd::shared_ptr< opentelemetry::trace::Span > & | otel_span, |
| MYSQL_THD | thd | ||
| ) |
| void telemetry::set_span_stmt_aborted | ( | const opentelemetry::nostd::shared_ptr< opentelemetry::trace::Span > & | otel_span | ) |
| void telemetry::set_span_stmt_data | ( | const opentelemetry::nostd::shared_ptr< opentelemetry::trace::Span > & | otel_span, |
| telemetry_stmt_data_t * | stmt_data | ||
| ) |
| void telemetry::set_span_thread_attr | ( | const opentelemetry::nostd::shared_ptr< opentelemetry::trace::Span > & | otel_span, |
| const PSI_thread_attrs * | thread_attrs | ||
| ) |
|
static |
| void telemetry::setup_internal_logger | ( | ) |
| void telemetry::setup_internal_logger_level | ( | unsigned long | log_level | ) |
| int telemetry::setup_network_namespaces | ( | ) |
|
static |
|
static |
| opentelemetry::nostd::shared_ptr< opentelemetry::logs::Logger > telemetry::setup_otel_logger | ( | const opentelemetry::nostd::shared_ptr< opentelemetry::sdk::logs::LoggerProvider > & | provider | ) |
| opentelemetry::nostd::shared_ptr< opentelemetry::sdk::logs::LoggerProvider > telemetry::setup_otel_logger_provider | ( | const opentelemetry::sdk::resource::Resource & | resource | ) |
| void telemetry::setup_otel_meter | ( | const char * | name, |
| ulong | frequency | ||
| ) |
| std::unique_ptr< opentelemetry::metrics::MeterProvider > telemetry::setup_otel_meter_provider | ( | const opentelemetry::sdk::resource::Resource & | resource, |
| const opentelemetry::sdk::metrics::PeriodicExportingMetricReaderOptions & | options | ||
| ) |
| std::unique_ptr< opentelemetry::metrics::MeterProvider > telemetry::setup_otel_meter_provider | ( | const opentelemetry::sdk::resource::Resource & | resource, |
| const opentelemetry::sdk::metrics::PeriodicExportingMetricReaderOptions & | options, | ||
| const opentelemetry::sdk::metrics::PeriodicExportingMetricReaderRuntimeOptions & | runtime_options | ||
| ) |
| void telemetry::setup_otel_meter_providers | ( | const opentelemetry::sdk::resource::Resource & | resource | ) |
| void telemetry::setup_otel_meters | ( | ) |
| void telemetry::setup_otel_meters_notification | ( | ) |
| void telemetry::setup_otel_metric | ( | const std::unique_ptr< MySQLMeter > & | meter, |
| const char * | metric_name, | ||
| const char * | metric_desc, | ||
| const char * | metric_unit, | ||
| MetricNumType | metric_numeric, | ||
| MetricOTELType | metric_type, | ||
| measurement_callback_t | metric_cb, | ||
| void * | metric_cb_context | ||
| ) |
| std::unique_ptr< opentelemetry::sdk::metrics::MetricReader > telemetry::setup_otel_metric_reader | ( | std::unique_ptr< opentelemetry::sdk::metrics::PushMetricExporter > | exporter, |
| const opentelemetry::sdk::metrics::PeriodicExportingMetricReaderOptions & | options, | ||
| const opentelemetry::sdk::metrics::PeriodicExportingMetricReaderRuntimeOptions & | runtime_options | ||
| ) |
|
static |
|
static |
|
static |
| std::unique_ptr< opentelemetry::sdk::metrics::PushMetricExporter > telemetry::setup_otel_otlp_http_metric_exporter | ( | bool | json | ) |
|
static |
| std::unique_ptr< opentelemetry::sdk::metrics::PushMetricExporter > telemetry::setup_otel_otlp_metrics_exporter | ( | ) |
| opentelemetry::nostd::shared_ptr< opentelemetry::trace::Tracer > telemetry::setup_otel_tracer | ( | const std::shared_ptr< opentelemetry::trace::TracerProvider > & | provider | ) |
| std::shared_ptr< opentelemetry::sdk::trace::TracerProvider > telemetry::setup_otel_tracer_provider | ( | const opentelemetry::sdk::resource::Resource & | resource | ) |
| void telemetry::setup_resource | ( | opentelemetry::sdk::resource::Resource & | resource, |
| bool & | must_wait | ||
| ) |
| opentelemetry::sdk::resource::Resource telemetry::setup_resource | ( | opentelemetry::sdk::resource::ResourceAttributes & | attributes, |
| const char * | resource_atrtributes_string | ||
| ) |
| mysql_service_status_t telemetry::telemetry_deinit | ( | ) |
| void telemetry::telemetry_deinit_install | ( | ) |
| mysql_service_status_t telemetry::telemetry_init | ( | ) |
| mysql_service_status_t telemetry::telemetry_init_configure | ( | ) |
| mysql_service_status_t telemetry::telemetry_init_decode_secret | ( | bool & | must_wait | ) |
| void telemetry::telemetry_init_detect_resource | ( | bool & | must_wait | ) |
| mysql_service_status_t telemetry::telemetry_init_install | ( | ) |
| void telemetry::telemetry_init_noop_configure | ( | ) |
|
static |
Convert a MySQL TLS option (as a system variable enum) to an OpenTelemetry TLS option.
| value | Input TLS option |
| value_for_default | Default value to enforce |
| void telemetry::tm_log_callback | ( | const char * | logger_name, |
| OTELLogLevel | severity, | ||
| const char * | message, | ||
| time_t | timestamp, | ||
| const log_attribute_t * | attr_array, | ||
| size_t | attr_count | ||
| ) |
| void telemetry::tm_meter_change_callback | ( | const char * | meter, |
| MeterNotifyType | change | ||
| ) |
| void telemetry::tm_session_change_user | ( | const PSI_thread_attrs * | ) |
| void telemetry::tm_session_connect | ( | const PSI_thread_attrs * | thread_attrs | ) |
| telemetry_session_t * telemetry::tm_session_create | ( | ) |
| void telemetry::tm_session_destroy | ( | telemetry_session_t * | session | ) |
| void telemetry::tm_session_disconnect | ( | const PSI_thread_attrs * | thread_attrs | ) |
| void telemetry::tm_set_parent_from_qa | ( | opentelemetry::trace::StartSpanOptions & | options, |
| Session_data * | data | ||
| ) |
| void telemetry::tm_stmt_abort | ( | telemetry_locker_t * | locker | ) |
| void telemetry::tm_stmt_end | ( | telemetry_locker_t * | locker, |
| telemetry_stmt_data_t * | stmt_data | ||
| ) |
| telemetry_locker_t * telemetry::tm_stmt_notify_qa | ( | telemetry_locker_t * | locker, |
| bool | with_query_attributes, | ||
| uint64_t * | |||
| ) |
| telemetry_locker_t * telemetry::tm_stmt_start | ( | telemetry_session_t * | session, |
| uint64_t * | flags | ||
| ) |
| void telemetry::tm_thread_create | ( | const PSI_thread_attrs * | ) |
| void telemetry::tm_thread_destroy | ( | const PSI_thread_attrs * | ) |
| void telemetry::to_timespec | ( | const std::chrono::time_point< std::chrono::system_clock > & | from, |
| struct timespec & | to | ||
| ) |
| void telemetry::unregister_notification_callback | ( | ) |
| void telemetry::unregister_services_loaded_notification | ( | ) |
| void telemetry::unregister_status_variables | ( | ) |
| void telemetry::unregister_system_variables | ( | ) |
| void telemetry::unregister_telemetry_callback | ( | ) |
| void telemetry::unregister_telemetry_logger | ( | ) |
| void telemetry::unregister_telemetry_slot | ( | ) |
|
static |
|
static |
|
static |
| void telemetry::wait_for_sessions | ( | ) |
|
static |
|
static |
|
static |
| System_variable* telemetry::all_sys_vars[] |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
constexpr |
| const char * telemetry::component_name = "telemetry" |
|
constexpr |
| MySQLMeterProviders telemetry::g_all_meter_providers |
| std::map<std::string, std::unique_ptr<MySQLMeter> > telemetry::g_all_meters |
| mysql_mutex_t telemetry::g_all_meters_mutex |
| mysql_cond_t telemetry::g_install_completed_cond |
| mysql_mutex_t telemetry::g_install_completed_lock |
| mysql_cond_t telemetry::g_install_wait_cond |
| mysql_mutex_t telemetry::g_install_wait_lock |
| opentelemetry::nostd::shared_ptr< opentelemetry::logs::Logger > telemetry::g_logger |
| opentelemetry::nostd::shared_ptr< opentelemetry::sdk::logs::LoggerProvider > telemetry::g_logger_provider |
| int telemetry::g_logs_network_namespace = NO_FD |
| PSI_mutex_key telemetry::g_meter_mutex_key = PSI_NOT_INSTRUMENTED |
| PSI_mutex_key telemetry::g_metric_mutex_key = PSI_NOT_INSTRUMENTED |
| int telemetry::g_metrics_network_namespace = NO_FD |
| PSI_cond_key telemetry::g_notify_cond_key = PSI_NOT_INSTRUMENTED |
| PSI_mutex_key telemetry::g_notify_mutex_key = PSI_NOT_INSTRUMENTED |
| mysql_mutex_t telemetry::g_option_usage_mutex |
| PSI_mutex_key telemetry::g_option_usage_mutex_key = PSI_NOT_INSTRUMENTED |
| PSI_thread_key telemetry::g_otel_blrp_thread_key = PSI_NOT_INSTRUMENTED |
| PSI_thread_key telemetry::g_otel_bsp_thread_key = PSI_NOT_INSTRUMENTED |
| PSI_thread_key telemetry::g_otel_metric_periodic_reader_thread_key = PSI_NOT_INSTRUMENTED |
| PSI_thread_key telemetry::g_otel_otlp_logs_exporter_thread_key = PSI_NOT_INSTRUMENTED |
| PSI_thread_key telemetry::g_otel_otlp_metrics_exporter_thread_key = PSI_NOT_INSTRUMENTED |
| PSI_thread_key telemetry::g_otel_otlp_traces_exporter_thread_key = PSI_NOT_INSTRUMENTED |
| opentelemetry::sdk::resource::Resource telemetry::g_resource |
|
extern |
|
extern |
| mysql_cond_t telemetry::g_session_notify_cond |
| mysql_mutex_t telemetry::g_session_notify_mutex |
| PSI_stage_info telemetry::g_session_stage |
|
extern |
|
extern |
| mysql_thd_store_slot telemetry::g_telemetry_slot = nullptr |
|
extern |
|
extern |
| int telemetry::g_traces_network_namespace = NO_FD |
| const mysql_service_dynamic_loader_services_loaded_notification_t telemetry::imp_component_telemetry_dynamic_loader_services_loaded_notification |
|
static |
| const char * telemetry::k_reason_configuration = "CONFIGURATION" |
| const char * telemetry::k_reason_shutdown = "SHUTDOWN" |
| const char * telemetry::k_reason_startup = "STARTUP" |
| struct measurement_delivery_callback telemetry::my_delivery_callback |
| mysql_component_t telemetry::mysql_component_component_telemetry |
|
static |
|
constexpr |
|
static |
|
constexpr |
| unsigned long long telemetry::opt_option_tracker_usage_otel_component = 0 |
Protected by g_option_usage_mutex.
|
static |
Protected by g_option_usage_mutex.
| const unsigned long telemetry::OTEL_LOG_LEVEL_DEBUG = 4 |
|
static |
| const unsigned long telemetry::OTEL_LOG_LEVEL_ERROR = 1 |
| const unsigned long telemetry::OTEL_LOG_LEVEL_INFO = 3 |
| const unsigned long telemetry::OTEL_LOG_LEVEL_SILENT = 0 |
|
static |
| const unsigned long telemetry::OTEL_LOG_LEVEL_WARNING = 2 |
|
static |
| const unsigned long telemetry::OTLP_COMPRESSION_GZIP = 1 |
| const unsigned long telemetry::OTLP_COMPRESSION_NONE = 0 |
|
static |
|
static |
| const unsigned long telemetry::OTLP_PROTOCOL_HTTP_JSON = 1 |
| const unsigned long telemetry::OTLP_PROTOCOL_HTTP_PROTOBUF = 0 |
|
static |
|
static |
| const unsigned long telemetry::OTLP_TLS_12 = 1 |
| const unsigned long telemetry::OTLP_TLS_13 = 2 |
| const unsigned long telemetry::OTLP_TLS_DEFAULT = 0 |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
static |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
| std::string telemetry::sensitive_otel_exporter_otlp_logs_secret_headers |
| std::string telemetry::sensitive_otel_exporter_otlp_metrics_secret_headers |
| std::string telemetry::sensitive_otel_exporter_otlp_traces_secret_headers |
|
static |
|
static |
| bool telemetry::sv_log_enabled = false |
| bool telemetry::sv_metrics_enabled = false |
| unsigned long telemetry::sv_metrics_reader_frequency_1 = 0 |
| unsigned long telemetry::sv_metrics_reader_frequency_2 = 0 |
| unsigned long telemetry::sv_metrics_reader_frequency_3 = 0 |
| long telemetry::sv_otel_blrp_max_export_batch_size = 0 |
| long telemetry::sv_otel_blrp_max_queue_size = 0 |
| long telemetry::sv_otel_blrp_schedule_delay = 0 |
| long telemetry::sv_otel_bsp_max_export_batch_size = 0 |
| long telemetry::sv_otel_bsp_max_queue_size = 0 |
| long telemetry::sv_otel_bsp_schedule_delay = 0 |
| char * telemetry::sv_otel_exporter_otlp_logs_certificates = nullptr |
| char * telemetry::sv_otel_exporter_otlp_logs_cipher = nullptr |
| char * telemetry::sv_otel_exporter_otlp_logs_cipher_suite = nullptr |
| char * telemetry::sv_otel_exporter_otlp_logs_client_certificates = nullptr |
| char * telemetry::sv_otel_exporter_otlp_logs_client_key = nullptr |
| unsigned long telemetry::sv_otel_exporter_otlp_logs_compression = 0 |
| char * telemetry::sv_otel_exporter_otlp_logs_endpoint = nullptr |
| char * telemetry::sv_otel_exporter_otlp_logs_headers = nullptr |
| unsigned long telemetry::sv_otel_exporter_otlp_logs_max_tls = OTLP_TLS_DEFAULT |
| unsigned long telemetry::sv_otel_exporter_otlp_logs_min_tls = OTLP_TLS_DEFAULT |
| char * telemetry::sv_otel_exporter_otlp_logs_network_namespace = nullptr |
| unsigned long telemetry::sv_otel_exporter_otlp_logs_protocol |
| char * telemetry::sv_otel_exporter_otlp_logs_secret_headers = nullptr |
| long telemetry::sv_otel_exporter_otlp_logs_timeout = 0 |
| char * telemetry::sv_otel_exporter_otlp_metrics_certificates = nullptr |
| char * telemetry::sv_otel_exporter_otlp_metrics_cipher = nullptr |
| char * telemetry::sv_otel_exporter_otlp_metrics_cipher_suite = nullptr |
| char * telemetry::sv_otel_exporter_otlp_metrics_client_certificates = nullptr |
| char * telemetry::sv_otel_exporter_otlp_metrics_client_key = nullptr |
| unsigned long telemetry::sv_otel_exporter_otlp_metrics_compression = 0 |
| char * telemetry::sv_otel_exporter_otlp_metrics_endpoint = nullptr |
| char * telemetry::sv_otel_exporter_otlp_metrics_headers = nullptr |
| unsigned long telemetry::sv_otel_exporter_otlp_metrics_max_tls = OTLP_TLS_DEFAULT |
| unsigned long telemetry::sv_otel_exporter_otlp_metrics_min_tls = OTLP_TLS_DEFAULT |
| char * telemetry::sv_otel_exporter_otlp_metrics_network_namespace = nullptr |
| unsigned long telemetry::sv_otel_exporter_otlp_metrics_protocol |
| char * telemetry::sv_otel_exporter_otlp_metrics_secret_headers = nullptr |
| long telemetry::sv_otel_exporter_otlp_metrics_timeout = 0 |
| char * telemetry::sv_otel_exporter_otlp_traces_certificates = nullptr |
| char * telemetry::sv_otel_exporter_otlp_traces_cipher = nullptr |
| char * telemetry::sv_otel_exporter_otlp_traces_cipher_suite = nullptr |
| char * telemetry::sv_otel_exporter_otlp_traces_client_certificates = nullptr |
| char * telemetry::sv_otel_exporter_otlp_traces_client_key = nullptr |
| unsigned long telemetry::sv_otel_exporter_otlp_traces_compression = 0 |
| char * telemetry::sv_otel_exporter_otlp_traces_endpoint = nullptr |
| char * telemetry::sv_otel_exporter_otlp_traces_headers = nullptr |
| unsigned long telemetry::sv_otel_exporter_otlp_traces_max_tls = OTLP_TLS_DEFAULT |
| unsigned long telemetry::sv_otel_exporter_otlp_traces_min_tls = OTLP_TLS_DEFAULT |
| char * telemetry::sv_otel_exporter_otlp_traces_network_namespace = nullptr |
| unsigned long telemetry::sv_otel_exporter_otlp_traces_protocol = 0 |
| char * telemetry::sv_otel_exporter_otlp_traces_secret_headers = nullptr |
| long telemetry::sv_otel_exporter_otlp_traces_timeout = 0 |
| unsigned long telemetry::sv_otel_log_level = OTEL_LOG_LEVEL_INFO |
| char * telemetry::sv_otel_resource_attributes = nullptr |
| bool telemetry::sv_query_text_enabled = false |
| char * telemetry::sv_resource_provider = nullptr |
| char * telemetry::sv_secret_provider = nullptr |
| bool telemetry::sv_trace_enabled = false |
| System_variable telemetry::sysvar_log_enabled |
| System_variable telemetry::sysvar_metrics_enabled |
| System_variable telemetry::sysvar_metrics_reader_frequency_1 |
METRICS_READER_FREQUENCY_1.
| System_variable telemetry::sysvar_metrics_reader_frequency_2 |
METRICS_READER_FREQUENCY_2.
| System_variable telemetry::sysvar_metrics_reader_frequency_3 |
METRICS_READER_FREQUENCY_3.
| System_variable telemetry::sysvar_otel_blrp_max_export_batch_size |
OTEL_BLRP_MAX_EXPORT_BATCH_SIZE.
| System_variable telemetry::sysvar_otel_blrp_max_queue_size |
OTEL_BLRP_MAX_QUEUE_SIZE.
| System_variable telemetry::sysvar_otel_blrp_schedule_delay |
OTEL_BLRP_SCHEDULE_DELAY.
| System_variable telemetry::sysvar_otel_bsp_max_export_batch_size |
OTEL_BSP_MAX_EXPORT_BATCH_SIZE.
| System_variable telemetry::sysvar_otel_bsp_max_queue_size |
OTEL_BSP_MAX_QUEUE_SIZE.
| System_variable telemetry::sysvar_otel_bsp_schedule_delay |
OTEL_BSP_SCHEDULE_DELAY.
| System_variable telemetry::sysvar_otel_exporter_otlp_logs_certificates |
OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE.
| System_variable telemetry::sysvar_otel_exporter_otlp_logs_cipher |
OTEL_EXPORTER_OTLP_LOGS_CIPHER.
| System_variable telemetry::sysvar_otel_exporter_otlp_logs_cipher_suite |
OTEL_EXPORTER_OTLP_LOGS_CIPHER_SUITE.
| System_variable telemetry::sysvar_otel_exporter_otlp_logs_client_certificates |
OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE.
| System_variable telemetry::sysvar_otel_exporter_otlp_logs_client_key |
OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY.
| System_variable telemetry::sysvar_otel_exporter_otlp_logs_compression |
OTEL_EXPORTER_OTLP_LOGS_COMPRESSION.
| System_variable telemetry::sysvar_otel_exporter_otlp_logs_endpoint |
OTEL_EXPORTER_OTLP_LOGS_ENDPOINT.
| System_variable telemetry::sysvar_otel_exporter_otlp_logs_headers |
OTEL_EXPORTER_OTLP_LOGS_HEADERS.
| System_variable telemetry::sysvar_otel_exporter_otlp_logs_max_tls |
OTEL_EXPORTER_OTLP_LOGS_MAX_TLS.
| System_variable telemetry::sysvar_otel_exporter_otlp_logs_min_tls |
OTEL_EXPORTER_OTLP_LOGS_MIN_TLS.
| System_variable telemetry::sysvar_otel_exporter_otlp_logs_network_namespace |
OTEL_EXPORTER_OTLP_LOGS_NETWORK_NAMESPACE.
| System_variable telemetry::sysvar_otel_exporter_otlp_logs_protocol |
OTEL_EXPORTER_OTLP_LOGS_PROTOCOL.
| System_variable telemetry::sysvar_otel_exporter_otlp_logs_secret_headers |
OTEL_EXPORTER_OTLP_LOGS_SECRET_HEADERS.
| System_variable telemetry::sysvar_otel_exporter_otlp_logs_timeout |
OTEL_EXPORTER_OTLP_LOGS_TIMEOUT.
| System_variable telemetry::sysvar_otel_exporter_otlp_metrics_certificates |
OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE.
| System_variable telemetry::sysvar_otel_exporter_otlp_metrics_cipher |
OTEL_EXPORTER_OTLP_METRICS_CIPHER.
| System_variable telemetry::sysvar_otel_exporter_otlp_metrics_cipher_suite |
OTEL_EXPORTER_OTLP_TRACES_CIPHER_SUITE.
| System_variable telemetry::sysvar_otel_exporter_otlp_metrics_client_certificates |
OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE.
| System_variable telemetry::sysvar_otel_exporter_otlp_metrics_client_key |
OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY.
| System_variable telemetry::sysvar_otel_exporter_otlp_metrics_compression |
OTEL_EXPORTER_OTLP_METRICS_COMPRESSION.
| System_variable telemetry::sysvar_otel_exporter_otlp_metrics_endpoint |
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT.
| System_variable telemetry::sysvar_otel_exporter_otlp_metrics_headers |
OTEL_EXPORTER_OTLP_METRICS_HEADERS.
| System_variable telemetry::sysvar_otel_exporter_otlp_metrics_max_tls |
OTEL_EXPORTER_OTLP_METRICS_MAX_TLS.
| System_variable telemetry::sysvar_otel_exporter_otlp_metrics_min_tls |
OTEL_EXPORTER_OTLP_METRICS_MIN_TLS.
| System_variable telemetry::sysvar_otel_exporter_otlp_metrics_network_namespace |
OTEL_EXPORTER_OTLP_METRICS_NETWORK_NAMESPACE.
| System_variable telemetry::sysvar_otel_exporter_otlp_metrics_protocol |
OTEL_EXPORTER_OTLP_METRICS_PROTOCOL.
| System_variable telemetry::sysvar_otel_exporter_otlp_metrics_secret_headers |
OTEL_EXPORTER_OTLP_METRICS_SECRET_HEADERS.
| System_variable telemetry::sysvar_otel_exporter_otlp_metrics_timeout |
OTEL_EXPORTER_OTLP_METRICS_TIMEOUT.
| System_variable telemetry::sysvar_otel_exporter_otlp_traces_certificates |
OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE.
| System_variable telemetry::sysvar_otel_exporter_otlp_traces_cipher |
OTEL_EXPORTER_OTLP_TRACES_CIPHER.
| System_variable telemetry::sysvar_otel_exporter_otlp_traces_cipher_suite |
OTEL_EXPORTER_OTLP_TRACES_CIPHER_SUITE.
| System_variable telemetry::sysvar_otel_exporter_otlp_traces_client_certificates |
OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE.
| System_variable telemetry::sysvar_otel_exporter_otlp_traces_client_key |
OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY.
| System_variable telemetry::sysvar_otel_exporter_otlp_traces_compression |
OTEL_EXPORTER_OTLP_TRACES_COMPRESSION.
| System_variable telemetry::sysvar_otel_exporter_otlp_traces_endpoint |
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT.
| System_variable telemetry::sysvar_otel_exporter_otlp_traces_headers |
OTEL_EXPORTER_OTLP_TRACES_HEADERS.
| System_variable telemetry::sysvar_otel_exporter_otlp_traces_max_tls |
OTEL_EXPORTER_OTLP_TRACES_MAX_TLS.
| System_variable telemetry::sysvar_otel_exporter_otlp_traces_min_tls |
OTEL_EXPORTER_OTLP_TRACES_MIN_TLS.
| System_variable telemetry::sysvar_otel_exporter_otlp_traces_network_namespace |
OTEL_EXPORTER_OTLP_TRACES_NETWORK_NAMESPACE.
| System_variable telemetry::sysvar_otel_exporter_otlp_traces_protocol |
OTEL_EXPORTER_OTLP_TRACES_PROTOCOL.
| System_variable telemetry::sysvar_otel_exporter_otlp_traces_secret_headers |
OTEL_EXPORTER_OTLP_TRACES_SECRET_HEADERS.
| System_variable telemetry::sysvar_otel_exporter_otlp_traces_timeout |
OTEL_EXPORTER_OTLP_TRACES_TIMEOUT.
| System_variable telemetry::sysvar_otel_log_level |
OTEL_EXPORTER_OTLP_TRACES_PROTOCOL.
| System_variable telemetry::sysvar_otel_resource_attributes |
OTEL_RESOURCE_ATTRIBUTES.
|
static |
| System_variable telemetry::sysvar_query_text_enabled |
| System_variable telemetry::sysvar_resource_provider |
RESOURCE_PROVIDER.
| System_variable telemetry::sysvar_secret_provider |
RESOURCE_PROVIDER.
| System_variable telemetry::sysvar_trace_enabled |
|
static |
|
static |
|
static |
| thread_local MySQLThreadInstrumentationState* telemetry::TLS_state |
|
static |
|
static |
|
static |