Skip to main content

conduit-observability

The Python SDK for Conduit, secure, self-hosted observability for AI agents. It sends traces, logs and metrics from your agent to a Conduit gateway over gRPC with mutual TLS.

pip install conduit-observability

Requires Python 3.10 or newer, and a running Conduit gateway with a client certificate for your agent. See Deployment.

Quick start

from conduit_observability import Client, LLMCall, SEVERITY_WARN

with Client(
    "gateway.example.com:4317",
    tls_cert="certs/research-bot.crt",   # your agent's client certificate
    tls_key="certs/research-bot.key",
    tls_ca="certs/ca.crt",               # the only CA trusted for the gateway
) as client:
    with client.span("agent.run") as run:
        run.set_attr("task", "summarize")

        with client.span("llm.call") as llm:          # nested: same trace
            resp = call_model(prompt)                  # an exception marks the span as an error
            llm.record_llm_call(LLMCall(model=resp.model, prompt=prompt, completion=resp.text,
                                        input_tokens=resp.input_tokens, output_tokens=resp.output_tokens))
            llm.set_ok()

        client.log(SEVERITY_WARN, "retrying tool call", {"attempt": 2})   # linked to agent.run
        client.gauge("queue_depth", 7, {"queue": "tasks"})

What you get

  • Spans that nest automatically. The current span is tracked with contextvars, so nesting is correct across threads and asyncio tasks.
  • Errors recorded for you: an exception inside with client.span(...) marks the span as an error, records the message, and propagates.
  • Logs (client.log) linked to the current span, and metrics (client.gauge, client.counter).
  • Strict TLS: the gateway is verified against your CA only, never the system roots.
  • Identity from your certificate: the gateway takes your agent's identity from the certificate's CommonName, so an attribute can't spoof it.

Documentation

Licensed under Apache-2.0.

Metadata

Release files for conduit-observability 0.1.0

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

Source distribution (sdist)

Source distribution for conduit-observability 0.1.0
File Size Uploaded Provenance Actions
conduit_observability-0.1.0.tar.gz 19.1 kB With provenance Details for conduit_observability-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for conduit-observability 0.1.0
File Interpreter ABI Platform Actions
conduit_observability-0.1.0-py3-none-any.whl Python 3 none any Details for conduit_observability-0.1.0-py3-none-any.whl

Total release size: 42.3 kB

Release files / conduit_observability-0.1.0.tar.gz

Download URL conduit_observability-0.1.0.tar.gz
Size 19.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8de73177fd9ad1412a9e200d71fe12ab4b9ffcd951ff3649589f62516ace61fa
BLAKE2b-256 checksum
How to use checksums
a419467e089e7c824bbea014b646a28a9c54b436b8b274ef86a20d0bb14f629f
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 Nov 4, 2026.

Transparency log

Release files / conduit_observability-0.1.0-py3-none-any.whl

Download URL conduit_observability-0.1.0-py3-none-any.whl
Size 23.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
955039251e05e521105f1be0855537481f2b27a7da216a3cc859d905e601a19e
BLAKE2b-256 checksum
How to use checksums
e2eebfba0cc96906fec76cd4c7c18e8b3c0c17a07ca5e55da1d91d3fc666d3ed
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 Nov 4, 2026.

Transparency log

Security for conduit-observability 0.1.0

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 conduit_observability-0.1.0.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 Nov 4, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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