# openinference-instrumentation-openlit

**Python · Instrumentation**

OpenInference OpenLIT Instrumentation

- **Module**: `openinference.instrumentation.openlit`
- **Version**: 0.1.26
- **Python**: >=3.10, <3.14

[PyPI](https://pypi.org/project/openinference-instrumentation-openlit/) · [README](https://github.com/Arize-ai/openinference/blob/main/python/instrumentation/openinference-instrumentation-openlit/README.md) · [Source](https://github.com/Arize-ai/openinference/tree/main/python/instrumentation/openinference-instrumentation-openlit)

## Install

```sh
pip install openinference-instrumentation-openlit
```

## `openinference.instrumentation.openlit`

### `OpenInferenceSpanProcessor`

_class_ · [Source](https://github.com/Arize-ai/openinference/blob/main/python/instrumentation/openinference-instrumentation-openlit/src/openinference/instrumentation/openlit/_span_processor.py#L50-L69)

```python
class OpenInferenceSpanProcessor(SpanProcessor)
```

Augments OpenLIT GenAI spans with the corresponding OpenInference attributes. Add to your tracer-provider: provider.add_span_processor(OpenInferenceSpanProcessor())

#### `on_end`

_method_ · [Source](https://github.com/Arize-ai/openinference/blob/main/python/instrumentation/openinference-instrumentation-openlit/src/openinference/instrumentation/openlit/_span_processor.py#L57-L69)

```python
def on_end(span: ReadableSpan) -> None
```
