CtrlK
BlogDocsLog inGet started
Tessl Logo

o11y-dev/opentelemetry-skill

Expert OpenTelemetry guidance for collector configuration, pipeline design, and production telemetry instrumentation across Kubernetes, ECS, serverless, and standalone deployments. Use when configuring collectors, designing pipelines, instrumenting applications, implementing sampling, managing cardinality, securing telemetry, writing OTTL transformations, or setting up AI coding agent observability (Claude Code, Codex, Gemini CLI, GitHub Copilot).

97

1.10x
Quality

95%

Does it follow best practices?

Impact

98%

1.10x

Average score across 21 eval scenarios

SecuritybySnyk

Passed

No findings from the security scan

Overview
Quality
Evals
Security
Files

validate_collector_examples.pytests/

"""Validate the actual documented YAML using a pinned, network-isolated Collector.

Run from the repository root: python tests/validate_collector_examples.py
Docker must be available; validation does not test backend connectivity or delivery.
"""
import re
import subprocess
from pathlib import Path

ROOT = Path(__file__).resolve().parents[1]
IMAGE = "otel/opentelemetry-collector-contrib:0.160.0"
EXAMPLES = [
    ("references/ai-agents.md", "## 3. Unified Collector Config"),
    ("references/collector.md", "### Agent Configuration (Kafka Exporter)"),
    ("references/collector.md", "### Gateway Configuration (Kafka Receiver)"),
]


def main():
    for filename, heading in EXAMPLES:
        text = (ROOT / filename).read_text()
        section = text[text.index(heading):]
        config = re.search(r"```yaml\n(.*?)```", section, re.S).group(1)
        result = subprocess.run([
            "docker", "run", "--rm", "-i", "--network", "none",
            "--env", "KAFKA_USERNAME=example", "--env", "KAFKA_PASSWORD=example",
            IMAGE, "validate", "--config=file:/dev/stdin",
        ], input=config, text=True, capture_output=True, timeout=180)
        print(f"{filename}: {heading}: {'PASS' if result.returncode == 0 else 'FAIL'}", flush=True)
        if result.returncode:
            raise SystemExit(result.stdout + result.stderr)


if __name__ == "__main__":
    main()

CHANGELOG.md

CONTRIBUTING.md

README.md

SKILL.md

tessl.json

tile.json