Skip to content
StackDecode
System Design
19. AI System Design and LLM InfrastructureAnimated

LLM Observability

Seeing what an LLM application does.

The idea

Log prompts, responses, latency, token cost and traces of each chain step.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

AppTrace collectorPrompts + respo…Cost and latencyQuality scoresDashboard
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

Log each call: prompt, response, tokens, latency, tool calls.

step:
1/4
at:
App
1/8

The green dot is a request moving through the system.

Step by step

  1. 1Trace each call
  2. 2Record tokens and cost
  3. 3Store prompts and outputs
  4. 4Review failures

Where it is used

Debugging and cost control.

Watch out for

Logs may contain private data.

Related