# record_usage

> **Function** in `langchain_nvidia_ai_endpoints`

📖 [View in docs](https://reference.langchain.com/python/langchain-nvidia-ai-endpoints/_telemetry/record_usage)

Record one logical request without retaining request or response content.

## Signature

```python
record_usage(
    *,
    enabled: bool,
    is_hosted: bool,
    client_name: str,
    model_name: Optional[str],
    success: bool,
    usage: _TokenUsage,
    error_category: str = 'none',
    execution_mode: str = 'sync',
    http_status: str = 'none',
    latency_seconds: float = 0.0,
    ttft_seconds: Optional[float] = None,
    partial: bool = False,
) -> None
```

---

[View source on GitHub](https://github.com/langchain-ai/langchain-nvidia/blob/6ae050630424f2f391455cab039623d01709f364/libs/ai-endpoints/langchain_nvidia_ai_endpoints/_telemetry.py#L502)