From opentelemetry-agent-skills
Configures and troubleshoots OpenTelemetry in Python: declarative YAML setup, zero-code instrumentation, manual API, performance tuning, and breaking changes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/opentelemetry-agent-skills:otel-pythonThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Entry point for OpenTelemetry mechanics in Python services. Load a reference below based on
Entry point for OpenTelemetry mechanics in Python services. Load a reference below based on the task; each reference is self-contained.
| File | Use when |
|---|---|
references/declarative-setup.md | Configuring the SDK via declarative YAML (opentelemetry.sdk._configuration.file): load_config_file, configure_*, file_format, env substitution, 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. |
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-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 (overview) | WebFetch https://raw.githubusercontent.com/open-telemetry/opentelemetry-python/main/opentelemetry-sdk/src/opentelemetry/sdk/_configuration/README.md |
Declarative config vendored schema (parser-accepted file_format) | WebFetch https://raw.githubusercontent.com/open-telemetry/opentelemetry-python/main/opentelemetry-sdk/src/opentelemetry/sdk/_configuration/schema.json |
| SDK CHANGELOG | WebFetch https://raw.githubusercontent.com/open-telemetry/opentelemetry-python/main/CHANGELOG.md |
| Contrib CHANGELOG | WebFetch https://raw.githubusercontent.com/open-telemetry/opentelemetry-python-contrib/main/CHANGELOG.md |
| Python getting-started docs | WebFetch https://opentelemetry.io/docs/languages/python/getting-started/ |
otel-declarative-config skill (language-agnostic YAML schema sources).otel-sdk-versions skill.otel-semantic-conventions skill.npx claudepluginhub ollygarden/opentelemetry-agent-skills --plugin otel-dotnetGuides setup of OpenTelemetry NodeSDK, declarative YAML configuration, and auto-instrumentations for Node.js services.
Guides OpenTelemetry SDK setup, custom instrumentation (spans, attributes, events, links), sampling, OTel Collector config, and OTLP export to Honeycomb for Go, Python, Node.js, Java, Ruby, .NET, Rust.
Instrument apps with OpenTelemetry and send telemetry to Grafana Cloud via OTLP. Covers SDK setup, Alloy collector, sampling, and migration from other observability tools.