supatrace (Python)
Alpha Python client for SupaTrace. Requires Python 3.10 or later. The base package has zero required dependencies.
Install
Coming soon. Until then send traces with the stock OpenTelemetry exporter (see the OTLP quickstart) or the Python/Node snippets on Home. To use this SDK from the public repository root:
pip install ./packages/supatrace
Send your first trace
In SupaTrace, create an ingest key from Home or API keys. Install the optional OpenTelemetry Protocol (OTLP) exporter and set the key in your shell:
pip install './packages/supatrace[otlp]'
export SUPATRACE_API_KEY='YOUR_INGEST_KEY'
Run this Python code. It sends one trace to https://supatrace.dev/v1/traces.
Open Traces in the same workspace to find hello-supatrace.
import os
import supatrace
trace = supatrace.init(
service="hello-supatrace",
mode="otlp",
endpoint=os.environ.get("SUPATRACE_OTLP_ENDPOINT", "https://supatrace.dev"),
api_key=os.environ["SUPATRACE_API_KEY"],
)
if not trace.capture["sending"]:
raise RuntimeError("OTLP is inactive; check the install, endpoint and ingest key")
trace.span("hello-supatrace")
trace.flush()
trace.close()
The exporter authenticates with x-supatrace-key and Authorization: Bearer.
It sends OTLP/HTTP protobuf. An ingest key selects its workspace and environment;
no project ID is needed for this quickstart.
Local mode and configuration
supatrace.init() defaults to mode="source". It sends nothing, even when a key
and endpoint exist in the environment. trace.span(name) or trace.batch(events)
writes a local JSON batch to ~/.supatrace/pending for review.
trace.batch(events, dry_run=True) validates without writing.
OTLP sending requires explicit mode="otlp", an endpoint, a key and the optional
exporter. trace.capture reports whether a sender is active and why instrumentation
was skipped. Initialization and import do not create traces.
SUPATRACE_API_KEY: ingest key; explicitapi_key=takes precedence.SUPATRACE_OTLP_ENDPOINT: origin without/v1/traces; explicitendpoint=takes precedence.SUPATRACE_SERVICE: service name; explicitservice=takes precedence.SUPATRACE_SPOOL: local spool directory; explicitspool=takes precedence.SUPATRACE_PROJECT: project label for keys without an embedded project. Hosted ingest uses the key's scope.SUPATRACE_CAPTURE_CONTENT=1: opt into provider prompt/output capture; explicitcapture_content=takes precedence.
Prompt/output capture is off by default. Attributes passed to span() and data
passed to batch() are recorded as supplied; keep secrets out of those values.
Python provider auto-instrumentation requires separately installed instrumentor
packages. This quickstart records an explicit span and calls no model provider.
License
Apache-2.0. Copyright 2026 Slancha, Inc. See LICENSE.
Metadata
Release files for supatrace 0.1.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 | Provenance | Actions |
|---|---|---|---|---|
| supatrace-0.1.0.tar.gz | 14.7 kB | Without provenance | Details for supatrace-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| supatrace-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for supatrace-0.1.0-py3-none-any.whl |
Total release size: 30.2 kB
Release files / supatrace-0.1.0.tar.gz
| Download URL | supatrace-0.1.0.tar.gz |
|---|---|
| Size | 14.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ffe75cd740416adb98e61102cc9b5ed33250288a56830a8fff8386a99b2313e6
|
|
BLAKE2b-256 checksum How to use checksums |
5127747d9ba4ecfd06310f0b2023fbb290ef18db60be7c439cb438e6cff67ac7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.11
|
Release files / supatrace-0.1.0-py3-none-any.whl
| Download URL | supatrace-0.1.0-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c7959e5acf65512bd8be2ea5ac976a6d346fc243483f4615b518b37c55a6f383
|
|
BLAKE2b-256 checksum How to use checksums |
c4b67d068a7c91f47ebffff1db4c2ee28156120a52b0cacd6c8ed3585fcd4bd1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.11
|
Security for supatrace 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.