Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_llm-observability

LLM Observability and Tracing (traces, metrics, sampled judge)

13 COMPONENTS · 17 FLOWS · UPDATED 2026-11-21
GITHUB README / PR PREVIEW CARD
[![LLM Observability and Tracing (traces, metrics, sampled judge) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_llm-observability/opengraph-image)](https://archos.sageideas.dev/d/dgm_llm-observability)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_llm-observability)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_llm-observability" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="LLM Observability and Tracing (traces, metrics, sampled judge) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0[("User")]
  model_1["Inference server"]
  gw_2["API gateway"]
  app_3["LLM app service"]
  registry_4[("Prompt registry")]
  tracing_5[("Distributed tracing")]
  eventlog_6[("Event log")]
  dlq_7[("Dead-letter queue (DLQ)")]
  judge_8[("LLM-as-a-judge")]
  tsdb_9[("Time-series database (TSDB)")]
  slo_10[("SLI, SLO and SLA")]
  alerting_11[("Alerting")]
  capacity_12["Capacity Estimate"]
  client_0 -->|"1. Calls with JWT · HTTPS"| gw_2
  gw_2 -->|"2. Forwards · HTTP/2"| app_3
  app_3 -->|"3. Calls model · HTTPS"| model_1
  model_1 -->|"4. Reply · HTTPS"| app_3
  app_3 -->|"5. Answer · HTTP/2"| gw_2
  gw_2 -->|"6. Answer · HTTPS"| client_0
  app_3 -->|"Sends spans · OTLP"| tracing_5
  app_3 -->|"Exports (OTLP) · OTLP"| tsdb_9
  app_3 -->|"Samples 5% · TCP"| eventlog_6
  eventlog_6 -->|"Delivers sample · TCP"| judge_8
  judge_8 -->|"Grades answer · HTTPS"| model_1
  judge_8 -->|"Scores (OTLP) · OTLP"| tsdb_9
  tsdb_9 -->|"Feeds SLIs · HTTP"| slo_10
  slo_10 -->|"Burn alert · HTTP"| alerting_11
  eventlog_6 -->|"Parks · TCP"| dlq_7
  registry_4 -->|"Prompt version · HTTP/2"| app_3
  registry_4 -->|"Runs eval set · HTTP/2"| judge_8

COMPONENT STACK (12)

  • UserSTATEFUL
    Asks questions from an untrusted network
  • Inference serverSTATELESS
    Hosted model API outside our boundary
  • API gatewaySTATELESS
    Checks the JWT, then forwards
  • LLM app serviceSTATELESS
    Calls the model, emits traces and metrics
  • Prompt registrySTATEFUL
    Versioned prompts and settings
  • Distributed tracingSTATEFUL
    Stores one trace per request
  • Event logSTATEFUL
    Holds sampled requests for grading
  • Dead-letter queue (DLQ)STATEFUL
    Parks samples that fail grading
  • LLM-as-a-judgeSTATEFUL
    Grades sampled answers against a rubric
  • Time-series database (TSDB)STATEFUL
    Stores latency, errors, tokens, scores
  • SLI, SLO and SLASTATEFUL
    Tracks error budget burn
  • AlertingSTATEFUL
    Pages on fast budget burn

REQUEST & DATA FLOW (17)

  1. User → API gateway (Calls with JWT)[HTTPS]
  2. API gateway → LLM app service (Forwards)[HTTP/2]
  3. LLM app service → Inference server (Calls model)[HTTPS]
  4. Inference server → LLM app service (Reply)[HTTPS]
  5. LLM app service → API gateway (Answer)[HTTP/2]
  6. API gateway → User (Answer)[HTTPS]
  7. LLM app service → Distributed tracing (Sends spans)[OTLP]
  8. LLM app service → Time-series database (TSDB) (Exports (OTLP))[OTLP]
  9. LLM app service → Event log (Samples 5%)[TCP]
  10. Event log → LLM-as-a-judge (Delivers sample)[TCP]
  11. LLM-as-a-judge → Inference server (Grades answer)[HTTPS]
  12. LLM-as-a-judge → Time-series database (TSDB) (Scores (OTLP))[OTLP]
  13. Time-series database (TSDB) → SLI, SLO and SLA (Feeds SLIs)[HTTP]
  14. SLI, SLO and SLA → Alerting (Burn alert)[HTTP]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →