ObservabilityJS/TS

Overview

Maxim logging is a distributed tracing system that enables real-time log monitoring in production environments.

Generate Maxim API key

Installing SDK

Installing Maxim JS SDK
npm install @maximai/maxim-js

Initializing Maxim logger

Initializing Maxim logger
const { Maxim } = require("@maximai/maxim-js");
 
const maxim = new Maxim({ apiKey: "api-key" });
const logger = await maxim.logger({ id: "log-repository-id" });

Maxim config fields

FieldTypeDescription
apiKeystringMaxim API key
baseUrlstringMaxim API base URL (optional)
debugbooleanEnable debug mode (optional, default is False)
cacheMaximCacheCustom cache implementation (optional)

Logger config fields

FieldTypeDescription
idstringLog repository ID

On this page