0.0.7 • Published 5 years ago

@telemetry-js/collector-function v0.0.7

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

collector-function

Collect metric value from a function.
A telemetry plugin.

npm status node Test JavaScript Style Guide

Table of Contents

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