How to use the aws-embedded-metrics.Unit.Milliseconds function in aws-embedded-metrics

To help you get started, we’ve selected a few aws-embedded-metrics examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github awslabs / aws-embedded-metrics-node / examples / agent / index.js View on Github external
const doWork = metricScope(metrics => async event => {
  metrics.putDimensions({ Operation: 'Agent' });
  metrics.putMetric('ExampleMetric', 100, Unit.Milliseconds);
  metrics.setProperty('RequestId', '422b1569-16f6-4a03-b8f0-fe3fd9b100f8');
});

aws-embedded-metrics

AWS Embedded Metrics Client Library

Apache-2.0
Latest version published 2 months ago

Package Health Score

87 / 100
Full package analysis

Similar packages