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

# get_tracer()

> Access the OpenTelemetry tracer for manual span creation

## Overview

Returns the OpenTelemetry tracer so you can create spans manually when decorators are not sufficient.

## Example

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

client = get_client()
tracer = client.get_tracer()

with tracer.start_as_current_span("custom_operation") as span:
    span.set_attribute("custom.key", "value")
    pass
```
