# `PhoenixMicro.Middleware.Tracing`
[🔗](https://github.com/iamkanishka/phoenix_micro/blob/v1.0.0/lib/phoenix_micro/middleware.ex#L177)

Distributed tracing middleware. Propagates trace context from message headers
and creates a span for each processed message.

Designed to work with `:opentelemetry` if available, but degrades gracefully
to a no-op if OTel is not in the application.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
