Skip to main content

Documentation Index

Fetch the complete documentation index at: https://www.getmaxim.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

How to Set Up Traces?

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();
Traces
Schedule a demo to see how Maxim AI helps teams ship reliable agents.