Telemetry control surface used by the fiona CLI’s send-only child mode. Lets a parent process dump proto payloads to disk via the NUTRIENT_PAYLOAD_PATH environment variable, exit fast, and have a short-lived child re-hydrate and ship them in parallel.
from nutrient_sdk import TelemetryConstruction
Telemetry()Creates a new Telemetry instance with default settings.
Class Methods
flush
@classmethoddef flush(cls, timeout_milliseconds: int) -> NoneWaits up to timeoutMilliseconds for any in-flight telemetry sends to complete. Strategy-dependent: a no-op for the default channel strategy, blocking for the parallel-send strategy.
Parameters:
| Name | Type | Description |
|---|---|---|
timeout_milliseconds | int |
send_payloads_from_directory
@classmethoddef send_payloads_from_directory(cls, directory: str) -> NoneRe-enqueues every *.pb file in directory into the active telemetry strategy as a raw payload, deleting each file on successful enqueue. Intended for the fiona send-only child mode.
Parameters:
| Name | Type | Description |
|---|---|---|
directory | str |