2022-06-02 10:55:18 +00:00
# opentelemetry_span_log
2021-02-04 19:13:55 +00:00
Contains information about [trace spans ](https://opentracing.io/docs/overview/spans/ ) for executed queries.
Columns:
2021-08-16 17:12:12 +00:00
- `trace_id` ([UUID](../../sql-reference/data-types/uuid.md)) — ID of the trace for executed query.
2021-02-04 19:13:55 +00:00
- `span_id` ([UInt64](../../sql-reference/data-types/int-uint.md)) — ID of the `trace span` .
- `parent_span_id` ([UInt64](../../sql-reference/data-types/int-uint.md)) — ID of the parent `trace span` .
- `operation_name` ([String](../../sql-reference/data-types/string.md)) — The name of the operation.
- `start_time_us` ([UInt64](../../sql-reference/data-types/int-uint.md)) — The start time of the `trace span` (in microseconds).
- `finish_time_us` ([UInt64](../../sql-reference/data-types/int-uint.md)) — The finish time of the `trace span` (in microseconds).
- `finish_date` ([Date](../../sql-reference/data-types/date.md)) — The finish date of the `trace span` .
2021-02-11 18:42:15 +00:00
- `attribute.names` ([Array](../../sql-reference/data-types/array.md)([String](../../sql-reference/data-types/string.md))) — [Attribute ](https://opentelemetry.io/docs/go/instrumentation/#attributes ) names depending on the `trace span` . They are filled in according to the recommendations in the [OpenTelemetry ](https://opentelemetry.io/ ) standard.
2021-02-04 19:13:55 +00:00
2021-02-11 18:42:15 +00:00
- `attribute.values` ([Array](../../sql-reference/data-types/array.md)([String](../../sql-reference/data-types/string.md))) — Attribute values depending on the `trace span` . They are filled in according to the recommendations in the `OpenTelemetry` standard.
2021-02-04 19:13:55 +00:00
**Example**
2021-02-11 18:42:15 +00:00
Query:
2021-02-04 19:13:55 +00:00
``` sql
SELECT * FROM system.opentelemetry_span_log LIMIT 1 FORMAT Vertical;
```
2021-02-11 18:42:15 +00:00
Result:
2021-02-04 19:13:55 +00:00
``` text
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: []
```
**See Also**
- [OpenTelemetry ](../../operations/opentelemetry.md )
2021-09-19 20:05:54 +00:00
[Original article ](https://clickhouse.com/docs/en/operations/system_tables/opentelemetry_span_log ) <!--hide-->