Simple OpenTelemetry bootstrap for FastAPI, SQLAlchemy, Redis (sync & async)
Project description
otel-bootstrap
Minimal OpenTelemetry bootstrap for Python services.
Features
- FastAPI tracing
- SQLAlchemy (sync & async)
- Redis (sync & async)
- HTTP / MinIO
- Trace ↔ Log correlation
Usage
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,
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
otel_bootstrap-0.1.7.tar.gz
(3.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file otel_bootstrap-0.1.7.tar.gz.
File metadata
- Download URL: otel_bootstrap-0.1.7.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
304a4f35aca6cbe1f0848beb63b1cb325045d26c3bdc0007d8941d2b7ac961fd
|
|
| MD5 |
5a86b5da3e81ace33fd68f9cbaaf8dd3
|
|
| BLAKE2b-256 |
a6c54e70ba6059c9dc641df65330df5b4b66996b19bda6fd1a5d7a099ac7c7f9
|
File details
Details for the file otel_bootstrap-0.1.7-py3-none-any.whl.
File metadata
- Download URL: otel_bootstrap-0.1.7-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83135145c4b382ae61e3eb0a0513ac11eac0cfc415fbe41e5d440bc436289a80
|
|
| MD5 |
3780928b39603ccb607593caea7bb92f
|
|
| BLAKE2b-256 |
6177e0d8329095ff5191fa93438d253e33f6597b500cfb8d9cda9f9e0d25fe6d
|