Initialize the LiteLLM instrumentor to enable automatic tracing.
from traceai_litellm import LiteLLMInstrumentorLiteLLMInstrumentor().instrument(tracer_provider=trace_provider)
5. Run LiteLLM
Run LiteLLM as you normally would. Our Instrumentor will automatically trace and send the telemetry data to our platform.
import litellmresponse = litellm.completion( model="gpt-3.5-turbo", messages=[{"content": "What's the capital of India?"}],)print(response.choices[0].message.content)