> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# opentelemetry_trace_* session settings

> ClickHouse session settings in the opentelemetry_trace_* generated group.

These settings are available in [system.settings](https://clickhouse.com/docs/reference/system-tables/settings.md) and are autogenerated from [source](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp).

## opentelemetry\_trace\_cpu\_scheduling

Type

Bool

Default

0

Collect OpenTelemetry spans for workload preemptive CPU scheduling.

## opentelemetry\_trace\_processors

Type

Bool

Default

0

Collect OpenTelemetry spans for processors.

## opentelemetry\_trace\_stateless\_worker\_discovery

Type

Bool

Default

0

Only has an effect in ClickHouse Cloud. For a query that is itself being traced, collect OpenTelemetry spans for the stateless-worker discovery-service requests it makes to provision (lease) workers.
The spans are named `StatelessWorkerDiscovery.<action>` and carry the attributes `clickhouse.discovery.action` and `clickhouse.discovery.status`.
