0.4.1 • Published 3 years ago
@telemetry-js/publisher-appoptics v0.4.1
publisher-appoptics
Publish single or summary metrics to AppOptics.
Atelemetry
plugin.
Table of Contents
Usage
With Telemetry
const telemetry = require('@telemetry-js/telemetry')()
const appoptics = require('@telemetry-js/publisher-appoptics')
telemetry.task()
.publish(appoptics, { token: 'XX' })
If an HTTP request to AppOptics fails, it is retried. If it fails 5 times, an error
event will be emitted and in this case forwarded to telemetry
:
telemetry.on('error', (err) => {
console.error(err)
})
Standalone
Yet to document.
const appoptics = require('@telemetry-js/publisher-appoptics')
API
Options
Yet to document.
Install
With npm do:
npm install @telemetry-js/publisher-appoptics
Acknowledgements
This project is kindly sponsored by Reason Cybersecurity Ltd.
License
MIT © Vincent Weevers
0.4.1
3 years ago