---
title: "Observability as a superpower"
description: "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."
url: "https://swe.quest/articles/observability-as-a-superpower-5609b41c95a2309f"
canonical: "https://incident.io/blog/observability-as-a-superpower"
source: "incident.io"
published: "2024-11-04"
difficulty: "medium"
kind: "How-to"
reading_minutes: 8
tags: ["observability","go","debugging","incident-response"]
---

# Observability as a superpower

A post on [incident.io](https://swe.quest/sources/incident-io.md), published 2024-11-04, 8 min read, How-to. Original: [https://incident.io/blog/observability-as-a-superpower](https://incident.io/blog/observability-as-a-superpower)

## Summary

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. The team gets spans for free from instrumented database and HTTP clients, follows a consistent span naming convention, and tags spans with metadata such as table names, row counts, query fingerprints and org IDs. In Go, an internal library plus a defer-with-named-return pattern records errors on spans automatically. Traces go to Cloud Trace locally and to Grafana Tempo in production, where TraceQL queries power debugging. Trace URLs are threaded into logs, Sentry errors and response headers, with a caution that span and attribute volume drives storage cost.

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)
- [Go](https://swe.quest/tags/go.md) (Languages)
- [Debugging](https://swe.quest/tags/debugging.md) (Engineering practices)
- [Incidents & postmortems](https://swe.quest/tags/incident-response.md) (Reliability & operations)

## Prerequisites

- Go context and defer ([easy posts on Go](https://swe.quest/tags/go.md?difficulty=easy))
- basic observability concepts ([easy posts on Observability](https://swe.quest/tags/observability.md?difficulty=easy))

## Keywords

OpenTelemetry, Grafana Tempo, TraceQL, Google Cloud Trace, Sentry, Prometheus

## 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.
- [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.
- [Logs and tracing: not just for production, local development too](https://swe.quest/articles/logs-and-tracing-not-just-for-production-local-development-too-cd937ebe394aa48b.md): incident.io · 2021-11-11 · Medium · 5 min read · Observability, Go, Developer productivity, Cloud platforms
  A small team wired its Go app to Google Cloud Trace via the OpenCensus Stackdriver exporter, then teed zap logs to both STDERR and Cloud Logging with trace and span IDs attached, so logs appear inline with traces.
- [Why (and how) GitHub is adopting OpenTelemetry](https://swe.quest/articles/why-and-how-github-is-adopting-opentelemetry-0b6fb60f67930892.md): GitHub Engineering · 2021-05-26 · Medium · 4 min read · Observability, Ruby
  GitHub is standardizing on OpenTelemetry to replace a patchwork of statsd dialects, syslog-format logs and OpenTracing traces that made cross-signal correlation hard and forced repeated instrumentation work.
- [Tracing Notifications](https://swe.quest/articles/tracing-notifications-050fff7612252fe6.md): Slack Engineering · 2023-04-04 · Medium · 10 min read · Observability, Communications, Distributed systems, Analytics & OLAP
  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%.

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)
