validate-genai-spans

Validate LLM spans for OpenTelemetry GenAI specification compliance.

29|8|Updated Jul 5, 2026
One-click install
npx skills add https://github.com/ContextJet-ai/awesome-llm-observability --skill validate-genai-spans
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: validate-genai-spans
Source: https://github.com/ContextJet-ai/awesome-llm-observability/tree/main/skills/validate-genai-spans
Command: npx skills add https://github.com/ContextJet-ai/awesome-llm-observability --skill validate-genai-spans

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill unit ensures that the LLM tracing is complete and compliant with OpenTelemetry GenAI specifications, preventing gaps in cost/latency/model dashboards.

Core Features & Use Cases

  • Compliance Validation: Validates that tracing emits complete, spec-compliant spans.
  • Span Analysis: Checks required and recommended fields in OpenTelemetry gen_ai.* fields.
  • Use Case: Integrates into CI/CD pipelines to test span completeness before deploying to production.

Quick Start

Execute the script with the provided span attributes.

Frequently Asked Questions about validate-genai-spans

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

FAQPage Schema
How do I validate LLM spans for OpenTelemetry compliance in CI/CD?

Validate LLM spans by executing a Python 3 script that checks emitted span attributes for presence and correct type against OpenTelemetry GenAI specifications. This ensures tracing completeness before production deployment.

What is OpenTelemetry GenAI trace validation?

OpenTelemetry GenAI trace validation is the process of checking that LLM tracing emits complete, spec-compliant spans. It analyzes required and recommended gen_ai.* fields to prevent gaps in cost, latency, and model dashboards.

Do I need Python 3 to validate LLM span attributes?

Yes, Python 3 is required to validate LLM span attributes. The validation script depends on Python 3 to execute and verify that GenAI spans contain necessary attributes with correct data types.

Why are my LLM cost and latency dashboards missing data?

LLM cost and latency dashboards miss data when tracing emits incomplete spans lacking required OpenTelemetry GenAI attributes. Validating span completeness ensures all necessary fields are captured for accurate monitoring.

How do I test LLM span emission before deploying to production?

Test LLM span emission before production by integrating a validation script into CI/CD pipelines. The script analyzes emitted spans for completeness and adherence to OpenTelemetry GenAI specifications to prevent tracing gaps.