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.2.tar.gz
(3.4 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.2.tar.gz.
File metadata
- Download URL: otel_bootstrap-0.1.2.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cfbb427b0b82459fe1209724c392e6ce5d29b353d059c325bf534de6e809501b
|
|
| MD5 |
d465e5aed525f2237d89c8473477a35d
|
|
| BLAKE2b-256 |
ce0ab39ff6809f8fbf29a47a3afbcf68a9d28be25fa3feb63cea136df22d9c2a
|
File details
Details for the file otel_bootstrap-0.1.2-py3-none-any.whl.
File metadata
- Download URL: otel_bootstrap-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.5 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 |
f29d1044cc09b48753c66b4b125c599b80a49c06db074e1c9ac25cd43ea54d5e
|
|
| MD5 |
06df19f9e870a985021624bde623f553
|
|
| BLAKE2b-256 |
14f5c94c7570359193c48ac74becb19339ee0785573c4314a5bde8e213759f50
|