{"library":"openinference-instrumentation-openai","type":"library","category":null,"description":"OpenInference OpenAI Instrumentation is a Python auto-instrumentation library designed for OpenAI's Python SDK. It automatically generates OpenTelemetry-compatible traces from OpenAI API calls, enabling developers to send these traces to an OpenTelemetry collector, such as Arize Phoenix, for observability and analysis. The library is actively maintained with frequent updates across the OpenInference ecosystem.","language":"python","status":"active","version":"0.1.44","tags":["OpenTelemetry","OpenAI","LLM","observability","tracing","instrumentation","AI"],"install":[{"cmd":"pip install openinference-instrumentation-openai \"openai>=1.26\" opentelemetry-sdk opentelemetry-exporter-otlp arize-phoenix","imports":["from openinference.instrumentation.openai import OpenAIInstrumentor","import openai\nclient = openai.OpenAI()","from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter","from opentelemetry.sdk import trace as trace_sdk","from opentelemetry.sdk.trace.export import SimpleSpanProcessor, ConsoleSpanExporter"]},{"cmd":"pip install openinference-instrumentation-openai","imports":[]}],"homepage":null,"github":"https://github.com/Arize-ai/openinference","docs":null,"changelog":null,"pypi":"https://pypi.org/project/openinference-instrumentation-openai/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":70,"avg_install_s":19.6,"avg_import_s":0.6,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/openinference-instrumentation-openai/compatibility"},"provenance":{"verified_status":"install_fail","verified_at":"Sun Jun 28","last_verified":"Sun Jun 28","next_check":"Sun Jul 05","install_tag":null}}