---
title: "Telemetry"
canonical_url: "https://www.nutrient.io/api/csharp/telemetry/"
md_url: "https://www.nutrient.io/api/csharp/telemetry.md"
last_updated: "2026-10-08T08:55:57.713Z"
description: "Telemetry control surface used by the fiona CLI's send-only child mode."
---

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.

```csharp

using Nutrient;

```

`Telemetry` is a static class: call its members on the class itself.

## Methods

### Flush

```csharp

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

```csharp

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` |             |

---

## Related pages

- [Csharp](/api/csharp.md)
- [Data Extraction](/api/csharp/data-extraction.md)
- [Document](/api/csharp/document.md)
- [License](/api/csharp/license.md)
- [Query](/api/csharp/query.md)
- [Vision](/api/csharp/vision.md)

