deepeval-otel
Skill này làm gì
Gửi dữ liệu trace về hành vi từ một ứng dụng AI tới bảng giám sát của Confident AI, dùng các công cụ OpenTelemetry chuẩn. Dành cho lập trình viên xây dựng agent AI, chatbot hoặc ứng dụng truy xuất và muốn xem chúng đang làm gì.
Khi nào nên dùng
- ✓Khi bạn muốn xem từng bước chạy của một agent AI trên bảng điều khiển.
- ✓Khi bạn muốn gửi dữ liệu trace từ một pipeline RAG tới Confident AI.
- ✓Khi bạn cần thiết lập một bộ xuất OpenTelemetry cho một ứng dụng LLM.
Liên kết skill
https://github.com/confident-ai/deepeval/blob/main/docs/public/.well-known/agent-skills/deepeval-otel/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Thiết lập tracing OpenTelemetry cho chatbot RAG của tôi để các bước của nó hiện trên Confident AI.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill trỏ một bộ xuất OpenTelemetry chuẩn tới endpoint của Confident AI và thiết lập các thuộc tính mà bảng điều khiển đọc ở mỗi span AI. Nó chỉ bao phủ phần AI của ứng dụng, như các lệnh gọi mô hình, truy xuất và sử dụng công cụ.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
DeepEval 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:
Câu hỏi thường gặp
Tôi có cần gói deepeval không?
Không. Nó hoạt động với bất kỳ SDK OpenTelemetry nào có thể gửi trace OTLP.
Tôi có nên trace cả máy chủ web không?
Không. Chỉ nên trace các thành phần AI như lệnh gọi mô hình, truy xuất, công cụ và các bước của agent.
Nó khác gì với tính năng tracing của DeepEval?
Đây là xuất OpenTelemetry trung lập với nhà cung cấp, còn tracing của DeepEval dùng SDK và các tích hợp riêng của nó.
Chi tiết
Mô tả gốc của tác giả
Export raw OpenTelemetry traces from an AI application to Confident AI's Observatory. TRIGGER when the user wants to send OpenTelemetry or OTLP traces/spans from an LLM app, agent, RAG pipeline, or chatbot to Confident AI; configure the Confident AI OTLP endpoint; set confident.span.* or confident.trace.* attributes; export AI-app traces without the deepeval Python package; wire an OTLPSpanExporter, OpenTelemetry Collector, or vendor-neutral OTel SDK to Confident AI; or pick the US vs EU OTLP endpoint. Language-agnostic: the mechanism is OTLP attribute keys plus an exporter endpoint. DO NOT TR
repo: confident-ai/deepeval
Độ phổ biến
- Sao GitHub
- 19k
- Vị trí xếp hạng
- #10480
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
deepeval-tracing
19kGiúp agent của bạn thêm tracing DeepEval vào một ứng dụng AI, để mỗi lệnh gọi mô hình, bước truy xuất và sử dụng công cụ đều hiện trên Confident AI.
deepeval
19kGiúp agent của bạn xây dựng một vòng đánh giá cho ứng dụng AI, với bộ kiểm thử có thể chạy lại, tập dữ liệu và kết quả cho thấy cần cải thiện ở đâu.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.