
DeepEval OpenTelemetry Export
FreeSeamlessly export AI traces to Confident AI's Observatory.
Free · Opens the source repo
What DeepEval OpenTelemetry Export does
The DeepEval OpenTelemetry Export skill allows developers to instrument AI applications, such as LLM apps, agents, RAG pipelines, and chatbots, by exporting raw OpenTelemetry traces directly to Confident AI's Observatory. This skill eliminates the need for the deepeval package, making it compatible with any OTLP-capable OpenTelemetry SDK. The primary functions of this skill are to configure the appropriate Confident AI OTLP endpoint and to set the relevant confident.* attributes that Confident AI requires for effective trace analysis.
This skill is specifically designed for AI applications, focusing on components like agent loops, LLM calls, retrieval mechanisms, and tool invocations. It is essential to ensure that the target application contains these AI elements, as the confident.* attributes are not applicable to non-AI software components. By adhering to this focus, users can ensure that the data sent to Confident AI is meaningful and relevant for monitoring and evaluating AI behavior.
To use this skill, developers must have a Confident AI account and an OpenTelemetry SDK for their application’s language. The skill provides a straightforward workflow for setting up the OTLP exporter and configuring the necessary attributes, ensuring that only AI-related spans are exported. This targeted approach helps maintain the integrity of the data being analyzed and prevents clutter from unrelated spans.
Overall, the DeepEval OpenTelemetry Export skill is an effective tool for developers looking to enhance their AI applications with robust monitoring capabilities, enabling them to gain insights into their AI components through Confident AI's Observatory.
When to use it
Use this skill when you need to export traces from AI applications to Confident AI's Observatory without relying on the `deepeval` package.
When not to use it
This skill is not suitable for non-AI software instrumentation or for building evaluation suites with the `deepeval` skill.
What you can build with it
Integrating AI Monitoring
Use this skill to set up OpenTelemetry tracing for your AI chatbot, ensuring you can monitor its performance in Confident AI.
Exporting AI Application Traces
When developing a new LLM application, leverage this skill to export traces directly to Confident AI for analysis.
Optimizing RAG Pipelines
Instrument your retrieval-augmented generation pipeline with this skill to gain insights into its AI components and improve efficiency.
How to install DeepEval OpenTelemetry Export
View source1. Install with the skills CLI
npx skills add confident-ai/deepeval/deepeval-otel --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by confident-aiDeepEval OpenTelemetry Export
Use this skill to instrument an AI application — an LLM app, agent, RAG
pipeline, or chatbot — with raw OpenTelemetry so its traces land in
Confident AI's Observatory. No deepeval package is needed — it works with
any OTLP-capable OpenTelemetry SDK. The job is exactly two things: export to
the correct Confident AI OTLP endpoint, and set the confident.* attributes
Confident AI reads off each span.
Scope: AI Applications Only
This skill instruments AI applications only. The confident.* attributes
and span types — agent, llm, retriever, tool — describe AI components,
and Confident AI's Observatory is built to evaluate and monitor AI behavior.
Instrument only the AI parts of the system: agent loops and planning, LLM
calls, retrieval / vector search, and tool calls. Do not apply confident.*
attributes to non-AI software (web servers, CRUD backends, database layers,
infrastructure) or to non-AI spans inside an otherwise-AI app — that data does
not belong in Confident AI and will not render meaningfully. If the target has
no LLM, agent, retrieval, or tool-calling component, this skill does not apply.
When to Use vs the deepeval Skill
Use this skill for vendor-neutral OTLP export to Confident AI — pointing an
OpenTelemetry exporter at Confident AI and setting confident.* attributes.
Use the deepeval skill when the user wants to build a Python pytest eval
suite, generate datasets or goldens, write metrics, run deepeval test run, or
instrument with the deepeval SDK's @observe decorator. The two skills are
complementary, not alternatives.
Prerequisites
- A Confident AI account and a
CONFIDENT_API_KEY. - An OpenTelemetry SDK for the application's language. For Python:
opentelemetry-sdkandopentelemetry-exporter-otlp-proto-http. - The Confident AI OTLP endpoint accepts HTTP only — never gRPC.
How It Works
Confident AI exposes an OTLP/HTTP traces endpoint. Point any OpenTelemetry span
exporter at it with the x-confident-api-key header. Confident AI's exporter
then reads confident.* attributes off each span to build the trace and span
structure. Parent/child nesting comes from native OpenTelemetry span context,
not from any attribute.
Workflow
- Confirm the target is an AI application (it has LLM calls, an agent loop,
retrieval, or tool calls). If it has none of these, stop — this skill does
not apply. Then inspect for an existing OpenTelemetry setup (a
TracerProvider, span exporters, or an OpenTelemetry Collector) and prefer repointing what exists over adding a parallel pipeline. - Choose the endpoint from the API key's region prefix. Read
references/endpoint-and-exporter.md. - Wire (or repoint) an OTLP/HTTP span exporter with the
x-confident-api-keyheader. For Python, start fromtemplates/confident_otel_setup.py. - If the process runs other OpenTelemetry instrumentation or an APM agent
(auto-instrumentation for HTTP/DB, Datadog, etc.), isolate the Confident AI
export so only AI spans reach it — a dedicated pipeline or a span filter.
Read "Export Only AI Spans" in
references/endpoint-and-exporter.md. - Set
confident.span.*attributes on spans; setconfident.trace.*for trace-wide fields. Readreferences/span-attributes.mdandreferences/trace-attributes.md. - Honor the OTLP data-type rules: JSON-encode dicts/metadata, use native
arrays for string lists. See the Data-Type Rules in
span-attributes.md. - If the app already emits OpenTelemetry GenAI semantic conventions, read
references/gen-ai-fallbacks.mdbefore adding redundant attributes. - Verify traces appear in the Confident AI Observatory.
Core Principles
- Instrument AI components only — agent, LLM, retriever, and tool spans.
Never apply
confident.*attributes to non-AI software or non-AI spans. - Export only AI spans. If the process has other OpenTelemetry instrumentation or an APM agent, isolate the Confident AI pipeline (a dedicated provider or a span filter) so non-AI spans — HTTP requests, DB queries, infra — are never exported to Confident AI.
- Prefer repointing an existing OTLP exporter over adding a parallel one.
- The
confident.*attribute keys are the entire contract — they are the same in every language, so language choice is irrelevant. - Always use OTLP/HTTP. Confident AI's endpoint does not accept gRPC.
- Honor OTLP data-type rules: attribute values must be primitives or homogeneous primitive lists; JSON-encode dicts and metadata.
- Set
confident.span.typeexplicitly when it is known; rely ongen_ai.*inference only as a fallback. - Never put secrets, credentials, or raw sensitive data into span attributes.
References
| Topic | File |
|---|---|
| Endpoints, region selection, auth, exporter wiring | references/endpoint-and-exporter.md |
Trace-level confident.trace.* attributes | references/trace-attributes.md |
Span-level confident.span.* attributes and data-type rules | references/span-attributes.md |
Standard OTel gen_ai.* fallback behavior | references/gen-ai-fallbacks.md |
Templates
| Purpose | Template |
|---|---|
| Minimal Python OTLP exporter setup + example trace | templates/confident_otel_setup.py |
Frequently asked questions about DeepEval OpenTelemetry Export
Similar skills
WinMD API Search
Easily find and explore Windows desktop APIs.
WebMCPify
Transform any web app into an agent-ready platform.
Phoenix Tracing
Instrument LLM applications with OpenInference tracing.
Foundry Hosted Agent CopilotKit
Guidance for developing agentic web apps on Azure.
Power Automate Foundation
Connect AI agents to Power Automate seamlessly.
Power Automate Flow Builder
Efficiently build and deploy Power Automate flows programmatically.
