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.4.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.4.tar.gz.
File metadata
- Download URL: otel_bootstrap-0.1.4.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 |
6dfbbb90c0e692621006d6bcaed9791667d860d170bebbcf9c1761c34803c62a
|
|
| MD5 |
109acc811d42911cb7a507724e957232
|
|
| BLAKE2b-256 |
386f11e07b007cfb920161027e3af97df7d2d0d4d885d285b98a9d458d9ceef9
|
File details
Details for the file otel_bootstrap-0.1.4-py3-none-any.whl.
File metadata
- Download URL: otel_bootstrap-0.1.4-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 |
ac47b131d71d4863552dc0611c6e2666c5fed97e1ac571a4af03e4312316a929
|
|
| MD5 |
e8376da2a0f231cace62eab7d29b1b6f
|
|
| BLAKE2b-256 |
bf6c9a8578b6258629d63dc8815f8df5707810b5b6aa702431585ce8eb700e66
|