---
title: "Faster root cause for slow traces with ClickStack Event Deltas"
description: "ClickStack's Event Deltas compare a user-selected region of slow spans on a duration-over-time heatmap against the remaining inlier spans, issuing two queries and sampling both sets to surface attribute values disproportionately present in the outliers."
url: "https://swe.quest/articles/faster-root-cause-for-slow-traces-with-clickstack-event-deltas-a6101b03bbd87110"
canonical: "https://clickhouse.com/blog/faster-root-cause-for-slow-traces-with-clickstack-event-deltas"
source: "ClickHouse"
published: "2025-11-03"
difficulty: "medium"
kind: "How-to"
reading_minutes: 9
tags: ["observability","debugging","performance"]
---

# Faster root cause for slow traces with ClickStack Event Deltas

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2025-11-03, 9 min read, How-to. Original: [https://clickhouse.com/blog/faster-root-cause-for-slow-traces-with-clickstack-event-deltas](https://clickhouse.com/blog/faster-root-cause-for-slow-traces-with-clickstack-event-deltas)

## Summary

ClickStack's Event Deltas compare a user-selected region of slow spans on a duration-over-time heatmap against the remaining inlier spans, issuing two queries and sampling both sets to surface attribute values disproportionately present in the outliers. In the OpenTelemetry demo this pinpoints Visa card type as correlated with slow payment spans. It works best on a single service, with a clean separation between fast and slow spans and enough samples in both groups. A recent update allows custom y-axis expressions, such as casting db.response\_time\_ms to UInt64, and aggregate color-intensity metrics, which isolated slow getPackageRanking queries in ClickPy.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [Debugging](https://swe.quest/tags/debugging.md) (Engineering practices)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- distributed tracing spans ([easy posts on Observability](https://swe.quest/tags/observability.md?difficulty=easy))
- OpenTelemetry basics ([easy posts on Observability](https://swe.quest/tags/observability.md?difficulty=easy))

## Keywords

ClickStack, HyperDX, ClickHouse, Event Deltas, OpenTelemetry, ClickPy

## Related posts

- [What's new in ClickStack - March 2026](https://swe.quest/articles/what-s-new-in-clickstack-march-2026-6679d9e481e7bb58.md): ClickHouse · 2026-04-14 · Medium · 12 min read · Observability, Analytics & OLAP, SQL
  ClickStack's March 2026 update reworks Event Deltas for root-cause analysis.
- [Whats new in ClickStack - June + July](https://swe.quest/articles/whats-new-in-clickstack-june-july-1186a53145598aa7.md): ClickHouse · 2026-08-10 · Medium · 16 min read · Observability, Analytics & OLAP
  ClickStack's June–July update centers on traces: per-service colors in the waterfall, fixed-pixel minimum span widths, a minimap for navigating long traces, and display of OpenTelemetry span links.
- [What's new in ClickStack. October '25.](https://swe.quest/articles/what-s-new-in-clickstack-october-25-4616c6cec69bb526.md): ClickHouse · 2025-11-06 · Medium · 7 min read · Observability, Analytics & OLAP, Performance engineering
  ClickStack's October 2025 release brings alerting to ClickHouse Cloud, with Slack, PagerDuty and webhook integrations and both search-based and chart-based alerts.
- [Using Event Patterns in ClickStack to accelerate observability analysis](https://swe.quest/articles/using-event-patterns-in-clickstack-to-accelerate-observability-analysis-7a0fbc615de3ddd6.md): ClickHouse · 2025-11-26 · Medium · 9 min read · Observability, Analytics & OLAP, Algorithms
  ClickStack clusters logs and traces into event patterns at query time using the Drain3 template-mining algorithm, which runs in the browser via Pyodide (Python compiled to WebAssembly).
- [What's new in ClickStack - April 2026](https://swe.quest/articles/what-s-new-in-clickstack-april-2026-8ecf13fb74019726.md): ClickHouse · 2026-05-19 · Medium · 13 min read · Observability, Analytics & OLAP, SQL, Performance engineering
  ClickStack's April 2026 release adds alerts driven by arbitrary ClickHouse SQL, so rolling baselines and standard-deviation anomaly checks can be written with window functions and fire when the query returns 1.

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)
