City

City

These notes were prepared for a specific workshop talk and tailored to its distinct organizational context. Any deviations from standard frameworks or unbalanced levels of detail reflect the specific constraints, priorities, and technical focus of that session.

Core Principles: Monitoring vs. Observability

The Three Primary Telemetry Signals

Logs

Metrics

Traces

Distributed Context Propagation & W3C Trace Context

Crossing process or network boundaries requires carrying trace context through requests using standards like W3C Trace Context, which replaces legacy proprietary headers (such as Zipkin’s B3 or AWS’s X-Amzn-Trace-Id) with a single vendor-neutral specification.

Structure of W3C Trace Context Headers

The W3C specification defines two main metadata headers:

Context Propagation Mechanics

Propagation involves Injection (serializing active span context into outbound headers) and Extraction (deserializing headers into a new child context).

Signal Correlation & Cost Control

Correlation Mechanics

Managing Cardinality

Sampling Strategies

Retention Windows

OpenTelemetry Architecture

OpenTelemetry (OTel) is an open vendor-agnostic specification and toolchain under the CNCF for generating and exporting telemetry. Note that OpenTelemetry is not a storage backend or visualization UI.

graph TD
    subgraph App["Application Code"]
        API["Open Telemetry API"]
        SDK["Open Telemetry SDK"]
        API --> SDK
    end

    subgraph OTel["Open Telemetry Collector Process"]
        Rec["Receivers"]
        Proc["Processors (Batch, Filter)"]
        Exp["Exporters"]
        Rec --> Proc
        Proc --> Exp
    end

    subgraph OSB["Open-Source Backends"]
        OS_Details["Prometheus, Loki, Tempo"]
    end

    subgraph MCV["Managed Cloud Vendors"]
        MC_Details["Grafana, Datadog, etc."]
    end

    SDK -- "OTLP over gRPC/HTTP" --> Rec
    Exp --> OSB
    Exp --> MCV

Advanced Telemetry Extensions

Reliability Engineering & Incident Operations

Service Level Terminology

Error Budgets & Burn-Rate Alerting

Incident Lifecycle & Incident Reviews

Reference Open-Source Stack Architecture

A standard production-grade stack using native open-source components: