CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

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, Antigravity, GitHub Copilot).

97

1.07x
Quality

95%

Does it follow best practices?

Impact

98%

1.07x

Average score across 27 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]
IMAGES = [f"otel/opentelemetry-collector-contrib:{version}" for version in ("0.160.0", "0.162.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 image in IMAGES:
        validate_image(image)


def validate_image(image):
    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"{image}: {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