Installation
Install the instrumentation package:Usage
To load the OpenAI instrumentation, specify it in the registerInstrumentations call along with any additional instrumentation you wish to enable.TypeScript Example
Compatibility
@arizeai/openinference-instrumentation-openai is compatible with the following versions of the openai package:
| OpenAI Version | OpenInference Instrumentation Version |
|---|---|
| ^6.0.0 | ^4.0.0 |
| ^5.0.0 | ^3.0.0 |
| ^4.0.0 | ^2.0.0 |