Distributed tracing
W3C trace context flows from the agent through the gateway to the upstream, so one trace shows the whole call.
// 004 / 006Platform · Telemetry
Traces, logs and latency metrics for every tool call, so you can see exactly what each agent did and why.
The problemAgents fail in ways that are hard to see: a slow tool stalls a whole plan, a schema change breaks one call in fifty, and token-heavy tools quietly blow the budget. Without end-to-end visibility you debug from chat transcripts.
With PbjPbj instruments every hop. Each tool call becomes an OpenTelemetry span linked to the agent's session, with latency, errors, payload sizes and cost exported to the backends you already run.
W3C trace context flows from the agent through the gateway to the upstream, so one trace shows the whole call.
RED metrics per tool, server and agent, exposed on /metrics for Prometheus or pushed via OTLP.
JSON logs with trace IDs, redacted arguments and policy decisions, ready for Loki, Elastic or Datadog.
Re-run a captured call against a different server version and diff the outputs before you roll out.
The gateway opens a span for each request and records timing, status and sizes.
Spans are tied to the agent session, caller identity and route decision.
Telemetry ships over OTLP to your collector, or straight to the built-in dashboard.
SLO burn-rate rules fire when a tool's error rate or p95 latency drifts.
Everything is declarative. Check the file into Git, validate it in CI with Pasti Bahagia Jaya config check, and roll it out like any other change.
1telemetry:2 traces:3 exporter: otlp4 endpoint: http://otel-collector:43175 sample_rate: 0.256 metrics:7 prometheus: { path: /metrics }8 logs:9 format: json10 redact: ["*.password", "*.token", "args.email"]Open the agent's session trace and see exactly which tool call timed out and why.
Spot the tools driving load and scale or cache them before they become bottlenecks.
Break down tool usage and payload volume by team, agent and environment.