ObservabilityGo

Overview

Generate Maxim API key

Installing SDK

Importing Maxim Go SDK
import "github.com/maximhq/maxim-go"

Initializing Maxim logger

Initializing Maxim Go SDK
import "github.com/maximhq/maxim-go/logging"
m := maxim.Init(&maxim.MaximSDKConfig{
    ApiKey: "api-key"
})
logger, err := m.GetLogger(&logging.LoggerConfig{Id: "log-repository-id"})

Maxim config fields

FieldTypeDescription
ApiKeystringMaxim API key
BaseUrlstringMaxim API base URL (optional)
DebugboolEnable debug mode (optional, default is False)

Logger config fields

FieldTypeDescription
IdstringLog repository ID

On this page