← [ ABORT TO HUD ]
SEQ. 1
OTel Tracing & Semantic Guardrails
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.promptvsllm.token_count.completion: token accounting.llm.input_messagesandllm.output_messages: full conversational audits.guardrail.action: triggered policy rules (e.g., PII masking, jailbreak block).
⌨ HANDS-ON LABInspect OpenInference Spans & Guardrails
⭐ +175 XPTrace 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.
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