otel-python

Instruments Python applications with OpenTelemetry for distributed tracing, metrics, and logging.

Updated Feb 18, 2026
One-click install
npx skills add https://github.com/zach-source/claude-plugins --skill otel-python
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: otel-python
Source: https://github.com/zach-source/claude-plugins/tree/main/plugins/cloud-and-observability/skills/otel-python
Command: npx skills add https://github.com/zach-source/claude-plugins --skill otel-python

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires opentelemetry-api, opentelemetry-sdk, opentelemetry-distro, opentelemetry-bootstrap, opentelemetry-exporter-otlp-proto-grpc, opentelemetry-exporter-otlp-proto-http, opentelemetry-instrumentation-flask, opentelemetry-instrumentation-fastapi, opentelemetry-instrumentation-requests, opentelemetry-instrumentation-sqlalchemy, prometheus_client, psutil, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the process of adding comprehensive observability to Python applications, enabling detailed insights into their performance and behavior.

Core Features & Use Cases

  • Distributed Tracing: Track requests across multiple services to pinpoint bottlenecks.
  • Metrics Collection: Gather performance metrics like request duration and error rates.
  • Logging: Integrate structured logging for easier debugging.
  • Automatic Instrumentation: Effortlessly instrument popular frameworks like Flask and FastAPI.
  • Use Case: Debug a slow API endpoint by tracing its execution path through various microservices and identifying which service is causing the delay.

Quick Start

Instrument your Python application for OpenTelemetry tracing and metrics using the provided setup code.

Frequently Asked Questions about otel-python

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add OpenTelemetry tracing to a FastAPI application?

You can add OpenTelemetry tracing to FastAPI using automatic instrumentation. This Skill leverages opentelemetry-instrumentation-fastapi to automatically generate spans for incoming requests, enabling distributed tracing across microservices without requiring manual code changes.

What Python web frameworks support automatic instrumentation with OpenTelemetry?

OpenTelemetry supports automatic instrumentation for Flask and FastAPI. This Skill utilizes opentelemetry-instrumentation-flask and opentelemetry-instrumentation-fastapi to automatically capture request data and generate traces for these popular web frameworks.

Can I track SQLAlchemy database queries with OpenTelemetry in Python?

Yes, you can track SQLAlchemy database queries with OpenTelemetry in Python. This Skill uses the opentelemetry-instrumentation-sqlalchemy dependency to automatically create spans for database operations, helping you pinpoint query bottlenecks within your application's trace.

How do I export Python metrics and traces using the OTLP protocol?

You export Python metrics and traces using the OTLP protocol via gRPC or HTTP. This Skill includes opentelemetry-exporter-otlp-proto-grpc and opentelemetry-exporter-otlp-proto-http to transmit your collected observability data to a backend for analysis.

Does OpenTelemetry work with Prometheus for collecting Python metrics?

Yes, OpenTelemetry works with Prometheus for collecting Python metrics. This Skill includes the prometheus_client dependency to gather performance metrics like request duration and error rates, which can be exported alongside your distributed traces.