sansjack / monitro-sdk

The official SDK for monitro.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

The official SDK for monitro.dev


Languages

Language:JavaScript 100.0%