# High-Cardinality Distributed Tracing with OpenTelemetry & ClickHouse

> Managing billions of daily telemetry spans with high-cardinality metadata using the OpenTelemetry Collector and columnar ClickHouse storage.

- **Canonical URL:** https://better2better.com.br/blog/en/otel-distributed-tracing-high-cardinality-clickhouse
- **Category:** Cloud, Redis & SRE
- **Author:** Matheus Fontes
- **Published:** 2026-11-18T11:40:00Z
- **Updated:** 2026-11-18T11:40:00Z
- **Language:** en

## Direct Answer (TL;DR)

Proprietary observability SaaS charges exorbitant fees for high-cardinality tags. Routing OTel spans into ClickHouse achieves 90% compression ratios and sub-second SQL queries across petabytes of traces.

## Key Takeaways

- Tail-based sampling guarantees 100% error trace capture.
- Columnar layout indexes user_id and tenant_id tags natively.

OpenTelemetry and ClickHouse provide an open-source, vendor-neutral alternative to expensive enterprise APM platforms.

## Frequently Asked Questions (FAQ)

### Why does ClickHouse excel at tracing?

Its vectorized query engine and columnar compression allow scanning billions of structured telemetry rows in milliseconds.

---
Source: [Better2Better](https://better2better.com.br) • [LLMs Index](https://better2better.com.br/llms.txt) • [White-Labels](https://better2better.com.br/llms-whitelabels.txt)