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

Uploaded CPython 3.10+Windows x86-64

wardex_sdk-0.1.0b2-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.0b2-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.0b2-cp310-abi3-macosx_11_0_arm64.whl (952.1 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

wardex_sdk-0.1.0b2-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.0b2-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: wardex_sdk-0.1.0b2-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 802.5 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.0b2-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b04bd065b9edbffa8d8f401efff860a62cabdd7473cbaee16333733b337f875c
MD5 98d56e7b69df1e445f08b9b47d444a07
BLAKE2b-256 48e92ff9685ed50fadc6e0ee18c114ef7642777aa7b001a2fbf92c62dcaae75b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for wardex_sdk-0.1.0b2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ebe888187c311c60b4bd66da9c5d5b2a780bd13c4d5f7efd021c21243fdf754f
MD5 e2691d1fd1c1864716b7f4d87b92d75d
BLAKE2b-256 cbb783875756f2df0d55060b18bd31494dc548d1e534cb3bdd7f01080f6619e2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for wardex_sdk-0.1.0b2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e01de5070a85d4c4be57459953d801748d9002a1c2ab82507cf3036411ec86d3
MD5 983be7bb589d66dc6ff1a9df4a5248ab
BLAKE2b-256 fdae1d5f98eae3a30c222cedfb0dbde5df07e4922ca8e27357d9bdd2d1f580de

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for wardex_sdk-0.1.0b2-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 adc8e859502c1bdad23e6427f0297840897a077967e9f75076a5d5802ad4ae44
MD5 d1c760d40d7b70454b05d86534a35363
BLAKE2b-256 7a315666ec60dd9373575f28cf29bca75f6adc636cdea75631fbf4b79429aacc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for wardex_sdk-0.1.0b2-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b5ea1935b5b2e181088ed12755f9a2e3e144113ad35195ae99d2a5c338c0b232
MD5 f60e25584fd50753daf6b3db24a3b041
BLAKE2b-256 900bff8b46d4cace7cdb152c8444b0f32024cae27af1f052f3b16539ff15f00b

See more details on using hashes here.

Provenance

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