Skip to main content

Hyperlake Telemetry SDK for Python

Version 0.2.0 adds shared operations snapshots and redirect refusal. See SDK integration and release status. The 0.1.0 registry package does not contain these additions.

hyperlake-telemetry sends standards-compatible OTLP/HTTP JSON, attaches events and immutable artifacts, manages tenant-editable settings, and performs scoped event, artifact, video, Run, and evidence-graph investigations. It does not replace the OpenTelemetry SDK: applications with existing instrumentation should continue using their normal exporter and use this package only for run context, stable event identity, evaluations, and artifact attachment.

pip install hyperlake-telemetry
from hyperlake_telemetry import Client, Privacy

client = Client(
    base_url="https://us.hyperlake.cloud",
    protocol_token="write-only-protocol-token",
    tenant_jwt="short-lived-jwks-jwt",
    privacy=Privacy(capture_content=False),
)

with client.run("invoice-agent", goal_id="goal-42") as run:
    with run.span("lookup-account", kind="RETRIEVER"):
        pass
    run.evaluate("groundedness", score=0.97, label="pass")

client.flush()

result = client.semantic_query(
    "Show critical robot video and related faults from the last 2 hours"
)

detection = client.analyze_live_frame(
    "./frame.jpg",
    stream_session_id="camera-session-17",
    frame_id="frame-42",
    device_id="robot-17",
)

analyze_live_frame() uses the immutable model profile pinned to the JWT's pipeline. It requires a short-lived JWT with live:analyze and event:ingest. The response is a factual object-detection result; the attached live Rule Packs determine whether it becomes an alert or notification.

The JWT determines tenant and pipeline routing. Explicit routing IDs are optional with a JWT and are rejected when they conflict with its claims. Local claim decoding is not signature verification; the regional service verifies signature, issuer, audience, expiry, permissions, tenant, and pipeline for every request. Prompt, response, tool argument, and tool result content is suppressed by default. Set capture_content=True only after applying an approved data policy.

See the repository integration guides for Temporal, Langflow, OpenInference, Collector, and Alloy examples.

Reliable semantic queries

semantic_query() creates and validates a versioned, bounded query plan before calling any endpoint. Plans may target event retrieval, artifact/vector search, and evidence-graph traversal, but cannot contain tenant, pipeline, URL, token, SQL, or authorization fields. Every response includes the plan hash and scope provenance.

DeterministicSemanticPlanner works without an LLM. ModelSemanticPlanner accepts any callable that returns a JSON-like object; unsafe or invalid model output falls back to the deterministic plan. A model therefore interprets user intent but cannot expand authorization or execute arbitrary queries.

Artifact and video retrieval uses configured vector embeddings. Event retrieval is bounded structured/lexical retrieval, while graph results come from recorded scoped evidence edges. These signals remain separate and similarity is not treated as causation.

The client also exposes event listing/search, artifact search/upload/download, typed telemetry, video playback/timeline, Runs, evidence graphs, tenant config, protocol-token rotation, and Rule Pack validate/dry-run/publish helpers.

Metadata

Release files for hyperlake-telemetry 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hyperlake-telemetry 0.2.1
File Size Uploaded
hyperlake_telemetry-0.2.1.tar.gz 19.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hyperlake-telemetry 0.2.1
File Interpreter ABI Platform
hyperlake_telemetry-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 35.8 kB

Release files / hyperlake_telemetry-0.2.1.tar.gz

Download URL hyperlake_telemetry-0.2.1.tar.gz
Size 19.4 kB
Tags Source
SHA-256 checksum
How to use checksums
88fa7e7ef04f166f29e2c142adf8389d286bf2f8e6a06c7b1e2ff92239892d40
BLAKE2b-256 checksum
How to use checksums
6e01e86e592584bf4abd938f57d924b7ba391471ada430e2c0014b2767baa1f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.7

Release files / hyperlake_telemetry-0.2.1-py3-none-any.whl

Download URL hyperlake_telemetry-0.2.1-py3-none-any.whl
Size 16.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bb20216020f88576f0bc42d2f8eb0306f70aae0f9a59345ec80b5b078ae378a3
BLAKE2b-256 checksum
How to use checksums
e4d79415b1a31e5c98063c3b47f892eadd6f2ae81c7464270874201c0d0b5b57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.7

Release history Release notifications | RSS feed

0.2.2

2 release files

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page