Telemetry Module API Reference¶
This section documents the internals of the telemetry
module in Bijux CLI.
bijux_cli.contracts.telemetry ¶
Defines the contract for the fire-and-forget telemetry service.
This module specifies the TelemetryProtocol
, a formal interface that any service responsible for collecting and managing "fire-and-forget" telemetry or analytics events must implement.
TelemetryProtocol ¶
Bases: Protocol
Defines the contract for fire-and-forget analytics collection.
This interface specifies the methods for recording telemetry events and managing the lifecycle of the telemetry service.
enable ¶
event ¶
Records a telemetry event.
Parameters:
-
name
(str
) –The name of the event (e.g., "COMMAND_START").
-
payload
(dict[str, Any]
) –A dictionary of key-value pairs containing the event data.
Returns:
-
None | Coroutine[Any, Any, None]
–Either None (sync) or an awaitable resolving to None (async).