Observability, tracing, and telemetry framework for Hush
Project description
hush-telemetry
External tracing backends for Hush workflows — Langfuse, OpenTelemetry, and local visualization.
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
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
hush_telemetry-0.1.14.tar.gz
(18.5 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 hush_telemetry-0.1.14.tar.gz.
File metadata
- Download URL: hush_telemetry-0.1.14.tar.gz
- Upload date:
- Size: 18.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
443d229244544214e4f4f7ced05ce15d292f47cb8e9a5c0d4369336f8f38caa4
|
|
| MD5 |
85cb295ab7d97f7c5899b5c9ba1b5f89
|
|
| BLAKE2b-256 |
2c142f72dc2b742a4bee71eda03307e69ba1042fe0505e0709c50563db7352e2
|
File details
Details for the file hush_telemetry-0.1.14-py3-none-any.whl.
File metadata
- Download URL: hush_telemetry-0.1.14-py3-none-any.whl
- Upload date:
- Size: 26.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
514de567253876560691b14ffefdac77f600a78e898acc6707fab42a5d324ba8
|
|
| MD5 |
2cb0b305854fd2ee86912e52324326d0
|
|
| BLAKE2b-256 |
9ea99b68f4d9f058f6c8174d4a25dfacdddfa255f4221346d8f6dc30803af449
|