What are span kinds and why do they matter?

IntermediateConceptTracing & OpenTelemetry
Answer

Span kind tells the backend what role a span plays in a call:

  • SERVER: handles an inbound synchronous request.
  • CLIENT: makes an outbound synchronous request.
  • PRODUCER: sends a message to a queue (may finish before the consumer starts).
  • CONSUMER: processes a message.
  • INTERNAL: work that does not cross a process boundary.

Backends use kind to build service graphs and RED metrics: a CLIENT span in orders paired with a SERVER span in payments becomes an edge orders → payments. Wrong kinds (everything INTERNAL) give you a trace waterfall but an empty service map and missing span metrics.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Tracing & OpenTelemetry