OTEL 的底层完整流程

Instrumentation → Context Propagation → Span Creation → Sampling 
→ Batching → Exporting/OTLP → Collector/Alloy Processing 
→ Backends (Tempo/Loki/Metrics DB) → Query (Grafana)

Instrumentation(插桩)

分两类:

✔ 手动(Tracer.Start → Span.End)

✔ 自动(Hook http/grpc/sql/kafka/redis 等)

做的事情:

Context Propagation(上下文传播)

传播内容包括: