Socket
Book a DemoInstallSign in
Socket

@nokkel/monitoring

Package Overview
Dependencies
Maintainers
7
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nokkel/monitoring

A monitoring library for integrating monitoring and observability platforms and generating logs for monitoring

latest
npmnpm
Version
0.4.3
Version published
Maintainers
7
Created
Source

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!

Keywords

app

FAQs

Package last updated on 23 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts