Metadata-Version: 2.4
Name: otel-bootstrap
Version: 0.1.0
Summary: Simple OpenTelemetry bootstrap for FastAPI, SQLAlchemy, Redis (sync & async)
Author-email: Your Name <you@email.com>
License: MIT
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: pydantic>=1.10
Requires-Dist: opentelemetry-sdk>=1.22
Requires-Dist: opentelemetry-exporter-otlp>=1.22
Requires-Dist: opentelemetry-instrumentation-fastapi
Requires-Dist: opentelemetry-instrumentation-grpc
Requires-Dist: opentelemetry-instrumentation-requests
Requires-Dist: opentelemetry-instrumentation-httpx
Requires-Dist: opentelemetry-instrumentation-sqlalchemy
Requires-Dist: opentelemetry-instrumentation-redis

# otel-bootstrap

Minimal OpenTelemetry bootstrap for Python services.

## Features
- FastAPI tracing
- SQLAlchemy (sync & async)
- Redis (sync & async)
- HTTP / MinIO
- Trace ↔ Log correlation

## Usage

```python
from fastapi import FastAPI
from sqlalchemy.ext.asyncio import create_async_engine
from otel_bootstrap import setup_otel, OtelSettings

app = FastAPI()
engine = create_async_engine("postgresql+asyncpg://...")

setup_otel(
    settings=OtelSettings(service_name="example"),
    fastapi_app=app,
    sqlalchemy_engine=engine,
)
