ObservabilityPython

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 python SDK
pip install maxim-py

Initializing Maxim logger

Initializing Maxim logger
from maxim import Maxim, Config
from maxim.logger import Logger, LoggerConfig
 
maxim = Maxim(Config(api_key="maxim-api-key"))
logger = Logger(LoggerConfig(id="log-repository-id"))

Maxim config fields

FieldTypeDescription
apiKeystrMaxim API key
baseUrlstrMaxim API base URL (optional)
debugboolEnable debug mode (optional, default is False)
raiseExceptionsboolRaise exceptions (optional, default is False)
prompt_managementboolEnable prompt management (optional, default is False)
cacheMaximCacheCustom cache implementation (optional)

Logger config fields

FieldTypeDescription
idstrLog repository ID

On this page