ai-tracing-requests

Trace and inspect AI request steps with OpenTelemetry instrumentation and DSPy inspection.

11|1|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/lebsral/DSPy-Programming-not-prompting-LMs-skills --skill ai-tracing-requests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-tracing-requests
Source: https://github.com/lebsral/DSPy-Programming-not-prompting-LMs-skills/tree/main/skills/ai-tracing-requests
Command: npx skills add https://github.com/lebsral/DSPy-Programming-not-prompting-LMs-skills --skill ai-tracing-requests

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

See exactly what happened during a single AI request, enabling precise debugging, auditing, and compliance.

Core Features & Use Cases

  • Per-step tracing to view LM calls, intermediate results, and timings.
  • OpenTelemetry instrumentation for production-grade tracing and back-end integration.
  • JSONL trace export and trace viewer setup for audit trails and post-mortem analysis.
  • DSPy inspection integration to easily inspect and reproduce a failing request.
  • Provides structured guidance for tracing in pipelines and debugging complex flows.

Quick Start

Run a trace on a specific request to view per-step LM calls and latencies.

Frequently Asked Questions about ai-tracing-requests

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I trace per-step LM calls to debug a wrong AI response?

Per-step tracing lets you inspect individual LM calls, intermediate results, and timings within a single AI request to pinpoint exactly why a wrong response was produced. This provides structured visibility into complex pipelines for precise debugging.

What is the best way to profile slow AI pipelines and identify latency bottlenecks?

Profiling slow AI pipelines is done by running a trace on a specific request to view per-step latencies and intermediate results. This reveals exactly which LM calls or pipeline stages are causing delays, enabling targeted performance optimization.

Can I use OpenTelemetry instrumentation for auditing AI customer interactions?

OpenTelemetry instrumentation supports production-grade AI request auditing by providing end-to-end traces of customer interactions. It enables back-end integration and compliance tracking by capturing detailed per-step execution data for post-mortem analysis.

How do I export AI request traces to JSONL for compliance audit trails?

Exporting AI request traces to JSONL format creates structured audit trails for compliance and post-mortem analysis. This allows you to capture and store the complete per-step execution history of requests for later inspection and regulatory review.

Does DSPy inspection work with per-step tracing to reproduce failing requests?

DSPy inspection integrates directly with per-step tracing to easily inspect and reproduce a failing AI request. This combination lets you view the exact LM calls and intermediate results needed to understand and replicate failures in complex flows.

When do I need end-to-end tracing for AI debugging instead of standard logging?

End-to-end tracing is needed for AI debugging when you must understand the exact sequence of LM calls, intermediate results, and timings within a single request. It provides deeper visibility than standard logging for auditing complex multi-step pipelines.