Skip to main content

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


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.1.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kindred_tracing-0.1.1-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file kindred_tracing-0.1.1.tar.gz.

File metadata

  • Download URL: kindred_tracing-0.1.1.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for kindred_tracing-0.1.1.tar.gz
Algorithm Hash digest
SHA256 eb9c60492575e3728e6d6736a3722767c24aa492760b2cbc5047fbc713ac1da5
MD5 f7690a894f3647724867dd95c59238cb
BLAKE2b-256 d3349c3d81727f578577a8c065f8383762035e0766421768a82b6079d9804d0c

See more details on using hashes here.

File details

Details for the file kindred_tracing-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for kindred_tracing-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5d96d157f70763a7fc5c782982c4842534bb314299f87b70e91a5e8284803d7a
MD5 68518483a138b1ea4b6c68150ccd16d6
BLAKE2b-256 19386390d708079ff8f9c5cdc3ab771b8d3aa25678d167073934770b076a6911

See more details on using hashes here.

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