cloudbyte-tracer
Python and Node.js SDKs for CloudByte Agent Observability. One trace is one run. Manual steps and optional OpenInference integrations record the step tree, models, token usage, content and errors.
Requires Python 3.10+ or Node.js 20+. Core has zero runtime dependencies. Auto-capture supports OpenAI, Anthropic and LangChain/LangGraph. Content capture is enabled by default.
Install
pip install cloudbyte-tracer
npm install cloudbyte-tracer
To record OpenAI, Anthropic or LangChain/LangGraph calls automatically, install the matching Python extra, for example pip install "cloudbyte-tracer[openai]" (also [anthropic], [langchain], [all]). Node needs a few OpenTelemetry peer packages; see Auto-capture.
Create an agent in CloudByte Agent Observability and set its key as CLOUDBYTE_AGENT_KEY in your application's environment. Do not paste keys into source files. Set CLOUDBYTE_BASE_URL only if your CloudByte server is not https://api.cloudbyte.ai, the default.
from cloudbyte_tracer import init
tracer = init()
with tracer.span("request", kind="agent", input={"question": "hello"}) as run:
with tracer.span("lookup", kind="tool") as step:
step.set_output({"answer": "hello"})
run.set_output("hello")
tracer.shutdown()
import { init } from "cloudbyte-tracer";
const tracer = init();
await tracer.withSpan("request", { kind: "agent" }, async run => {
await tracer.withSpan("lookup", { kind: "tool" }, step => step.setOutput("hello"));
run.setOutput("hello");
});
await tracer.shutdown();
Documentation
- Getting started
- Manual tracing
- Auto-capture
- Configuration and limits
- Privacy and redaction
- Troubleshooting
- Development, tests and releases
All provider examples use mocked responses by default and require no provider keys. Set CLOUDBYTE_DISABLED=true for completely offline execution. With a CloudByte key configured, they send traces to your selected endpoint.
Delivery guarantees
Sending is best effort, with a bounded in-memory queue and retry budget. Shutdown flushes with a deadline; delivery is not durable. Root spans send start and end copies, children send only end copies. A root's end copy is sent first, so a run is marked finished even if a deadline drops some of its steps. Batch jobs that create many steps should call flush(timeout=60) (Python) or await flush(60000) (Node) before exiting. A 401 or 403 stops that tracer permanently; restart after correcting access.
Apache-2.0.
Metadata
Release files for cloudbyte-tracer 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cloudbyte_tracer-0.1.1.tar.gz | 31.3 kB | With provenance | Details for cloudbyte_tracer-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cloudbyte_tracer-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for cloudbyte_tracer-0.1.1-py3-none-any.whl |
Total release size: 56.3 kB
Release files / cloudbyte_tracer-0.1.1.tar.gz
| Download URL | cloudbyte_tracer-0.1.1.tar.gz |
|---|---|
| Size | 31.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
78a829b2d7e4359051b86f58625fb77b3cb865e110d5604709d2be3370630e8e
|
|
BLAKE2b-256 checksum How to use checksums |
473684f0d7447da20c245a49d1e6e67ec2f864b0bbc951ae4da5086958ebb2e0
|
| 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 27, 2026.
Transparency logRelease files / cloudbyte_tracer-0.1.1-py3-none-any.whl
| Download URL | cloudbyte_tracer-0.1.1-py3-none-any.whl |
|---|---|
| Size | 25.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
59197ec5a9e7b77da806b1f8866c88bc014dd0e417774a402775d96e0fd5f6b6
|
|
BLAKE2b-256 checksum How to use checksums |
0a2a3ae0a28cc6c61a9be21ea2841598186dbb90b50af61a83297fc81b320260
|
| 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 27, 2026.
Transparency logSecurity for cloudbyte-tracer 0.1.1
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
Both files in this release have been uploaded with provenance metadata.
Attestation for cloudbyte_tracer-0.1.1.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 27, 2026.
Transparency logA 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.