Publish single or summary metrics to AppOptics.
Atelemetry
plugin.
Click to expand
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)
})
Yet to document.
const appoptics = require('@telemetry-js/publisher-appoptics')
Yet to document.
With npm do:
npm install @telemetry-js/publisher-appoptics
This project is kindly sponsored by Reason Cybersecurity Ltd.
MIT © Vincent Weevers