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.2

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.2
File Size Uploaded
hyperlake_telemetry-0.2.2.tar.gz 19.8 kB Details

Built distribution (wheel)

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

Total release size: 36.4 kB

Release files / hyperlake_telemetry-0.2.2.tar.gz

Download URL hyperlake_telemetry-0.2.2.tar.gz
Size 19.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ba173756d4110501855362ce7a31ea44e93540e721c9477a0ae0420466a7ca88
BLAKE2b-256 checksum
How to use checksums
33a2444d1d00d16f20d31ec38ce3ba1afa011b9aec690ef795322383c7322c8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.14

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

Download URL hyperlake_telemetry-0.2.2-py3-none-any.whl
Size 16.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3318d0bad36192ce59388f70320ff7837a98ca8354912ee2649f15f0f82b200e
BLAKE2b-256 checksum
How to use checksums
96390a0d33a4b7f6aadc5b51649577ffb56c62dce3bc9f2806e6739d463d5a6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.14

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

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