---
title: "Tracing Notifications"
description: "Slack models every notification as its own distributed trace, using the notification_id as the trace_id and span links back to the sender's message trace, so notification flows can be sampled at 100% while ordinary backend requests stay at 1%."
url: "https://swe.quest/articles/tracing-notifications-050fff7612252fe6"
canonical: "https://slack.engineering/tracing-notifications/"
source: "Slack Engineering"
published: "2023-04-04"
difficulty: "medium"
kind: "Case study"
reading_minutes: 10
tags: ["observability","communications","distributed-systems","analytics"]
---

# Tracing Notifications

A post on [Slack Engineering](https://swe.quest/sources/slack.md), published 2023-04-04, 10 min read, Case study. Original: [https://slack.engineering/tracing-notifications/](https://slack.engineering/tracing-notifications/)

## Summary

Slack models every notification as its own distributed trace, using the notification\_id as the trace\_id and span links back to the sender's message trace, so notification flows can be sampled at 100% while ordinary backend requests stay at 1%. A shared span spec (trigger, notify, sent, received, opened, read in app) gives backend services and iOS, Android, Desktop and web clients one data format with built-in sessionization and SpanID-based dedup. That design depends on SlackTrace decoupling trace context propagation from request context. The traces feed ElasticSearch/Grafana and the data warehouse, cutting customer-experience triage time for notification tickets by 30% and doubling as the source for product funnel analytics.

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)
- [Communications](https://swe.quest/tags/communications.md) (Domains)
- [Distributed systems](https://swe.quest/tags/distributed-systems.md) (Distributed systems)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)

## Prerequisites

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

## Keywords

SlackTrace, OpenTelemetry, span links, Grafana, Elasticsearch, Slack notifications

## Related posts

- [Logs, Metrics, and Traces: What Does Each Signal Tell You?](https://swe.quest/articles/logs-metrics-and-traces-what-does-each-signal-tell-you-3a828a88ec5fbd9a.md): Railway · 2025-11-07 · Easy · 8 min read · Observability, Incidents & postmortems
  Logs, metrics and traces answer different questions: metrics show when behaviour changed, traces show where in the service graph a request slowed or failed, and logs explain why.
- [Observability as a superpower](https://swe.quest/articles/observability-as-a-superpower-5609b41c95a2309f.md): incident.io · 2024-11-04 · Medium · 8 min read · Observability, Go, Debugging, Incidents & postmortems
  Distributed tracing with OpenTelemetry lets incident.io engineers spot bugs before customers report them, by showing each request's route as a tree of timed spans that exposes slow steps, N+1 queries and duplicate calls.
- [Zero-config Debugging with Deno and OpenTelemetry](https://swe.quest/articles/zero-config-debugging-with-deno-and-opentelemetry-84e6e1786536c301.md): Deno · 2025-04-09 · Medium · 9 min read · Observability, Debugging, Runtimes & VMs, TypeScript
  Deno's built-in OpenTelemetry support (enabled with --unstable-otel) automatically correlates console.log output with trace IDs, creates spans for incoming and outgoing HTTP requests, propagates W3C tracecontext headers across services, and records request-count and latency metrics by status code, all without code changes.
- [Client Tracing: Understanding Mobile and Desktop Application Performance at Scale](https://swe.quest/articles/client-tracing-understanding-mobile-and-desktop-application-performance-at-scale-21a4a4d3c10c520b.md): Slack Engineering · 2021-03-24 · Medium · 17 min read · Observability, Mobile, Performance engineering, SQLite
  Slack extended its backend distributed tracing to iOS, Android and JavaScript clients so engineers could pinpoint why client actions like channel switches are slow.
- [Making Rust observability reliable at scale with OpenTelemetry](https://swe.quest/articles/making-rust-observability-reliable-at-scale-with-opentelemetry-93edfa18e478ae5a.md): Datadog Engineering · 2026-09-01 · Medium · 10 min read · Observability, Rust, Open source
  Datadog built dd-trace-rs, an opinionated Rust tracer on top of the OpenTelemetry Rust SDK, to fix fragmented traces, inconsistent sampling and context loss across Rust services.

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)
