Package Exports
- @telemetry-js/collector-function
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@telemetry-js/collector-function) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
collector-function
Collect metric value from a function.
Atelemetryplugin.
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-functionAcknowledgements
This project is kindly sponsored by Reason Cybersecurity Ltd.
License
MIT © Vincent Weevers
