# redaction

Python API: `luxonis_ml.telemetry.redaction`

## Functions

### sanitize_properties

```python
def sanitize_properties(properties: Mapping[str, Any] | None, *, allowlist: set[str] | None = None, redact_keys: set[str] | None = None) -> dict[str, Any]:
```

Sanitize event properties before emitting telemetry.

Applies an allowlist, redacts secret-like keys, and converts values to JSON-friendly types.

Parameters

 * `properties` (`Mapping[str, Any] | None`): Input properties to sanitize.
 * `allowlist` (`set[str] | None`): If set, only these keys are included.
 * `redact_keys` (`set[str] | None`): Key substrings that should be redacted.

Returns

 * `dict[str, Any]`: The sanitized property mapping.

## Attributes

### DEFAULT_BLOCKED_KEYS

### DEFAULT_REDACT_KEYS

### MAX_MAPPING_ITEMS

### MAX_SEQUENCE_ITEMS
