Learn how to set up tracing using the Maxim platform
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
Copy
Ask AI
npm install @maximai/maxim-js
3
Initialize SDK
Copy
Ask AI
import { Maxim } from "@maximai/maxim-js"const maxim = new Maxim({ apiKey: "" });const logger = await maxim.logger({ id: "" });
4
Start tracing
Copy
Ask AI
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();