Trace Python SDK
Official Python telemetry and unhandled crash diagnostics SDK for Trace.
Quickstart
from trace_sdk import Trace, TraceMiddleware
# Initialize Trace Client
trace = Trace(
service_id="payment-service",
api_key="trace_payment_secret_456",
endpoint="http://localhost:8000"
)
# 1. Log metrics & structured messages
trace.info("User checkout initiated", latency_ms=45.2, metadata={"user_id": "usr_99"})
# 2. Capture and report caught exceptions
try:
process_payment()
except Exception as e:
trace.capture_exception(e, message="Payment processing failure")
# 3. Use as a FastAPI / Starlette middleware
# Automatically records latency and reports unhandled exceptions
app.add_middleware(TraceMiddleware, client=trace)
Release files for auratrace-sdk 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| auratrace_sdk-2.0.0.tar.gz | 7.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| auratrace_sdk-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.9 kB
Release files / auratrace_sdk-2.0.0.tar.gz
| Download URL | auratrace_sdk-2.0.0.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4fb3860b5b6fb7535c6f694caa82e8af07953b4fa280367170696af868a6e60b
|
|
BLAKE2b-256 checksum How to use checksums |
c35a0f51fa3c85a1a8d22e577a0e18a500ce4dcbc6ee7041dd1d797575f50704
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / auratrace_sdk-2.0.0-py3-none-any.whl
| Download URL | auratrace_sdk-2.0.0-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5dcc4b9495fc865d763e8c8c81fe10abb1d67f7a4c55f65a12883c78c4556cf3
|
|
BLAKE2b-256 checksum How to use checksums |
7fa8b16cb387a6bf6979cbd98accc8da6cd5d8a9c91a2a13582e1691f14eda73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|