Otel python
Skill ollygarden/opentelemetry-agent-skills/skills/otel-python
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".From its SKILL.md
npx -y skills add ollygarden/opentelemetry-agent-skills --skill otel-pythonAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- fetches URLsInstructs the agent to fetch 8 URLs, including https://pypi.org/pypi/opentelemetry-sdk/json and 7 more.
SKILL.md
3.6 KB, 750 tokens by cl100k_base, as published. Nobody here has run it
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
| File | Use when |
|---|---|
references/declarative-setup.md | Configuring 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.md | Import paths, global API access, tracer/meter/logger usage, attributes, propagation, the Python logging bridge (LoggingHandler). |
references/instrumentation-libraries.md | Zero-code (opentelemetry-distro, opentelemetry-bootstrap, opentelemetry-instrument), the contrib catalog, and manual instrumentation following semconv. |
references/performance.md | Tuning sampling, batch span processor, periodic metric reader, views, asyncio context, exporters, graceful shutdown. |
references/breaking-changes.md | Auditing 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:
| Fact | Fetch |
|---|---|
Latest opentelemetry-sdk / opentelemetry-api | WebFetch https://pypi.org/pypi/opentelemetry-sdk/json (.info.version) |
Latest opentelemetry-configuration | WebFetch https://pypi.org/pypi/opentelemetry-configuration/json |
Latest opentelemetry-distro | WebFetch https://pypi.org/pypi/opentelemetry-distro/json |
Latest opentelemetry-instrumentation-<pkg> (contrib) | WebFetch https://pypi.org/pypi/opentelemetry-instrumentation-<pkg>/json |
| Latest OTLP exporter | WebFetch https://pypi.org/pypi/opentelemetry-exporter-otlp/json |
| Declarative config support (released 1.44.0 overview) | WebFetch https://raw.githubusercontent.com/open-telemetry/opentelemetry-python/v1.44.0/opentelemetry-configuration/README.rst |
| Declarative config vendored schema (released 1.44.0) | WebFetch https://raw.githubusercontent.com/open-telemetry/opentelemetry-python/v1.44.0/opentelemetry-configuration/src/opentelemetry/configuration/schema.json |
| SDK CHANGELOG through 1.44.0 | WebFetch https://raw.githubusercontent.com/open-telemetry/opentelemetry-python/v1.44.0/CHANGELOG.md |
| Contrib CHANGELOG through 0.65b0 | WebFetch https://raw.githubusercontent.com/open-telemetry/opentelemetry-python-contrib/v0.65b0/CHANGELOG.md |
| Python getting-started docs | WebFetch https://opentelemetry.io/docs/languages/python/getting-started/ |
Cross-References
- Schema-level facts:
otel-declarative-configskill (language-agnostic YAML schema sources). - SDK version selection across languages:
otel-sdk-versionsskill. - Semantic conventions lookup:
otel-semantic-conventionsskill.
What ships with it: 5 files
53.8 KB alongside SKILL.md
references/
- api.md8.2 KB
- breaking-changes.md8.0 KB
- declarative-setup.md7.9 KB
- instrumentation-libraries.md11.1 KB
- performance.md18.6 KB
Gives 0 of the 12 instructions most project setup skills give in 750 tokens
Counted across 1,553 of the 3,091 authors here whose files we hold, read 2026-09-06
- Write the configuration filein 36 of 1553
- Create the directory structurein 35 of 1553, across 33 files
- Verify the setupin 31 of 1553, across 28 files
- Run the setup scriptin 30 of 1553, across 29 files
- Pre-determine the required sample sizein 29 of 1553, across 12 files
- Check if the configuration already existsin 29 of 1553
- Document every testin 26 of 1553, across 10 files
- Start with a hypothesisin 26 of 1553, across 11 files
- Ask one question at a timein 22 of 1553
- Test a single variable per testin 21 of 1553, across 9 files
- Read product marketing context before asking questionsin 19 of 1553, across 8 files
- Do not peek and stop earlyin 18 of 1553, across 7 files
Said here and by no other author read
- Load a reference based on the task
- Fetch upstream sources for schema details
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.