Thin OpenTelemetry wrapper that connects Python apps to TraceMap in 5 lines
Project description
TraceMap Python SDK (FastAPI/ASGI)
Drop-in middleware for ASGI apps that emits spans/logs to TraceMap.
Quick Start
from fastapi import FastAPI
from tracemap import TraceMapMiddleware
app = FastAPI()
app.add_middleware(TraceMapMiddleware)
Environment Variables
TRACEMAP_ENDPOINT(defaulthttp://127.0.0.1:4318)TRACEMAP_COLLECTOR_URL(fallback)TRACEMAP_SERVICE_NAME(defaultmy-service)TRACEMAP_API_KEY(optional)TRACEMAP_ENABLED(defaulttrue)
Endpoint Modes
- Cloud/API mode (
.../api/ingest): sends spans to/api/ingestand logs to/logs - Collector mode: sends spans to
/collect/spansand logs to/collect/logs
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
tracemap_python-1.0.2.tar.gz
(5.1 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 tracemap_python-1.0.2.tar.gz.
File metadata
- Download URL: tracemap_python-1.0.2.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41a647a04b816ad196054d87fe17d3186ce18fe134618431cab1135e5a916d99
|
|
| MD5 |
96ee13a10e3c36396ed7f0caa9f4e4d5
|
|
| BLAKE2b-256 |
cfacb0eb9db7b95f3c998cac2bc51ada82047ff5529cee0b25428e20f565da8b
|
File details
Details for the file tracemap_python-1.0.2-py3-none-any.whl.
File metadata
- Download URL: tracemap_python-1.0.2-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5de03a85da8989cf049d663ab9688b606620ebcf2e7f29c84f0882ed03d5e3ba
|
|
| MD5 |
1be8c4fc5ff891e65a5ddd3a90c62ad2
|
|
| BLAKE2b-256 |
abcd125ef7afee4c6660d963f3cc7bc156f87a1f6e5fd61500c5b99a05119fe5
|