New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@chatlayer/metrics

Package Overview
Dependencies
Maintainers
4
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chatlayer/metrics

### Installation

latest
npmnpm
Version
1.0.0
Version published
Maintainers
4
Created
Source

@chatlayer/metrics

Installation

Add "@chatlayer/metrics" to you package.json dependencies

Usage

First you need to cretate a collector

import { createCollector } from '@chatlayer/metrics';

const collector = createCollector({
  host: process.env.STATSD_HOST,
  port: parseInt(process.env.STATSD_PORT),
  service: 'my_service_name',
  environment: 'us-east4-gcp',
  version: '12234345',
});

then you can report metrics

collector.increment("my_counter")

The collector will be closed automatically when the node process exits.

FAQs

Package last updated on 28 Mar 2023

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