---
title: "From OTel to Rotel: Petabyte-scale tracing with 4x greater throughput"
description: "Rotel, a Rust OpenTelemetry collector, sustained 3.7M trace spans/sec (462K per core) on an 8-vCPU gateway writing through Kafka into ClickHouse, versus 1.1M spans/sec (137K per core) for the OTel Collector on the same hardware."
url: "https://swe.quest/articles/from-otel-to-rotel-petabyte-scale-tracing-with-4x-greater-throughput-0983bad6d6f660b5"
canonical: "https://clickhouse.com/blog/otel-to-rotel-petabyte-scaling-tracing-4x-greater-throughput"
source: "ClickHouse"
published: "2025-11-25"
difficulty: "hard"
kind: "Case study"
reading_minutes: 25
tags: ["observability","performance","rust","stream-processing","analytics"]
---

# From OTel to Rotel: Petabyte-scale tracing with 4x greater throughput

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2025-11-25, 25 min read, Case study. Original: [https://clickhouse.com/blog/otel-to-rotel-petabyte-scaling-tracing-4x-greater-throughput](https://clickhouse.com/blog/otel-to-rotel-petabyte-scaling-tracing-4x-greater-throughput)

## Summary

Rotel, a Rust OpenTelemetry collector, sustained 3.7M trace spans/sec (462K per core) on an 8-vCPU gateway writing through Kafka into ClickHouse, versus 1.1M spans/sec (137K per core) for the OTel Collector on the same hardware. The gains came from encoding ClickHouse JSON columns natively in RowBinary instead of stringified JSON, which cut ClickHouse CPU about 10%. Further gains came from fixing allocator lock contention found with perf analysis of Tokio task management, moving CPU-bound unmarshaling off a single sequential receiver task, and using improved LZ4 compression. The benchmark used the Null table engine to remove disk I/O and detected saturation through memory growth and Kafka consumer lag.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Rust](https://swe.quest/tags/rust.md) (Languages)
- [Stream processing](https://swe.quest/tags/stream-processing.md) (Data & databases)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)

## Prerequisites

- OpenTelemetry collectors ([easy posts on Observability](https://swe.quest/tags/observability.md?difficulty=easy))
- Kafka consumers ([easy posts on Queues & messaging](https://swe.quest/tags/messaging.md?difficulty=easy))
- Rust async with Tokio ([easy posts on Rust](https://swe.quest/tags/rust.md?difficulty=easy))
- ClickHouse ingestion ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))

## Keywords

Rotel, OpenTelemetry Collector, ClickHouse, Kafka, Tokio, RowBinary, LZ4, clickhouse-rs

## Related posts

- [How we made ClickStack 5x faster for ClickHouse observability](https://swe.quest/articles/how-we-made-clickstack-5x-faster-for-clickhouse-observability-ed934241e77977aa.md): ClickHouse · 2026-07-02 · Hard · 22 min read · Observability, Analytics & OLAP, Performance engineering, Query engines, Storage engines
  ClickStack's OpenTelemetry logs schema, inherited from the ClickHouse exporter for the OTel Collector, was reworked through a benchmark-driven process.
- [How we used ClickHouse to store OpenTelemetry Traces and up our Observability Game](https://swe.quest/articles/how-we-used-clickhouse-to-store-opentelemetry-traces-and-up-our-observability-b78dc8bc485a8f13.md): ClickHouse · 2023-04-14 · Medium · 13 min read · Observability, Analytics & OLAP, SQL, Cost optimization
  Resmo stores over 300 million unsampled OpenTelemetry spans per day in a self-hosted ClickHouse node, after dropping S3/Parquet/Athena because of its 2-3 second query startup and delayed data.
- [How Mercado Libre rebuilt its observability platform on ClickHouse Cloud with 75x faster trace queries](https://swe.quest/articles/how-mercado-libre-rebuilt-its-observability-platform-on-clickhouse-cloud-with-a3245c05609a41cc.md): ClickHouse · 2026-08-04 · Medium · 8 min read · Observability, Analytics & OLAP, Scaling, Performance engineering
  Mercado Libre moved the storage layer of its OpenTelemetry-based tracing platform, O11y events, to ClickHouse Cloud.
- [Observability At Scale — Every Byte Counts](https://swe.quest/articles/observability-at-scale-every-byte-counts-3491ffe2c3088798.md): Wise Engineering · 2026-10-20 · Medium · 14 min read · Observability, Cost optimization, Performance engineering, Kubernetes
  Five observability changes at Wise cut monthly spend by 40%.
- [Building an Observability Solution with ClickHouse - Part 2 - Traces](https://swe.quest/articles/building-an-observability-solution-with-clickhouse-part-2-traces-1a2db2608573ffa7.md): ClickHouse · 2023-03-29 · Medium · 29 min read · Observability, Analytics & OLAP, Microservices
  Trace data from OpenTelemetry-instrumented services can be stored and queried in ClickHouse, treating spans as rows in a single analytics table and visualizing them in Grafana.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
