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 (0.1.0b1). No PII masking yet: captured prompts and responses are sent to your backend in cleartext. Not suitable for production or sensitive data. Use in development/staging, or wait for the PII release.

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

Not yet (see Roadmap)

  • PII masking (prompts sent in cleartext today)
  • 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)
  2. Batching & lifecycle (background worker, at-exit/periodic flush, concurrency)
  3. Framework adapters
  4. Distributed propagation (W3C)
  5. Node/TS and Java SDKs

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.0b1-cp310-abi3-win_amd64.whl (802.4 kB view details)

Uploaded CPython 3.10+Windows x86-64

wardex_sdk-0.1.0b1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view details)

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

wardex_sdk-0.1.0b1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.1 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

wardex_sdk-0.1.0b1-cp310-abi3-macosx_11_0_arm64.whl (951.5 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

wardex_sdk-0.1.0b1-cp310-abi3-macosx_10_12_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: wardex_sdk-0.1.0b1-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 802.4 kB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for wardex_sdk-0.1.0b1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 0dc74215c21129682745dad339f55025a5c862f41ee2e307aa6d95e4829b1ec6
MD5 1fd7469df4daac0d47036cbd4756b59a
BLAKE2b-256 7b27f1afa0a0de11789d0b58d77e9b2df75255df207264275506f8a4111b31e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for wardex_sdk-0.1.0b1-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.0b1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for wardex_sdk-0.1.0b1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9aeda212be3f2e9c9771e942b4ee1bf449eb58b524d8052a0ed72084eb9b7a9e
MD5 937dc61bdc71f00c9f4bdd65e44633a3
BLAKE2b-256 fe81d5e4b235c8a081e44df15bf7227b15231ae7ff28eb8ae33aa57e68683a28

See more details on using hashes here.

Provenance

The following attestation bundles were made for wardex_sdk-0.1.0b1-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.0b1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for wardex_sdk-0.1.0b1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c94a1bc81fedf61dec1b66f974c47e2c2fffce0fd2bd89f9e1b3274bb3fe03ae
MD5 2cab0dca341eff1c57ce2ba0920ec0b7
BLAKE2b-256 3756fa0f04941ebbd0ee1ec360b960a43e7e9e3f4fa512e70e92402ee2c3366f

See more details on using hashes here.

Provenance

The following attestation bundles were made for wardex_sdk-0.1.0b1-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.0b1-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for wardex_sdk-0.1.0b1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e8a987f3d494ea92e4beabee0e7977cccf0c85a8123b4df9d1aedf715b28d07e
MD5 853d49bb318bef4c90c7bf444ae019ce
BLAKE2b-256 bfa68fc6e56d5e890b6b7a84b9d0835af92535bde51003fb87ab7a9320cc769a

See more details on using hashes here.

Provenance

The following attestation bundles were made for wardex_sdk-0.1.0b1-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.0b1-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for wardex_sdk-0.1.0b1-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c756815a05381ebaf783f16bc4459fa6bab58119890781d048d471ef49f77719
MD5 ca31ab4a74a92b93d6e15986ee408132
BLAKE2b-256 89f8bea749058f26f199511fe476547abb19d757c4d0140cbd704fb1101b0710

See more details on using hashes here.

Provenance

The following attestation bundles were made for wardex_sdk-0.1.0b1-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