> ## Documentation Index
> Fetch the complete documentation index at: https://docs.keywordsai.co/llms.txt
> Use this file to discover all available pages before exploring further.

# flush()

> Force flush pending spans

## Overview

Flushes the tracer’s processors/exporter. Available on `KeywordsAITelemetry` and `KeywordsAIClient`.

## Example

```python theme={"system"}
from keywordsai_tracing import KeywordsAITelemetry, get_client

KeywordsAITelemetry().flush()
get_client().flush()
```
