Skip to content

session

diapason.telemetry.session

Background-sampling telemetry session.

Uses Rust ring buffer — Rust backend is mandatory.

TelemetrySample dataclass

Single telemetry sample.

TelemetrySession

Background-sampling telemetry session.

Spawns a daemon thread that calls monitor.snapshot() at the configured interval. Stores samples in a ring buffer (Rust-backed if available, else pure-Python fallback).

start()

Start background sampling thread.

stop()

Stop sampling thread.