fastapi-otel-common
Installation
SKILL.md
FastAPI OTEL Common Skill
This skill provides the AI agent with specialized knowledge and best practices for the fastapi-otel-common ecosystem.
Core Principles
- Observability First: Always implement OpenTelemetry tracing and metrics. Use the built-in instrumentation.
- Structured Logging: Use
logurufor all logging. Avoidprint(). Use the library's logger initialization. - Security by Default: Use
get_current_useror role-based decorators (RequireRoles) for protected endpoints. - Production-Ready Health Checks: Utilize the automatic
/healthz,/readyz, and/livezendpoints.
Common Tasks
1. Initialize the App
from fastapi_otel_common import create_app