JSPM

@telemetry-js/processor-ec2-instance-id

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q11764F
  • License MIT

Add 'instanceid' tag to metrics

Package Exports

  • @telemetry-js/processor-ec2-instance-id

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/processor-ec2-instance-id) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

processor-ec2-instance-id

Add instanceid tag to metrics.
A telemetry plugin.

npm status node Test JavaScript Style Guide

Table of Contents

Click to expand

Usage

const telemetry = require('@telemetry-js/telemetry')()
const instanceId = require('@telemetry-js/processor-ec2-instance-id')

telemetry.task()
  .process(instanceId)

Options

None.

Cached variant

By default, each instance of this plugin fetches EC2 instance metadata itself. To only fetch once (with a semiglobal cache) use:

const instanceId = require('@telemetry-js/processor-ec2-instance-id').cached

Install

With npm do:

npm install @telemetry-js/processor-ec2-instance-id

Acknowledgements

This project is kindly sponsored by Reason Cybersecurity Ltd.

reason logo

License

MIT © Vincent Weevers