← [ ABORT TO HUD ]
SEQ. 1

OTel Tracing & Semantic Guardrails

📊 Observability, Evals & Guardrail Harnesses20 min150 BASE XP⌨ HANDS-ON LAB

Production Telemetry for Agent Workflows

Unlike traditional web services that measure HTTP status codes, generative AI applications require semantic observability: tracking token counts, prompt drift, guardrail interventions, and reasoning trajectories.

OpenInference Semantic Conventions

By standardizing on OpenTelemetry (OTel) with OpenInference attributes, you can trace LLM spans across distributed microservices:

  • llm.model_name: exact weights version.
  • llm.token_count.prompt vs llm.token_count.completion: token accounting.
  • llm.input_messages and llm.output_messages: full conversational audits.
  • guardrail.action: triggered policy rules (e.g., PII masking, jailbreak block).
⌨ HANDS-ON LABInspect OpenInference Spans & Guardrails
⭐ +175 XP

Trace an LLM execution span with OpenInference attributes and trigger a safety guardrail intervention.

1Export active OpenTelemetry trace for current inference request.
2Simulate a prompt injection attack and verify guardrail block.
lab-sandbox — simulated environment
INFINITY LAB SANDBOX v2.6 — simulated shell
Type the command for the current objective. Helpers: "hint", "solution", "clear".
$
OBJECTIVE 1 / 2 — type "hint" if stuck
SYNAPSE VERIFICATION
QUERY 1 // 1
Which open standard is widely adopted for tracing LLM execution spans across distributed systems?
Windows Event Viewer
Syslog only
OpenTelemetry (OTel) with OpenInference semantic conventions
Simple print() statements