@telemetry-js/collector-function

0.0.7 • Public • Published

collector-function

Collect metric value from a function.
A telemetry plugin.

npm status node Test JavaScript Style Guide

Table of Contents

Click to expand

Usage

Yet to document.

const telemetry = require('@telemetry-js/telemetry')()
const fn = require('@telemetry-js/collector-function')

const rand = fn.sync('myapp.random.count', { unit: 'count' }, Math.random)

telemetry.task()
  .collect(rand)

API

Yet to document.

Install

With npm do:

npm install @telemetry-js/collector-function

Acknowledgements

This project is kindly sponsored by Reason Cybersecurity Ltd.

reason logo

License

MIT © Vincent Weevers

Package Sidebar

Install

npm i @telemetry-js/collector-function

Weekly Downloads

1

Version

0.0.7

License

MIT

Unpacked Size

4.73 kB

Total Files

4

Last publish

Collaborators

  • vweevers