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.9.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.9.tar.gz.
File metadata
- Download URL: otel_bootstrap-0.1.9.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 |
d9b329cb29de7ac3df8a907a92fa12c8af7fbef04dec372a9572b2a75f0ca205
|
|
| MD5 |
3dfd1918939ba7d6685339d8301266c1
|
|
| BLAKE2b-256 |
984e021bc75ed4d7c1be5010479f19b9cc057d41a28a77fb90e4ab0d9e08e863
|
File details
Details for the file otel_bootstrap-0.1.9-py3-none-any.whl.
File metadata
- Download URL: otel_bootstrap-0.1.9-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 |
6bbae9327ae67e63684628d5d151db7e79b2a452f3d8ecfd2802794af4b19206
|
|
| MD5 |
7c99d204f065e4d78e1b2673ec99c517
|
|
| BLAKE2b-256 |
379ff91409852511fb4ddedbf438a50ecc0db3d9bf60f950cda5963ac24ecd5f
|