system.opentelemetry_span_log
包含已执行查询的跟踪范围的信息.
列信息:
- trace_id(UUID) — 执行的查询的跟踪ID.
- span_id(UInt64) —- 跟踪 跨度ID.
- parent_span_id(UInt64) — 父级- 跟踪 跨度ID.
- operation_name(String) — 操作的名称.
- start_time_us(UInt64) —- 跟踪 跨度开始时间 (微秒).
- finish_time_us(UInt64) — `跟踪 跨度 结束时间 (微秒).
- finish_date(Date) —- 跟踪 跨度完成日期.
- attribute.names(Array(String)) — 属性 名称取决于- 跟踪 跨度. 它们是根据OpenTelemetry标准中的建议填写的.
- attribute.values(Array(String)) — 属性值取决于- 跟踪 跨度. 它们是根据- OpenTelemetry标准中的建议填写的.
示例
查询:
SELECT * FROM system.opentelemetry_span_log LIMIT 1 FORMAT Vertical;
结果:
Row 1:
──────
trace_id:         cdab0847-0d62-61d5-4d38-dd65b19a1914
span_id:          701487461015578150
parent_span_id:   2991972114672045096
operation_name:   DB::Block DB::InterpreterSelectQuery::getSampleBlockImpl()
start_time_us:    1612374594529090
finish_time_us:   1612374594529108
finish_date:      2021-02-03
attribute.names:  []
attribute.values: []
另请参阅