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.6.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.6.tar.gz.
File metadata
- Download URL: otel_bootstrap-0.1.6.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 |
22c68f2256d3ab4fccf79f6f91974934c46187de4a9c93c5e98f56b99a795854
|
|
| MD5 |
b12d74e447a9b76866e41062aba42595
|
|
| BLAKE2b-256 |
71911bda9b8a854b7dc862ae4b979f16325307ee4737f61c28a1ef5bc07125f8
|
File details
Details for the file otel_bootstrap-0.1.6-py3-none-any.whl.
File metadata
- Download URL: otel_bootstrap-0.1.6-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 |
89d547ea8813d3ccd64d88a313ad6cbff05b8b453b5e6e185b7d55a70a8209ea
|
|
| MD5 |
21a17830cb2c7875c61dc76918a0b29c
|
|
| BLAKE2b-256 |
d60f84021c5c4e32ca5ec02a49e12e8fb2f13d9ea884ac83a46cf791f0630af9
|