telemetry-analysis

command
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Telemetry analysis example

This bounded example demonstrates three extension points without turning bridgectl into an analytics product:

  • deterministic metrics and evidence-backed findings;
  • read-only HTTP endpoints under /api/analytics/;
  • a redacted, size-bounded LLM input packet that excludes thinking streams.

It does not call a model, authenticate users, persist derived analytics, or provide a UI. Those belong in an orchestrator or analytics application.

Reconstructed turns use UTF-8-safe chunks of at most 64 KiB. chunk_index is zero for the first chunk of a logical turn, and continues marks a size-sealed chunk; chunks may share an event sequence. Metrics count logical turns, not continuation chunks. Sequence gaps end a turn rather than presenting missing evidence as continuous text. The LLM packet is limited to 4,000 Unicode characters and 20 evidence entries, and excludes thinking streams.

Run it against an immutable collector segment directory:

go run ./examples/telemetry-analysis \
  --events ./var/telemetry/segments \
  --listen 127.0.0.1:9470
curl http://127.0.0.1:9470/api/analytics/summary
curl http://127.0.0.1:9470/api/analytics/findings
curl http://127.0.0.1:9470/api/analytics/sessions

For a single session, use its composite identity. Use _legacy for a v1 event that has no source ID:

curl http://127.0.0.1:9470/api/analytics/sessions/bridge-a/session-123
curl http://127.0.0.1:9470/api/analytics/llm-packet/bridge-a/session-123

Documentation

Overview

Command telemetry-analysis demonstrates deterministic metrics, read-only analytics APIs, and a bounded packet suitable for a separately governed LLM.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL