View the example project on GitHub for full context.
Launch Arize
To get started, sign up for a free Arize account. You’ll need your Space ID and API Key to configure tracing.Install
Install the necessary OpenInference, OpenTelemetry, and OpenAI packages:Setup Tracing
Create an instrumentation file (e.g.,instrumentation.ts or instrumentation.js) to configure OpenTelemetry and the Arize exporter. This setup will instrument the OpenAI SDK and send traces to your Arize account.
instrumentation.ts (or .js) file at the very beginning of your application’s entry point.
Run OpenAI
Observe
After setting up instrumentation and running your OpenAI Node.js application, traces will be sent to your Arize account. You can then visualize and analyze your LLM interactions within Arize.Support Notes
-
Instrumentation version >1.0.0 of
@arizeai/openinference-instrumentation-openaisupports both attribute masking and context attribute propagation to spans. - Ensure your Node.js version is compatible with the OpenTelemetry (and relevant gRPC libraries if used).