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.
using Nutrient;Telemetry is a static class: call its members on the class itself.
Methods
Flush
public static void Flush(int timeoutMilliseconds)Waits 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 |
|---|---|---|
timeoutMilliseconds | int |
SendPayloadsFromDirectory
public static void SendPayloadsFromDirectory(string directory)Re-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 | string |