OpenTelemetry in Python — SDK setup, declarative config, zero-code instrumentation (opentelemetry-instrument, opentelemetry-distro), contrib auto-instrumentation, manual API, performance tuning…

Apache-2.0Auto-check passedDevOps & Cloud

Install Otel Python

skills CLI
$ npx skills add ollygarden/opentelemetry-agent-skills --skill otel-python -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ollygarden/opentelemetry-agent-skills otel-python --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ollygarden/opentelemetry-agent-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/otel-python .claude/skills/otel-python && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
otel-python
GitHub stars
106
Used in
1 other repo
Token cost
~911 tokens
SKILL.md length
201 words
Files
6 (incl. references)
Skills in repo
19
Repo updated
First seen
Licence
Apache-2.0

At a glance

OpenTelemetry in Python — SDK setup, declarative config, zero-code instrumentation (opentelemetry-instrument, opentelemetry-distro), contrib auto-instrumentation, manual API, performance tuning…

  • Troubleshooting OpenTelemetry in a Python service
  • SKILL.md covers References, Sources of Truth and Cross-References
  • Reaches pypi.org and raw.githubusercontent.com
  • Setup otel in python

What it does

Otel Python is an agent skill from ollygarden/opentelemetry-agent-skills. OpenTelemetry in Python — SDK setup, declarative config, zero-code instrumentation (opentelemetry-instrument, opentelemetry-distro), contrib auto-instrumentation, manual API, performance tuning, breaking changes. Use when configuring or troubleshooting OpenTelemetry in a Python service. Triggers on "setup otel in python", "python telemetry", "python tracing", "opentelemetry-instrument", "opentelemetry-distro", "TracerProvider python", "MeterProvider python", "FastAPI/Flask/Django otel", "python logging bridge".

Its SKILL.md is about 910 tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files (for example `references/api.md`, `references/breaking-changes.md` and `references/declarative-setup.md`).

It sits in DevOps & Cloud, covering Observability and Backend development. It works with OpenTelemetry, Python, Django and FastAPI. The repository describes itself as: Vendor-neutral OpenTelemetry skills for AI coding agents like Claude Code, Cursor, and Codex, grounded in upstream sources. The licence is Apache-2.0.

When your agent uses it

  • Troubleshooting OpenTelemetry in a Python service
  • Setup otel in python
  • Python telemetry
  • Opentelemetry-instrument

Example prompts

  • “setup otel in python”
  • “python telemetry”
  • “python tracing”
  • “/otel-python”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit ea1a940. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • pypi.org
    • raw.githubusercontent.com
    • opentelemetry.io

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Otel Python loads about 911 tokens when it runs, and up to ~16k if it reads all its reference files. Until then it costs about 132 tokens; SKILL.md has 201 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~132
When it runs · the whole SKILL.md, loaded when a task matches
~911
With references · SKILL.md plus every file in references/, read only if the agent opens them
~16k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ollygarden/opentelemetry-agent-skills at commit ea1a940, republished under its Apache-2.0 licence (© ollygarden). 201 words, ~911 tokens.

Download SKILL.mdSave it as .claude/skills/otel-python/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
otel-python
description
OpenTelemetry in Python — SDK setup, declarative config, zero-code instrumentation (opentelemetry-instrument, opentelemetry-distro), contrib auto-instrumentation, manual API, performance tuning, breaking changes. Use when configuring or troubleshooting OpenTelemetry in a Python service. Triggers on "setup otel in python", "python telemetry", "python tracing", "opentelemetry-instrument", "opentelemetry-distro", "TracerProvider python", "MeterProvider python", "FastAPI/Flask/Django otel", "python logging bridge".

OpenTelemetry in Python

Entry point for OpenTelemetry mechanics in Python services. Load a reference below based on the task; each reference is self-contained.

References

FileUse when
references/declarative-setup.mdConfiguring the SDK via declarative YAML (opentelemetry-configuration / opentelemetry.configuration): load_config_file, configure_sdk, file_format, env substitution, OTEL_CONFIG_FILE and programmatic activation.
references/api.mdImport paths, global API access, tracer/meter/logger usage, attributes, propagation, the Python logging bridge (LoggingHandler).
references/instrumentation-libraries.mdZero-code (opentelemetry-distro, opentelemetry-bootstrap, opentelemetry-instrument), the contrib catalog, and manual instrumentation following semconv.
references/performance.mdTuning sampling, batch span processor, periodic metric reader, views, asyncio context, exporters, graceful shutdown.
references/breaking-changes.mdAuditing existing code for deprecated/renamed APIs and semconv changes across recent SDK/contrib releases.

Sources of Truth

For YAML schema details, fetch the upstream sources listed in the otel-declarative-config skill. For Python-specific facts:

FactFetch
Latest opentelemetry-sdk / opentelemetry-apiWebFetch https://pypi.org/pypi/opentelemetry-sdk/json (.info.version)
Latest opentelemetry-configurationWebFetch https://pypi.org/pypi/opentelemetry-configuration/json
Latest opentelemetry-distroWebFetch https://pypi.org/pypi/opentelemetry-distro/json
Latest opentelemetry-instrumentation-<pkg> (contrib)WebFetch https://pypi.org/pypi/opentelemetry-instrumentation-<pkg>/json
Latest OTLP exporterWebFetch https://pypi.org/pypi/opentelemetry-exporter-otlp/json
Declarative config support (released 1.45.0 overview)WebFetch https://raw.githubusercontent.com/open-telemetry/opentelemetry-python/v1.45.0/opentelemetry-configuration/README.rst
Declarative config vendored schema (released 1.45.0)WebFetch https://raw.githubusercontent.com/open-telemetry/opentelemetry-python/v1.45.0/opentelemetry-configuration/src/opentelemetry/configuration/schema.json
SDK CHANGELOG through 1.45.0WebFetch https://raw.githubusercontent.com/open-telemetry/opentelemetry-python/v1.45.0/CHANGELOG.md
Contrib CHANGELOG through 0.66b0WebFetch https://raw.githubusercontent.com/open-telemetry/opentelemetry-python-contrib/v0.66b0/CHANGELOG.md
Python getting-started docsWebFetch https://opentelemetry.io/docs/languages/python/getting-started/

Cross-References

  • Schema-level facts: otel-declarative-config skill (language-agnostic YAML schema sources).
  • SDK version selection across languages: otel-sdk-versions skill.
  • Semantic conventions lookup: otel-semantic-conventions skill.

© ollygarden, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (references) in skills/otel-python of ollygarden/opentelemetry-agent-skills.

  • SKILL.md
  • references/api.md
  • references/breaking-changes.md
  • references/declarative-setup.md
  • references/instrumentation-libraries.md
  • references/performance.md

Open the folder on GitHubat commit ea1a940

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in ollygarden/opentelemetry-agent-skills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Otel Python next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Otel Python compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Otel Python this skillollygarden/opentelemetry-agent-skills1061 repos~911Automated safety check: PassApache-2.0
Sentry Python SDKgetsentry/sentry-for-ai268—~4.1kAutomated safety check: PassApache-2.0
Python Appservice Deploymicrosoft/GitHub-Copilot-for-Azure2551 repos~688Automated safety check: PassMIT
Fix Slow Endpointvpcarlos/profyle123—~2.1kAutomated safety check: PassMIT
Framework Migration AssistantArabelaTso/Skills-4-SE253—~1.9kAutomated safety check: PassApache-2.0
Python Devdoccker/cc-use-exp1.1k—~790Automated safety check: PassCustom licence

Similar skills

  • Sentry Python SDK

    getsentry/sentry-for-ai

    Official

    Full Sentry SDK setup for Python. An agent skill from getsentry/sentry-for-ai.

    268 GitHub stars~4.1k tokensUpdated today
    Backend & APIsAuto-check passed
  • Python Appservice Deploy

    microsoft/GitHub-Copilot-for-Azure

    Official

    Deploy Python (Flask/Django/FastAPI) code to Azure App Service Linux.

    255 GitHub starsUsed in 1 repo~688 tokens
    Backend & APIsAuto-check passed
  • Fix Slow Endpoint

    vpcarlos/profyle

    Diagnose and fix a slow endpoint or request in a Python web app (FastAPI, Flask, Django, Tornado, any ASGI/WSGI framework) using real Profyle/VizTracer traces, then prove the fix by replaying the…

    123 GitHub stars~2.1k tokensUpdated 2 days ago
    Backend & APIsAuto-check passed
  • Framework Migration Assistant

    ArabelaTso/Skills-4-SE

    Automatically migrate Python web applications between frameworks (Flask → FastAPI, Django → FastAPI).

    253 GitHub stars~1.9k tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed
  • Python Dev

    doccker/cc-use-exp

    Python 开发规范。当用户操作 .py、pyproject.toml、requirements.txt、setup.py 文件, 或涉及 FastAPI、Django、Flask、pytest、asyncio 开发时触发。

    1.1k GitHub stars~790 tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed
  • Fastapi Templates

    jh941213/my-cc-harness

    Production-grade FastAPI project creation and setup guide. An agent skill from jh941213/my-cc-harness.

    126 GitHub stars~945 tokensUpdated 2 mo ago
    Backend & APIsAuto-check passed

More from ollygarden/opentelemetry-agent-skills

All 19 skills in this repo
  • Otel Collector Builder

    ollygarden/opentelemetry-agent-skills

    Build custom OpenTelemetry Collector distributions with OCB (OpenTelemetry Collector Builder).

    106 GitHub stars~2k tokensUpdated 4 days ago
    Auto-check passed
  • Otel Go

    ollygarden/opentelemetry-agent-skills

    OpenTelemetry in Go — SDK setup, API surface, breaking changes, contrib instrumentation libraries (otelhttp, otelgrpc, otelmongo), compile-time zero-code instrumentation (otelc), and performance…

    106 GitHub stars~1.4k tokensUpdated 4 days ago
    Auto-check passed
  • Otel Ottl

    ollygarden/opentelemetry-agent-skills

    OpenTelemetry Transformation Language (OTTL) expert for writing and debugging telemetry transformations in the OpenTelemetry Collector.

    106 GitHub stars~1.7k tokensUpdated 4 days ago
    Auto-check passed
  • Otel Span Events To Logs Migration

    ollygarden/opentelemetry-agent-skills

    Migrate OpenTelemetry Span Events (AddEvent, RecordException, and language equivalents) to the Logs API following the accepted OTEP 4430 migration plan.

    106 GitHub stars~1.8k tokensUpdated 4 days ago
    Auto-check passed
  • Otel Telemetrygen

    ollygarden/opentelemetry-agent-skills

    Build safe, version-pinned telemetrygen commands for synthetic OTLP traces, metrics, and logs.

    106 GitHub stars~2.2k tokensUpdated 4 days ago
    Auto-check passed
  • Otel Upgrade

    ollygarden/opentelemetry-agent-skills

    Assess OpenTelemetry package and Collector upgrades across ecosystems.

    106 GitHub stars~1.1k tokensUpdated 4 days ago
    Auto-check passed

Questions about Otel Python

What does Otel Python do?

OpenTelemetry in Python — SDK setup, declarative config, zero-code instrumentation (opentelemetry-instrument, opentelemetry-distro), contrib auto-instrumentation, manual API, performance tuning…. Otel Python is an agent skill from ollygarden/opentelemetry-agent-skills. OpenTelemetry in Python — SDK setup, declarative config, zero-code instrumentation (opentelemetry-instrument, opentelemetry-distro), contrib auto-instrumentation, manual API, performance tuning, breaking changes.

When should I use Otel Python?

Otel Python fits situations like: troubleshooting OpenTelemetry in a Python service; setup otel in python; Python telemetry; opentelemetry-instrument.

How do I install Otel Python in Claude Code?

Run `npx skills add ollygarden/opentelemetry-agent-skills --skill otel-python -a claude-code`. Or copy the skill folder (skills/otel-python in ollygarden/opentelemetry-agent-skills) into .claude/skills/otel-python in your project. Claude Code loads it when a task matches its description.

How do I install Otel Python in Codex?

Run `npx skills add ollygarden/opentelemetry-agent-skills --skill otel-python -a codex`. Or copy the skill folder (skills/otel-python in ollygarden/opentelemetry-agent-skills) into .agents/skills/otel-python in your project. Codex loads it when a task matches its description.

Can I use Otel Python in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ollygarden/opentelemetry-agent-skills --skill otel-python -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/otel-python, .gemini/skills/otel-python, .github/skills/otel-python and .opencode/skills/otel-python in your project.

What does Otel Python need to run?

SKILL.md names no scripts, command-line tools or credentials: Otel Python is instructions for the agent only. Our summary lists: Python 3.

Does Otel Python access the network?

SKILL.md names 3 domains. In commands or code: pypi.org, raw.githubusercontent.com and opentelemetry.io; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is Otel Python safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Otel Python use?

Otel Python is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Otel Python use?

About 911 tokens (SKILL.md is roughly 3.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 15k tokens, read only when the agent opens those files.

What are the alternatives to Otel Python?

Skills that share tags, products or a category with Otel Python: Sentry Python SDK (getsentry/sentry-for-ai, 268 stars), Python Appservice Deploy (microsoft/GitHub-Copilot-for-Azure, 255 stars), Fix Slow Endpoint (vpcarlos/profyle, 123 stars) and Framework Migration Assistant (ArabelaTso/Skills-4-SE, 253 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Otel Python?

ollygarden (a GitHub organization) maintains it in ollygarden/opentelemetry-agent-skills, which has 106 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on October 3, 2026.

Source: ollygarden/opentelemetry-agent-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.