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.
More on Tracing & OpenTelemetry
What is distributed tracing, and what are a trace, a span and a span context?BeginnerWhat fields does an OpenTelemetry span carry?BeginnerWhat are span kinds and why do they matter?IntermediateWhat does the W3C `traceparent` header look like?IntermediateWhat is baggage, and how is it different from span attributes?IntermediateWhat is OpenTelemetry and what are its main parts?Beginner