A span represents an operation within a trace. For more information, see OpenTelemetry Span. The following span types are emitted by the telemetry component:
Issued when the telemetry configuration changes, notifying downstream system of which signal collection has been enabled or disabled.
This span type has the following attributes:
Name: Controltrace_enabled: Boolean.metrics_enabled: Boolean.logs_enabled: Booleandetails:
Issued when a client session ends, recording data relevant to that session from initial connection to close of session.
This span type has the following attributes:
Name: Sessionmysql.processlist_idmysql.thread_idmysql.usermysql.hostmysql.group
This span also contains dynamic attributes generated with the
format
mysql.session_attr.,
where xxx is the
session connect attribute name. See
xxxsession_connect_attrs.
For example, after the following session disconnects:
mysql> select * from session_connect_attrs;
+----------------+-----------------+------------+------------------+
| PROCESSLIST_ID | ATTR_NAME | ATTR_VALUE | ORDINAL_POSITION |
+----------------+-----------------+------------+------------------+
| 10 | _pid | 14488 | 0 |
| 10 | _platform | x86_64 | 1 |
| 10 | _os | Linux | 2 |
| 10 | _client_name | libmysql | 3 |
| 10 | os_user | malff | 4 |
| 10 | _client_version | 8.4.0-tr | 5 |
| 10 | program_name | mysql | 6 |
+----------------+-----------------+------------+------------------+
7 rows in set (0.00 sec)The session span emitted is:
Span #
Trace ID : 4137db42febad2d00a4123286076ba18
Parent ID :
ID : b7ff26660b9fcb35
Name : session
Kind : Internal
Start time : 2023-01-11 10:58:24.79557649 +0000 UTC
End time : 2023-01-11 11:00:50.46695685 +0000 UTC
Status code : Unset
Status message :
Attributes:
-> mysql.processlist_id: Int(10)
-> mysql.thread_id: Int(50)
-> mysql.user: Str(root)
-> mysql.host: Str(localhost)
-> mysql.group: Str(USR_default)
-> mysql.session_attr._pid: Str(14488)
-> mysql.session_attr._platform: Str(x86_64)
-> mysql.session_attr._os: Str(Linux)
-> mysql.session_attr._client_name: Str(libmysql)
-> mysql.session_attr.os_user: Str(malff)
-> mysql.session_attr._client_version: Str(8.4.0-tr)
-> mysql.session_attr.program_name: Str(mysql)
Issued when a statement execution ends in the server, recording all relevant statement information from the start of the execution to its completion.
This span type has the following attributes:
Name: stmtmysql.event_namemysql.lock_timemysql.sql_textmysql.digest_textmysql.current_schemamysql.object_typemysql.object_schemamysql.object_namemysql.sql_errnomysql.sqlstatemysql.message_textmysql.error_countmysql.warning_countmysql.rows_affectedmysql.rows_sentmysql.rows_examinedmysql.created_tmp_disk_tablesmysql.created_tmp_tablesmysql.select_full_joinmysql.select_full_range_joinmysql.select_rangemysql.select_range_checkmysql.select_scanmysql.sort_merge_passesmysql.sort_rangemysql.sort_rowsmysql.sort_scanmysql.no_index_usedmysql.no_good_index_usedmysql.max_controlled_memorymysql.max_total_memorymysql.cpu_time