We will cover the necessary steps to instrument your AI application and start monitoring and evaluating its performance.

1

Create a repository

Select Logs from the sidebar and click the “Create repository” button.

2

Install SDK

npm install @maximai/maxim-js
3

Initialize SDK

import Maxim from "@maximai/maxim-js"

const maxim = new Maxim({ apiKey: "" });

const logger = await maxim.logger({ id: "" });
4

Start tracing

const trace = logger.trace({
id: "trace-id", // Unique ID of the trace
name: "user-query",
});

trace.input("Hello, how are you?");
trace.output("I'm fine, thank you!");
trace.end();