Skip to content

The flow of a traced request

A trace follows a request across services, with a shared trace ID and one span per hop.

sequenceDiagram
  participant U as User
  participant GW as Gateway
  participant Auth as Auth
  participant DB as Database
  participant Cache as Cache
  U->>GW: GET /api/user
  GW->>Auth: validate token
  Auth-->>GW: ok
  GW->>Cache: get user:42
  Cache-->>GW: miss
  GW->>DB: SELECT user 42
  DB-->>GW: row
  GW-->>U: 200