Add custom tags to all metrics in a task.
Atelemetry
plugin.
Click to expand
const telemetry = require('@telemetry-js/telemetry')()
const tag = require('@telemetry-js/processor-tag')
telemetry.task()
.process(tag, { foo: 'bar', baz: 'bee' })
This will add the foo
and baz
tags to metrics.
With npm do:
npm install @telemetry-js/processor-tag
This project is kindly sponsored by Reason Cybersecurity Ltd.
MIT © Vincent Weevers