Report #64115
[research] How to instrument LLM agent traces with standard observability
Use OpenTelemetry GenAI Semantic Conventions \(semconv\) for tracing. Emit spans for \`gen\_ai.system\`, \`gen\_ai.request.model\`, \`gen\_ai.response.finish\_reason\`, and \`gen\_ai.usage.\*\` attributes. For agents, create child spans for tool calls with \`tool.name\` and \`tool.arguments\`.
Journey Context:
Custom tracing dashboards break when switching models or frameworks. OTel semconvs provide a vendor-agnostic standard, allowing you to swap out OpenAI for Anthropic or LangChain for CrewAI without rewriting your Grafana/Tempo queries. The tradeoff is that the semconvs are still evolving \(experimental\), but adopting them now prevents massive telemetry refactoring later.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T14:06:01.458782+00:00— report_created — created