Kindred OpenTelemetry tracing SDK with Lemma-style trace contract
Project description
Kindred Tracing (Python)
OpenTelemetry-backed tracing SDK with Lemma-style trace contract.
import os
from kindred_tracing import kindred_trace, async_trace
kindred_trace.init(
service_name="my-agent",
# Defaults to https://api.usekindred.dev/v1/traces when KINDRED_API_KEY is set
api_key=os.environ["KINDRED_API_KEY"],
agent_id=os.environ.get("KINDRED_AGENT_ID"),
)
await async_trace(
{"name": "support-agent", "input": user_message, "thread_id": session_id},
run, # async def run(trace): ...
)
# Flush once on shutdown (do not open a dummy root span)
kindred_trace.flush()
# or: kindred_trace.shutdown()
See the Kindred repo docs under docs/tracing/otel/ for full setup and the replay endpoint contract.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kindred_tracing-0.1.2.tar.gz
(9.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kindred_tracing-0.1.2.tar.gz.
File metadata
- Download URL: kindred_tracing-0.1.2.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76e0a6920aac4f1a39525a49f92295dc913319dbb06550c6925ed50f797087f3
|
|
| MD5 |
0cb8ec3f849c3a18b95915ba6ada1539
|
|
| BLAKE2b-256 |
b64f18a1e05398a8cbe15a26d7899312fab5bee3b34171083536726df44a97ed
|
File details
Details for the file kindred_tracing-0.1.2-py3-none-any.whl.
File metadata
- Download URL: kindred_tracing-0.1.2-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6a43aa0ebdaf8b13fd52a9b7597edcbeeaf78f72300d9bae7c2f18cb6e61767
|
|
| MD5 |
dea76ce5a38b426d26d89dbdc3b8e1bc
|
|
| BLAKE2b-256 |
881dcd93faa7257a254bbb68ac6a31952879f5855a68194ea709ce8839f1a195
|