> ## 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.

# End Trace • Rust AI Agent SDK

> end_trace: End a trace and export.

# end\_trace

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

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

End a trace and export.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def end_trace(&self, trace_id: &str) -> ()
```

## Parameters

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

### Returns

<ResponseField name="Returns" type="()">
  The result of the operation.
</ResponseField>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Tracing" icon="chart-line" href="/docs/rust/tracing" />

  <Card title="Rust Telemetry" icon="signal" href="/docs/rust/telemetry" />
</CardGroup>
