Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 669 Bytes

readme.md

File metadata and controls

29 lines (22 loc) · 669 Bytes

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