@nokkel/monitoring
v0.4.3
Published
A monitoring library for integrating monitoring and observability platforms and generating logs for monitoring
Downloads
932
Readme
Nokkel Monitoring Library
A monitoring library for integrating monitoring and observability platforms and generating logs for monitoring.
How to use the library
To install this library follow the steps below:
npm add @nokkel/monitoring
Once installed you can use the library to do the following:
logger.ts
import { createLogger } from '@nokkel/monitoring';
export const logger = createLogger({
name: process.env.HOSTNAME,
logLevel: process.env.LOG_LEVEL,
// Can optionally configure the logger for the browser
// isBrowser: true,
});
rum.ts
import { drinkRum } from '@nokkel/monitoring/datadog';
drinkRum({
applicationId: 'APP_ID',
clientToken: 'CLIENT_TOKEN',
});
Enjoy!