MySQL 8.4.2
Source Code Documentation
|
Declarations for client-side plugins of type MYSQL_CLIENT_TELEMETRY_PLUGIN. More...
#include <mysql/client_plugin.h>
Go to the source code of this file.
Classes | |
struct | st_mysql_client_plugin_TELEMETRY |
Typedefs | |
typedef telemetry_span_t *(* | telemetry_start_span_t) (const char *name) |
Start an OpenTelemetry trace span. More... | |
typedef void(* | telemetry_text_map_carrier_set_t) (void *carrier_data, const char *key, size_t key_length, const char *value, size_t value_length) |
Abstract text map carrier set interface. More... | |
typedef void(* | telemetry_injector_t) (telemetry_span_t *span, void *carrier_data, telemetry_text_map_carrier_set_t carrier) |
Inject an OpenTelemetry trace context into an arbitrary text map carrier. More... | |
typedef void(* | telemetry_end_span_t) (telemetry_span_t *span) |
End an OpenTelemetry trace span. More... | |
Variables | |
struct st_mysql_client_plugin_TELEMETRY * | client_telemetry_plugin |
The global telemetry_plugin pointer. More... | |
Declarations for client-side plugins of type MYSQL_CLIENT_TELEMETRY_PLUGIN.
typedef void(* telemetry_end_span_t) (telemetry_span_t *span) |
End an OpenTelemetry trace span.
[in] | span | Span to end |
typedef void(* telemetry_injector_t) (telemetry_span_t *span, void *carrier_data, telemetry_text_map_carrier_set_t carrier) |
Inject an OpenTelemetry trace context into an arbitrary text map carrier.
[in] | span | The trace span to inject |
[in] | carrier_data | text map carrier to set |
[in] | carrier | Function to use to set the data in the carrier |
typedef telemetry_span_t *(* telemetry_start_span_t) (const char *name) |
Start an OpenTelemetry trace span.
[in] | name | span name |
typedef void(* telemetry_text_map_carrier_set_t) (void *carrier_data, const char *key, size_t key_length, const char *value, size_t value_length) |
Abstract text map carrier set interface.
This is used for propagation, to set a key / value pair inside an arbitrary carrier.
carrier_data | Opaque carrier data to set |
key | Key to set |
key_length | Length of key |
value | Value to set |
value_length | Length of value |
|
extern |
The global telemetry_plugin pointer.