Skip to main content
This module provides automatic instrumentation for the OpenAI Node.js SDK which may be used in conjunction with OpenTelemetry.

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

Alternatively, you can set the tracer provider after creating the instrumentation:

Compatibility

@arizeai/openinference-instrumentation-openai is compatible with the following versions of the openai package:

Resources