@arizeai/openinference-instrumentation-llama-index
v0.0.12
Published
OpenInference Instrumentation Llama Index
Downloads
58
Keywords
Readme
OpenInference Instrumentation for LlamaIndex.TS
This module provides automatic instrumentation for LlamaIndex.TS. which may be used in conjunction with @opentelemetry/sdk-trace-node.
Installation
npm install --save @arizeai/openinference-instrumentation-llama-index
Usage
To load the LlamaIndex instrumentation, specify it in the registerInstrumentations call along with any additional instrumentation you wish to enable.
const { NodeTracerProvider } = require("@opentelemetry/sdk-trace-node");
const {
LlamaIndexInstrumentation,
} = require("@arizeai/openinference-instrumentation-llama-index");
const { registerInstrumentations } = require("@opentelemetry/instrumentation");
const provider = new NodeTracerProvider();
provider.register();
registerInstrumentations({
instrumentations: [new LlamaIndexInstrumentation()],
});
For more information on OpenTelemetry Node.js SDK, see the OpenTelemetry Node.js SDK documentation.