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

# export • Rust AI Agent SDK

> export: Export a trace.

# export

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**TraceExporter**](../classes/TraceExporter) class in the [**trace**](../modules/trace) module.

Export a trace.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def export(&self, trace: &TraceContext) -> Result<(), Box<dyn std::error::Error>>
```

## Parameters

<ParamField query="trace" type="&TraceContext" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="Result<(), Box<dyn std::error::Error>>">
  The result of the operation.
</ResponseField>
