> ## 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 • Rust AI Agent SDK

> end: End the span.

# end

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

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

End the span.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def end(&mut self, end_offset: Duration) -> ()
```

## Parameters

<ParamField query="end_offset" type="Duration" required={true}>
  No description available.
</ParamField>

### Returns

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