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
[](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_8COMPONENT STACK (12)
- UserSTATEFULAsks questions from an untrusted network
- Inference serverSTATELESSHosted model API outside our boundary
- API gatewaySTATELESSChecks the JWT, then forwards
- LLM app serviceSTATELESSCalls the model, emits traces and metrics
- Prompt registrySTATEFULVersioned prompts and settings
- Distributed tracingSTATEFULStores one trace per request
- Event logSTATEFULHolds sampled requests for grading
- Dead-letter queue (DLQ)STATEFULParks samples that fail grading
- LLM-as-a-judgeSTATEFULGrades sampled answers against a rubric
- Time-series database (TSDB)STATEFULStores latency, errors, tokens, scores
- SLI, SLO and SLASTATEFULTracks error budget burn
- AlertingSTATEFULPages on fast budget burn
REQUEST & DATA FLOW (17)
- User → API gateway (Calls with JWT)[HTTPS]
- API gateway → LLM app service (Forwards)[HTTP/2]
- LLM app service → Inference server (Calls model)[HTTPS]
- Inference server → LLM app service (Reply)[HTTPS]
- LLM app service → API gateway (Answer)[HTTP/2]
- API gateway → User (Answer)[HTTPS]
- LLM app service → Distributed tracing (Sends spans)[OTLP]
- LLM app service → Time-series database (TSDB) (Exports (OTLP))[OTLP]
- LLM app service → Event log (Samples 5%)[TCP]
- Event log → LLM-as-a-judge (Delivers sample)[TCP]
- LLM-as-a-judge → Inference server (Grades answer)[HTTPS]
- LLM-as-a-judge → Time-series database (TSDB) (Scores (OTLP))[OTLP]
- Time-series database (TSDB) → SLI, SLO and SLA (Feeds SLIs)[HTTP]
- SLI, SLO and SLA → Alerting (Burn alert)[HTTP]