/observability-tools:python-backend-opentelemetry-instrumentationfrom observability-tools
OpenTelemetry instrumentation for Python backend services including FastAPI and Flask. PROACTIVELY activate for: (1) Setting up OpenTelemetry in Python, (2) Auto-instrumenting FastAPI, (3) Creating manual spans, (4) Log correlation with traces, (5) Exporter configuration. Triggers: "opentelemetry python", "otel python", "flask trace", "fastapi trace", "setup-tracing", "python tracing"
Ships in observability-tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Instrument Python backend services with OpenTelemetry for distributed tracing and continuing traces from upstream services.
pip install opentelemetry-api opentelemetry-sdk \
opentelemetry-exporter-otlp \
opentelemetry-instrumentation-fastapi \
opentelemetry-instrumentation-requests
# main.py
from fastapi import FastAPI
from opentelemetry import trace
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import BatchSpanProcessor
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
from opentelemetry.sdk.resources import Resource
from opentelemetry.instrumentation.fastapi import FastAPIInstrumentor
# Initialize tracing
resource = Resource.create({"service.name": "python-api", "service.version": "1.0.0"})
provider = TracerProvider(resource=resource)
processor = BatchSpanProcessor(OTLPSpanExporter())
provider.add_span_processor(processor)
trace.set_tracer_provider(provider)
app = FastAPI()
FastAPIInstrumentor.instrument_app(app) # Automatic tracing
@app.get("/users")
async def get_users():
return {"users": []}
from opentelemetry import trace
tracer = trace.get_tracer(__name__)
with tracer.start_as_current_span("database-query") as span:
span.set_attribute("db.system", "postgresql")
result = await db.query("SELECT * FROM users")
span.set_attribute("result.count", len(result))
span = trace.get_current_span()
ctx = span.get_span_context()
logger.info("query", trace_id=format(ctx.trace_id, '032x'))
from flask import Flask
from opentelemetry.instrumentation.flask import FlaskInstrumentor
app = Flask(__name__)
FlaskInstrumentor().instrument_app(app)
from opentelemetry.instrumentation.requests import RequestsInstrumentor
RequestsInstrumentor().instrument()
# Now all requests.get/post calls are automatically traced
response = requests.get("https://api.example.com/data")
from opentelemetry.propagate import inject
import requests
headers = {}
inject(headers) # Injects traceparent header
response = requests.get("https://downstream.service/api", headers=headers)
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub agentient/vibekit --plugin observability-tools8 skills in this plugin
/actionable-alerting-runbook-designDesigning effective alerts and runbooks for incident response. PROACTIVELY activate for: (1) Creating alerting rules, (2) Writing runbooks, (3) Reducing alert fatigue, (4) On-call escalation setup, (5) Incident response procedures. Triggers: "alerting", "runbook", "on-call", "pagerduty", "incident", "alert fatigue", "escalation", "playbook"
/cost-optimized-log-trace-samplingSampling strategies for logs and traces to optimize costs while maintaining observability. PROACTIVELY activate for: (1) Configuring trace sampling, (2) Log volume reduction, (3) Head-based vs tail-based sampling, (4) Priority-based sampling, (5) Cost optimization. Triggers: "sampling", "trace sampling", "log sampling", "cost optimization", "head-based", "tail-based", "sample rate"
/cross-platform-structured-loggingUnified JSON logging across Next.js, Python, and Firebase Functions using Pino and structlog. PROACTIVELY activate for: (1) Setting up structured logging, (2) Configuring Pino for Node.js, (3) Configuring structlog for Python, (4) Implementing PII redaction, (5) Log correlation with trace IDs. Triggers: "logging", "pino", "winston", "structlog", "logger", "console.log", "firebase functions logger", "setup-logging", "json logging"
/distributed-tracing-context-propagationW3C Trace Context propagation across service boundaries for distributed tracing. PROACTIVELY activate for: (1) Implementing trace context propagation, (2) Cross-service correlation, (3) Setting up traceparent headers, (4) Baggage propagation, (5) Multi-service debugging. Triggers: "distributed tracing", "trace context", "traceparent", "correlation", "span", "baggage", "propagation"
/full-stack-error-tracking-with-sentrySentry integration for error tracking across Next.js, Python, and Firebase. PROACTIVELY activate for: (1) Setting up Sentry SDK, (2) Configuring error boundaries, (3) Adding custom context to errors, (4) Source map configuration, (5) Release tracking. Triggers: "sentry", "error tracking", "error boundary", "exception monitoring", "crash reporting", "source maps"
/nextjs-opentelemetry-instrumentationOpenTelemetry distributed tracing for Next.js 14+ App Router applications. PROACTIVELY activate for: (1) Setting up OpenTelemetry in Next.js, (2) Creating instrumentation.ts, (3) Manual span creation, (4) Client-side tracing, (5) Vercel integration. Triggers: "opentelemetry", "otel", "tracing", "nextjs instrumentation", "rsc trace", "setup-tracing", "span", "tracer"
Other plugins' skills for the same job