Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_agent-trace-and-telemetry-schema

Agent trace and telemetry schema (spans, metrics, redaction, sampled evaluation)

13 COMPONENTS · 15 FLOWS · UPDATED 2026-11-21
GITHUB README / PR PREVIEW CARD
[![Agent trace and telemetry schema (spans, metrics, redaction, sampled evaluation) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_agent-trace-and-telemetry-schema/opengraph-image)](https://archos.sageideas.dev/d/dgm_agent-trace-and-telemetry-schema)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_agent-trace-and-telemetry-schema)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_agent-trace-and-telemetry-schema" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Agent trace and telemetry schema (spans, metrics, redaction, sampled evaluation) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0[("Web Client")]
  alerting_1[("Alerting")]
  orch_2[("Agent orchestration runtime")]
  toolgw_3["Function calling"]
  pdp_4["Policy decision point (PDP)"]
  tsdb_5[("Time-series database (TSDB)")]
  queue_6[("Message queue")]
  worker_7["Competing consumers"]
  dlq_8[("Dead-letter queue (DLQ)")]
  eval_9[("Evaluation service")]
  store_10[("PostgreSQL")]
  secrets_11[("Secrets manager")]
  capacity_12["Capacity Estimate"]
  client_0 -->|"1. Asks with JWT · HTTPS"| orch_2
  orch_2 -->|"2. Calls with trace id · HTTP/2"| toolgw_3
  toolgw_3 -->|"3. Returns result · HTTP/2"| orch_2
  orch_2 -->|"4a. Relays answer · HTTPS"| client_0
  orch_2 -.->|"4b. Publishes spans · TCP"| queue_6
  queue_6 -.->|"5a. Delivers spans · TCP"| worker_7
  queue_6 -.->|"5b. Broker parks spans · TCP"| dlq_8
  worker_7 -.->|"6. Writes redacted · SQL"| store_10
  toolgw_3 -->|"Asks, fails closed · HTTP/2"| pdp_4
  orch_2 -->|"Exports metrics · OTLP"| tsdb_5
  queue_6 -->|"Reports depth · OTLP"| tsdb_5
  dlq_8 -->|"Reports depth · OTLP"| tsdb_5
  tsdb_5 -->|"Notifies · HTTP"| alerting_1
  eval_9 -->|"Reads, writes score · SQL"| store_10
  secrets_11 -->|"Supplies credential · HTTPS"| eval_9

COMPONENT STACK (12)

  • Web ClientSTATEFUL
    Staff member on an untrusted network
  • AlertingSTATEFUL
    On-call pager outside our boundary
  • Agent orchestration runtimeSTATEFUL
    Opens the run span; passes the trace id on
  • Function callingSTATELESS
    Runs tools; returns its span with the result
  • Policy decision point (PDP)STATELESS
    Allows tools per user
  • Time-series database (TSDB)STATEFUL
    Stores latency, tokens, errors
  • Message queueSTATEFUL
    Buffers spans before processing
  • Competing consumersSTATELESS
    Redacts fields and samples spans
  • Dead-letter queue (DLQ)STATEFUL
    Unredacted failed spans, kept 3 days
  • Evaluation serviceSTATEFUL
    Scores a sample of stored traces
  • PostgreSQLSTATEFUL
    Data team store of redacted spans
  • Secrets managerSTATEFUL
    Holds the trace store credential

REQUEST & DATA FLOW (15)

  1. Web Client → Agent orchestration runtime (Asks with JWT)[HTTPS]
  2. Agent orchestration runtime → Function calling (Calls with trace id)[HTTP/2]
  3. Function calling → Agent orchestration runtime (Returns result)[HTTP/2]
  4. Agent orchestration runtime → Web Client (Relays answer)[HTTPS]
  5. Agent orchestration runtime → Message queue (Publishes spans)[TCP]
  6. Message queue → Competing consumers (Delivers spans)[TCP]
  7. Message queue → Dead-letter queue (DLQ) (Broker parks spans)[TCP]
  8. Competing consumers → PostgreSQL (Writes redacted)[SQL]
  9. Function calling → Policy decision point (PDP) (Asks, fails closed)[HTTP/2]
  10. Agent orchestration runtime → Time-series database (TSDB) (Exports metrics)[OTLP]
  11. Message queue → Time-series database (TSDB) (Reports depth)[OTLP]
  12. Dead-letter queue (DLQ) → Time-series database (TSDB) (Reports depth)[OTLP]
  13. Time-series database (TSDB) → Alerting (Notifies)[HTTP]
  14. Evaluation service → PostgreSQL (Reads, writes score)[SQL]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →