What is continuous profiling and how does it complement tracing?

IntermediateConceptTracing & OpenTelemetry
Answer

Continuous profiling samples stack traces (CPU, memory allocations, locks, goroutines) from production processes all the time at low overhead, and stores them as flame graphs over time. Tools: Grafana Pyroscope, Parca, Datadog and Elastic profilers; OpenTelemetry is adding profiles as a fourth signal.

Tracing says "the resize-image span takes 900 ms"; profiling says "70% of that CPU is in png.Encode". With span-profile linking (e.g. Pyroscope + Tempo), you jump from a slow span straight to the flame graph for that span.

# Go: expose pprof and let the agent scrape it
import _ "net/http/pprof"

eBPF-based profilers need no code changes at all.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Tracing & OpenTelemetry