WeHarness tracing for Python
Send agent, model and tool spans to WeHarness using OpenTelemetry and OTLP/HTTP. Requires Python 3.10 or newer and a project ingest key from the WeHarness Tracing page.
import weharness_tracing as wh
# Set WEHARNESS_INGEST_KEY in your server environment, never in browser code.
wh.init(service="my-agent")
with wh.agent_run("support"):
with wh.tool_call("lookup_order"):
pass # Call your tool here.
wh.shutdown()
The default endpoint is https://api.weharness.io/otlp/v1/traces.
Override it with WEHARNESS_OTLP_ENDPOINT if needed. Set WEHARNESS_REVISION
to correlate traces with a source revision.
Known prompt, output, tool-payload and stacktrace attributes are filtered by default. This filter is not a general secret detector: do not put secrets or personal data in span names, error messages or custom metadata. Content capture requires explicit configuration and appropriate project settings. An ingest key sends traces; it does not authorize reading them.
An existing OpenTelemetry tracer provider is reused. Background batches are bounded;
call shutdown() to flush pending spans before the process exits.
Metadata
Release files for weharness-tracing 0.1.1
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 |
|---|---|---|---|---|
| weharness_tracing-0.1.1.tar.gz | 8.2 kB | With provenance | Details for weharness_tracing-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| weharness_tracing-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for weharness_tracing-0.1.1-py3-none-any.whl |
Total release size: 17.5 kB
Release files / weharness_tracing-0.1.1.tar.gz
| Download URL | weharness_tracing-0.1.1.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8da25add850e88b21c8cb8f62c7b79c5a138d40f5ca84a820a4deceadd7d4124
|
|
BLAKE2b-256 checksum How to use checksums |
8e01aa7aa3db6d349c4ffbc4647c2f23a4412d2b280062f8d955e8e59f5c6324
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logRelease files / weharness_tracing-0.1.1-py3-none-any.whl
| Download URL | weharness_tracing-0.1.1-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bf4c187a830491790c6217d13bac5849f5a349d9dd6da8f5c3ccda32a8d5bdda
|
|
BLAKE2b-256 checksum How to use checksums |
1cee4c5ff0f37f29f38e40282ed2bc50e53c59cebd1702a7c8e7fb8bbe2acb6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logSecurity for weharness-tracing 0.1.1
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for weharness_tracing-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logA 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.