Python APIopenlit

Core

Instrumentation

Python · Instrumentation

openinference-instrumentation-openlit

OpenInference OpenLIT Instrumentation

Module
openinference.instrumentation.openlit
Version
0.1.25
Python
>=3.10, <3.14

Install

pip install openinference-instrumentation-openlit

openinference.instrumentation.openlit

OpenInferenceSpanProcessor

classSource ↗
class OpenInferenceSpanProcessor(SpanProcessor)

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

on_end

methodSource ↗
def on_end(span: ReadableSpan) -> None