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

# span_converter

## Module

Convert completed Splunk AO spans to OpenTelemetry spans.

## SpanConverter

Convert one completed Splunk AO span into an OTel readable span.

### convert\_span

```python theme={null}
def convert_span(self,
                 span: BaseStep,
                 span_context: SpanContext,
                 parent_span_context: SpanContext | None,
                 session_id: str | None,
                 resource: Resource,
                 end_time_ns: int | None=None) -> ReadableSpan
```

Build a readable span using the supplied identity and resource.
