agentleFS
ollygardenollygarden/opentelemetry-agent-skills/skills/otel-python/SKILL.md

otel-python

Skill125 starsChanged 4 months agoApache-2.0View on GitHub

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".

The file

Files
SKILL.md

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.1 overview; verified 2026-10-25)WebFetch https://raw.githubusercontent.com/open-telemetry/opentelemetry-python/v1.45.1/opentelemetry-configuration/README.rst
Declarative config vendored schema (released 1.45.1)WebFetch https://raw.githubusercontent.com/open-telemetry/opentelemetry-python/v1.45.1/opentelemetry-configuration/src/opentelemetry/configuration/schema.json
SDK CHANGELOG through 1.45.1WebFetch https://raw.githubusercontent.com/open-telemetry/opentelemetry-python/v1.45.1/CHANGELOG.md
Contrib CHANGELOG through 0.66b1WebFetch https://raw.githubusercontent.com/open-telemetry/opentelemetry-python-contrib/v0.66b1/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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.