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.8.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.8.tar.gz.
File metadata
- Download URL: otel_bootstrap-0.1.8.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 |
3bba0d69678e4d2342ec46ca506c320bdc653eb29ecb39f57ee671d7e7e9c6ee
|
|
| MD5 |
639c20b3c65dda1d23f53fd989a92459
|
|
| BLAKE2b-256 |
fddfa174e20a3ece4d9fbfa3568f5231a7b58346978d1bf584676a58a9f09823
|
File details
Details for the file otel_bootstrap-0.1.8-py3-none-any.whl.
File metadata
- Download URL: otel_bootstrap-0.1.8-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 |
552407edb23f4c47139e91ccfd185b85d7bccb874a580208f07bdf3946628c7a
|
|
| MD5 |
4766f714c17d24bebe78bb7df860a8f1
|
|
| BLAKE2b-256 |
d7563381bb228db01778ad2977609770196d45fa77a40884c866b1362f5daf1a
|