Skip to main content

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.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for weharness-tracing 0.1.2
File Size Uploaded Provenance Actions
weharness_tracing-0.1.2.tar.gz 8.4 kB With provenance Details for weharness_tracing-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for weharness-tracing 0.1.2
File Interpreter ABI Platform Actions
weharness_tracing-0.1.2-py3-none-any.whl Python 3 none any Details for weharness_tracing-0.1.2-py3-none-any.whl

Total release size: 17.8 kB

Release files / weharness_tracing-0.1.2.tar.gz

Download URL weharness_tracing-0.1.2.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9320d6906413f62f9f46da48d84b38297e94324eb0a80ae26338a8b2aaf8514c
BLAKE2b-256 checksum
How to use checksums
dd2def303672736aedc3a185eaa24f61661e7e4ff9a727a02296acf0b02e04f8
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 log

Release files / weharness_tracing-0.1.2-py3-none-any.whl

Download URL weharness_tracing-0.1.2-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
75e0dcffb3f0f9a986836b94f5ed1814244f015fa6bf5682a6a49b6f86ec93a2
BLAKE2b-256 checksum
How to use checksums
318b99641930bc1b673d4d93d0c4cdfdcb53e7c19d33f49a3be7ddeb7a87ae35
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 log

Security for weharness-tracing 0.1.2

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.

Select from 2 files

Attestation for weharness_tracing-0.1.2.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 log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page