Skip to main content

Observability, tracing, and telemetry framework for Hush

Project description

hush-telemetry

External tracing backends for Hush workflows — Langfuse, OpenTelemetry, and local visualization.

PyPI Python

Installation

pip install hush-telemetry                 # Langfuse + HushEyes (default)
pip install "hush-telemetry[otel]"         # + OpenTelemetry
pip install "hush-telemetry[all]"          # Everything

Quick Start

from hush.core import Hush, GraphOp, START, END
from hush.telemetry import LangfuseTracer

with GraphOp(name="demo") as graph:
    # ... define ops
    pass

tracer = LangfuseTracer(resource="langfuse:default", tags=["prod"])
engine = Hush(graph, tracer=tracer)
result = await engine.run(inputs={...})
# Traces automatically sent to Langfuse

Supported Backends

Backend Tracer Class Description
HushEyes HushEyesTracer Local trace viewer (SQLite, http://localhost:8420)
Langfuse LangfuseTracer LLM observability platform (custom HTTP, no SDK)
OpenTelemetry OTELTracer Vendor-neutral (Jaeger, Zipkin, Tempo, etc.)

Usage Patterns

from hush.telemetry import HushEyesTracer, LangfuseTracer, LangfuseConfig

# Local visualization
tracer = HushEyesTracer(tags=["dev"])

# Langfuse with ResourceHub
tracer = LangfuseTracer(resource="langfuse:default")

# Langfuse with direct config
tracer = LangfuseTracer(config=LangfuseConfig.from_env())

# Multiple tracers at once
engine = Hush(graph, tracer=[HushEyesTracer(), LangfuseTracer(resource="langfuse:default")])

Configuration

# resources.yaml
tracer:
  langfuse:
    public_key: ${LANGFUSE_PUBLIC_KEY}
    secret_key: ${LANGFUSE_SECRET_KEY}
    host: https://cloud.langfuse.com

Features

  • Hierarchical tracing — pre-computed TraceNode tree with parent-child relationships
  • Token/cost tracking — automatic for LLM ops
  • Stream sampling — cap trace items per generator (default: 100)
  • Background flushing — non-blocking, ThreadPoolExecutor-based
  • No SDK dependency — Langfuse uses custom HTTP client (pure REST API)

Related Packages

Package Description
hush-icore Core engine with built-in LocalTracer
hush-eyes Standalone trace visualization server

License

Apache 2.0

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

hush_telemetry-0.1.9.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

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

hush_telemetry-0.1.9-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

Details for the file hush_telemetry-0.1.9.tar.gz.

File metadata

  • Download URL: hush_telemetry-0.1.9.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hush_telemetry-0.1.9.tar.gz
Algorithm Hash digest
SHA256 ac04f84d05d49a065af9b27b3397750e8a447d6c980bb9c040c7308b4f59be5c
MD5 723562cf60f6120772534f43f8ef920d
BLAKE2b-256 34c900a6657e4bcab854bc5d9020d42605cffbc91abea59d4c77f24296b0ad1f

See more details on using hashes here.

File details

Details for the file hush_telemetry-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: hush_telemetry-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 24.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hush_telemetry-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 b4caad37e0a1bd22a3d450bba5faea6e163878e9a25046a83775b29ccbf99bc8
MD5 9b2fbe9333f25f6f16a79b9a1e9c977e
BLAKE2b-256 92242529bedd8c7c5f20c00b3d4b870d54cbc502053825479abc34207cdac063

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