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.5.tar.gz
(3.5 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.5.tar.gz.
File metadata
- Download URL: otel_bootstrap-0.1.5.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aca40ae0afe1fc6f6a144c910c7e9278cb0dd60d3074ec1144127728727c367b
|
|
| MD5 |
e777cf934ae2b07e63b2f6ae28230daf
|
|
| BLAKE2b-256 |
88eb9a88f4e7f46a3afb1cca6924108a50f289e6f21bf611348dd6e4fd46ad91
|
File details
Details for the file otel_bootstrap-0.1.5-py3-none-any.whl.
File metadata
- Download URL: otel_bootstrap-0.1.5-py3-none-any.whl
- Upload date:
- Size: 5.6 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 |
a741f397bf41069a81f1852e08d90cd70b6af08e779925dab9e79e35b71ba523
|
|
| MD5 |
38d69ff6587c437e9ef57dee68d059ba
|
|
| BLAKE2b-256 |
f15bdb7924395eb4861d2d953dffa2559d60958def4a39d7a7847c184c67a254
|