01
Recommended
Use your framework adapter.
The adapter installs Python Core automatically and adds resolved route templates, customer resolvers, filtering and graceful shutdown flushing.
02
Language foundation
Use Core for custom adapters.
apirelio has no runtime dependencies. Capture is synchronous and non-blocking; a bounded daemon worker owns batch delivery and retry.
Installbash
pip install apirelioPythonpython
from apirelio import ApirelioClient
client = ApirelioClient(
api_key=os.environ.get("APIRELIO_API_KEY", ""),
service="billing-api",
environment="production",
)
client.capture({
"method": "GET",
"route": "/api/invoices/{invoice_id}",
"status": 200,
"duration_ms": 24,
"sdk": "custom-python",
"sdk_version": "0.2.0",
})03
Safe defaults
Telemetry stays outside the response path.
Queues are bounded, transient failures are retried and shutdown flushes pending events. Bodies, credentials, cookies, query strings, email addresses and IP addresses are never captured.