MySQL 9.1.0
Source Code Documentation
Service Introduction

This service is named mysql_server_telemetry_traces_v1 and it exposes three major methods:

  • register_telemetry : plugin/component to register notification callbacks
  • unregister_telemetry : plugin/component to unregister notification callbacks
  • abort_telemetry : abort telemetry tracing for current statement within THD (on telemetry component uninstall)

Register/unregister methods accept the pointer to a telemetry_v1_t structure that stores a collection of function pointers (callbacks), each callback called to notify of a different event type:

  • telemetry session created
  • telemetry session destroyed
  • new statement started
  • statement got query attributes attached
  • statement ended
  • statement telemetry aborted

This set of callbacks allows the plugin/component to implement telemetry tracing of the statements being executed.

Block Diagram

Following diagram shows the block diagram of PFS services functionality, to register/unregister notification callbacks, exposed via mysql-server component.