/monitro-sdk

The official SDK for monitro.dev

Primary LanguageJavaScript

Monitro SDK

This is the official sdk for monitro.dev Currently this package is in beta, so expect breaking changes.

Installation

npm install monitro
bun add monitro
bun add monitro

Usage

import { Monitro } from 'monitro'

const monitro = new Monitro('my-service', 'api-key' , { hookExceptions: true, dev: false })

monitro.info('Info Event', 'this is a detailed info message')
monitro.warn('Warning Event', 'this is a detailed warning message')
monitro.error('Error Event', 'this is a detailed error message')

Read the docs for more information documentation