Skip to main content

Open-source observability SDK for AI agents — zero-instrumentation capture, OpenTelemetry-native

Project description

wardex-sdk

PyPI License

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.flush()   # manual flush (background batching is on the roadmap)
wardex.close()

Status

Works today

  • Zero-instrumentation capture of LLM HTTP calls (OpenAI, Anthropic) over https, cleartext http, and h2c
  • gen_ai semantics: 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.OFF to disable, pii_disabled_categories={PIICategory.IP_ADDRESS} for per-category opt-out)

Not yet (see Roadmap)

  • Background batching / periodic & at-exit flush (manual flush()/close() only)
  • Framework adapters (LangGraph, Anthropic/OpenAI Agent SDKs)
  • Distributed context propagation (W3C traceparent)
  • Node/TS and Java SDKs

Roadmap

  1. PII masking (pre-send safety) — shipped
  2. Batching & lifecycle (background worker, at-exit/periodic flush, concurrency)
  3. Framework adapters
  4. Distributed propagation (W3C)
  5. Node/TS and Java SDKs

PII masking caveats: before_send sees 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

wardex_sdk-0.1.0b3-cp310-abi3-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.10+Windows x86-64

wardex_sdk-0.1.0b3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

wardex_sdk-0.1.0b3-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.8 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

wardex_sdk-0.1.0b3-cp310-abi3-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

wardex_sdk-0.1.0b3-cp310-abi3-macosx_10_12_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

Details for the file wardex_sdk-0.1.0b3-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for wardex_sdk-0.1.0b3-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 f2bd372a6ceaa275d39cf18e1d54eed29bb30d4102f46729ba2a9be4b79d8e31
MD5 d51ff309e5f6b6479976511e0768175d
BLAKE2b-256 e7af8dc208705c47d6ad58b8c78b79a54d3e9ce284056dfc141f6ed5ee152ab8

See more details on using hashes here.

Provenance

The following attestation bundles were made for wardex_sdk-0.1.0b3-cp310-abi3-win_amd64.whl:

Publisher: release-python.yml on wardex-labs/wardex-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file wardex_sdk-0.1.0b3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for wardex_sdk-0.1.0b3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a58b54874687b9ca52af03d0843dada3af57f00f53e316578a09b6de90ccb887
MD5 e26ac3461c1e77aee58f820f425b9eed
BLAKE2b-256 2860ff063acf2e8c2fbfb00379172fabfc45edf4ee218913134ac86f66a155cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for wardex_sdk-0.1.0b3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release-python.yml on wardex-labs/wardex-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file wardex_sdk-0.1.0b3-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for wardex_sdk-0.1.0b3-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fa747391cfe67462e747a74a7b5fb99871e3e6eb17c670a401b225927d70aee8
MD5 112a8d63dcf1edde3b772e4e37a4c5fa
BLAKE2b-256 6b3b75693b3daf648d766e0cc00af4c17e26f3849e67de612f93d1c6d717c4ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for wardex_sdk-0.1.0b3-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release-python.yml on wardex-labs/wardex-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file wardex_sdk-0.1.0b3-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for wardex_sdk-0.1.0b3-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 34c14fb4c0bca7768d41dc5e8b1220ce05813047a4d75a3e905fa440f2bb9164
MD5 8b4eaab3199b9e5e1703460e8f6ff620
BLAKE2b-256 8a189f6b4e13ae553e2ebde65782b9016a5cf6613e0e4b9b5f2eefd5aa6a476f

See more details on using hashes here.

Provenance

The following attestation bundles were made for wardex_sdk-0.1.0b3-cp310-abi3-macosx_11_0_arm64.whl:

Publisher: release-python.yml on wardex-labs/wardex-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file wardex_sdk-0.1.0b3-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for wardex_sdk-0.1.0b3-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3ac413fe659a589a8c0323046da12df75eda9a7807cba00780793e7cdbe176eb
MD5 52bd0c7d37dee3d99fae939eb6703eb4
BLAKE2b-256 825ae502ddbb66be5c9dac959fde69a70d107158d4c3947647555d4cf0502a59

See more details on using hashes here.

Provenance

The following attestation bundles were made for wardex_sdk-0.1.0b3-cp310-abi3-macosx_10_12_x86_64.whl:

Publisher: release-python.yml on wardex-labs/wardex-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page