Open-source observability SDK for AI agents — zero-instrumentation capture, OpenTelemetry-native
Project description
wardex-sdk
Open-source observability SDK for AI agents — zero-instrumentation capture, OpenTelemetry-native.
⚠️ Beta. PII masking is on by default (see below), but the SDK is still early: review the caveats below before sending sensitive data through it.
Install
pip install wardex-sdk
Quickstart
import wardex_sdk as wardex
from wardex_sdk import OtlpHttpTransport
wardex.init(
transport=OtlpHttpTransport(endpoint="https://<your-collector>/v1/traces"),
intercept=True, # zero-instrumentation capture of LLM calls
)
# your app code — OpenAI/Anthropic calls are captured automatically
wardex.close() # optional — spans auto-flush every 5s, on buffer threshold, and at exit
Status
Works today
- Zero-instrumentation capture of LLM HTTP calls (OpenAI, Anthropic) over
https, cleartexthttp, and h2c gen_aisemantics: model, tokens, parameters, finish reasons, input/output messages- Transport metrics (TCP/TLS timing, TTFT), gRPC (grpclib), WebSocket (
wss), MCP stdio - Export to any OpenTelemetry backend via
OtlpHttpTransport - Manual span decorators:
@workflow/@agent/@task/@tool/@span - PII masking on by default: emails, phone numbers, credit cards (Luhn-verified),
US SSNs, IP addresses, bank routing numbers, IBANs, and API-key/token secrets
are masked before anything leaves the process (
pii_mode=PIIMode.OFFto disable,pii_disabled_categories={PIICategory.IP_ADDRESS}for per-category opt-out) - Background batching: automatic flush every 5s / on buffer threshold /
at exit and on SIGINT/SIGTERM (chained; opt out with
flush_on_signals=False)
Not yet (see Roadmap)
- Framework adapters (LangGraph, Anthropic/OpenAI Agent SDKs)
- Distributed context propagation (W3C traceparent)
- Node/TS and Java SDKs
Notes
- After
os.fork()the worker respawns lazily in the child on first capture; spans buffered before the fork may be sent by both processes (duplicates are possible; a fork landing mid-export can also strand the child's pre-fork buffer — re-init in the child for a clean slate). Under uWSGI enable threads (--enable-threads).
Roadmap
PII masking (pre-send safety)— shippedBatching & lifecycle (background worker, at-exit/periodic flush, concurrency)— shipped- Framework adapters
- Distributed propagation (W3C)
- Node/TS and Java SDKs
PII masking caveats:
before_sendsees pre-masking data (masking runs inside the encoder), the Console transport prints raw (local debugging only), and non-UTF-8 binary payloads pass through unmasked.
License
Apache-2.0. See LICENSE and NOTICE.
"Wardex" is a trademark of Wardex Labs.
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 Distributions
Built Distributions
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 wardex_sdk-0.1.0b4-cp310-abi3-win_amd64.whl.
File metadata
- Download URL: wardex_sdk-0.1.0b4-cp310-abi3-win_amd64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.10+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e312d5bda934589acd3c6f4ddbfd49dc1ce351a3b8b34e8c820a5378b19c07b
|
|
| MD5 |
232c89e7b86f76ce905d6c7d0dc8aa94
|
|
| BLAKE2b-256 |
58dc999e39aac984cce23e043d4a5778b39cbc91249404993a6982d45f0a02b7
|
Provenance
The following attestation bundles were made for wardex_sdk-0.1.0b4-cp310-abi3-win_amd64.whl:
Publisher:
release-python.yml on wardex-labs/wardex-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wardex_sdk-0.1.0b4-cp310-abi3-win_amd64.whl -
Subject digest:
8e312d5bda934589acd3c6f4ddbfd49dc1ce351a3b8b34e8c820a5378b19c07b - Sigstore transparency entry: 2096213775
- Sigstore integration time:
-
Permalink:
wardex-labs/wardex-sdk@c76a5bb61deb5704fafbcb935c73f82f150e16b9 -
Branch / Tag:
refs/tags/python-v0.1.0b4 - Owner: https://github.com/wardex-labs
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@c76a5bb61deb5704fafbcb935c73f82f150e16b9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file wardex_sdk-0.1.0b4-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: wardex_sdk-0.1.0b4-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7676fe6b80f8e348c2f7286d09ed11fbceabb5a5d42079df2cdecca05f9bf8f6
|
|
| MD5 |
92962d522841e0d256b3787b5ff26799
|
|
| BLAKE2b-256 |
88e3c500a14ee769bc0684b443111329364339eafe4b13bc56fdb6c49bfdc3a6
|
Provenance
The following attestation bundles were made for wardex_sdk-0.1.0b4-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
release-python.yml on wardex-labs/wardex-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wardex_sdk-0.1.0b4-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
7676fe6b80f8e348c2f7286d09ed11fbceabb5a5d42079df2cdecca05f9bf8f6 - Sigstore transparency entry: 2096214179
- Sigstore integration time:
-
Permalink:
wardex-labs/wardex-sdk@c76a5bb61deb5704fafbcb935c73f82f150e16b9 -
Branch / Tag:
refs/tags/python-v0.1.0b4 - Owner: https://github.com/wardex-labs
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@c76a5bb61deb5704fafbcb935c73f82f150e16b9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file wardex_sdk-0.1.0b4-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: wardex_sdk-0.1.0b4-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7ed55d6b7af4389a9f47d89670b0f7fcfa8037447ba25c4eb8d1dacc22c958e
|
|
| MD5 |
9836e36b472f1da444c3582201c53d3a
|
|
| BLAKE2b-256 |
c6703a02e891df9623fd92e43a27e8702cbf35b76173954d2a3ed06038e33961
|
Provenance
The following attestation bundles were made for wardex_sdk-0.1.0b4-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:
Publisher:
release-python.yml on wardex-labs/wardex-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wardex_sdk-0.1.0b4-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl -
Subject digest:
c7ed55d6b7af4389a9f47d89670b0f7fcfa8037447ba25c4eb8d1dacc22c958e - Sigstore transparency entry: 2096214276
- Sigstore integration time:
-
Permalink:
wardex-labs/wardex-sdk@c76a5bb61deb5704fafbcb935c73f82f150e16b9 -
Branch / Tag:
refs/tags/python-v0.1.0b4 - Owner: https://github.com/wardex-labs
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@c76a5bb61deb5704fafbcb935c73f82f150e16b9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file wardex_sdk-0.1.0b4-cp310-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: wardex_sdk-0.1.0b4-cp310-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.10+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ca6ff0ec3e28485f5b7c4d3c8058a91a6efc43be6734b3472ddb9d7854cf6d1
|
|
| MD5 |
9c1b2705db77c74e079738719ba06c73
|
|
| BLAKE2b-256 |
31b01f6f38ce555f59d89d6fd281bbffe718b047079d3d6449c182efb6836830
|
Provenance
The following attestation bundles were made for wardex_sdk-0.1.0b4-cp310-abi3-macosx_11_0_arm64.whl:
Publisher:
release-python.yml on wardex-labs/wardex-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wardex_sdk-0.1.0b4-cp310-abi3-macosx_11_0_arm64.whl -
Subject digest:
1ca6ff0ec3e28485f5b7c4d3c8058a91a6efc43be6734b3472ddb9d7854cf6d1 - Sigstore transparency entry: 2096213519
- Sigstore integration time:
-
Permalink:
wardex-labs/wardex-sdk@c76a5bb61deb5704fafbcb935c73f82f150e16b9 -
Branch / Tag:
refs/tags/python-v0.1.0b4 - Owner: https://github.com/wardex-labs
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@c76a5bb61deb5704fafbcb935c73f82f150e16b9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file wardex_sdk-0.1.0b4-cp310-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: wardex_sdk-0.1.0b4-cp310-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.10+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4a22c74d5fedb0beae623f8dd8f22a6af02db6b184519860f61ac8ff2fd57aa
|
|
| MD5 |
c8ee7d7f42c63e018fcb6c1df787b8c0
|
|
| BLAKE2b-256 |
5d8091b0fcc8ba94136f640e84a22eabd6e59ff01dfa9124b6b0cf66db2d59f1
|
Provenance
The following attestation bundles were made for wardex_sdk-0.1.0b4-cp310-abi3-macosx_10_12_x86_64.whl:
Publisher:
release-python.yml on wardex-labs/wardex-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wardex_sdk-0.1.0b4-cp310-abi3-macosx_10_12_x86_64.whl -
Subject digest:
b4a22c74d5fedb0beae623f8dd8f22a6af02db6b184519860f61ac8ff2fd57aa - Sigstore transparency entry: 2096214549
- Sigstore integration time:
-
Permalink:
wardex-labs/wardex-sdk@c76a5bb61deb5704fafbcb935c73f82f150e16b9 -
Branch / Tag:
refs/tags/python-v0.1.0b4 - Owner: https://github.com/wardex-labs
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@c76a5bb61deb5704fafbcb935c73f82f150e16b9 -
Trigger Event:
push
-
Statement type: