Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-lambda-powertools/metrics

Package Overview
Dependencies
Maintainers
9
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-lambda-powertools/metrics - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

44

lib/Metrics.d.ts

@@ -22,3 +22,3 @@ import { MetricsInterface } from '.';

* * flush buffered metrics
* * raise on empty metrics
* * throw on empty metrics
*

@@ -37,3 +37,3 @@ * @example

*
* @metrics.logMetrics({captureColdStartMetric: true, raiseOnEmptyMetrics: true, })
* @metrics.logMetrics({captureColdStartMetric: true, throwOnEmptyMetrics: true, })
* public handler(_event: any, _context: Context, _callback: Callback<any>): void | Promise<any> {

@@ -78,3 +78,3 @@ * // ...

private namespace?;
private shouldRaiseOnEmptyMetrics;
private shouldThrowOnEmptyMetrics;
private storedMetrics;

@@ -137,3 +137,3 @@ constructor(options?: MetricsOptions);

/**
* A decorator automating coldstart capture, raise on empty metrics and publishing metrics on handler exit.
* A decorator automating coldstart capture, throw on empty metrics and publishing metrics on handler exit.
*

@@ -182,20 +182,2 @@ * @example

/**
* Throw an Error if the metrics buffer is empty.
*
* @example
*
* ```typescript
* import { Metrics, MetricUnits } from '@aws-lambda-powertools/metrics';
* import { Context } from 'aws-lambda';
*
* const metrics = new Metrics({namespace:"serverlessAirline", serviceName:"orders"});
*
* export const handler = async (event: any, context: Context) => {
* metrics.raiseOnEmptyMetrics();
* metrics.publishStoredMetrics(); // will throw since no metrics added.
* }
* ```
*/
raiseOnEmptyMetrics(): void;
/**
* Function to create the right object compliant with Cloudwatch EMF (Event Metric Format).

@@ -224,2 +206,20 @@ * @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Embedded_Metric_Format_Specification.html for more details

singleMetric(): Metrics;
/**
* Throw an Error if the metrics buffer is empty.
*
* @example
*
* ```typescript
* import { Metrics, MetricUnits } from '@aws-lambda-powertools/metrics';
* import { Context } from 'aws-lambda';
*
* const metrics = new Metrics({namespace:"serverlessAirline", serviceName:"orders"});
*
* export const handler = async (event: any, context: Context) => {
* metrics.throwOnEmptyMetrics();
* metrics.publishStoredMetrics(); // will throw since no metrics added.
* }
* ```
*/
throwOnEmptyMetrics(): void;
private getCurrentDimensionsCount;

@@ -226,0 +226,0 @@ private getCustomConfigService;

@@ -29,3 +29,3 @@ "use strict";

* * flush buffered metrics
* * raise on empty metrics
* * throw on empty metrics
*

@@ -44,3 +44,3 @@ * @example

*
* @metrics.logMetrics({captureColdStartMetric: true, raiseOnEmptyMetrics: true, })
* @metrics.logMetrics({captureColdStartMetric: true, throwOnEmptyMetrics: true, })
* public handler(_event: any, _context: Context, _callback: Callback<any>): void | Promise<any> {

@@ -82,3 +82,3 @@ * // ...

this.metadata = {};
this.shouldRaiseOnEmptyMetrics = false;
this.shouldThrowOnEmptyMetrics = false;
this.storedMetrics = {};

@@ -181,3 +181,3 @@ this.dimensions = {};

/**
* A decorator automating coldstart capture, raise on empty metrics and publishing metrics on handler exit.
* A decorator automating coldstart capture, throw on empty metrics and publishing metrics on handler exit.
*

@@ -207,5 +207,5 @@ * @example

logMetrics(options = {}) {
const { raiseOnEmptyMetrics, defaultDimensions, captureColdStartMetric } = options;
if (raiseOnEmptyMetrics) {
this.raiseOnEmptyMetrics();
const { throwOnEmptyMetrics, defaultDimensions, captureColdStartMetric } = options;
if (throwOnEmptyMetrics) {
this.throwOnEmptyMetrics();
}

@@ -259,22 +259,2 @@ if (defaultDimensions !== undefined) {

/**
* Throw an Error if the metrics buffer is empty.
*
* @example
*
* ```typescript
* import { Metrics, MetricUnits } from '@aws-lambda-powertools/metrics';
* import { Context } from 'aws-lambda';
*
* const metrics = new Metrics({namespace:"serverlessAirline", serviceName:"orders"});
*
* export const handler = async (event: any, context: Context) => {
* metrics.raiseOnEmptyMetrics();
* metrics.publishStoredMetrics(); // will throw since no metrics added.
* }
* ```
*/
raiseOnEmptyMetrics() {
this.shouldRaiseOnEmptyMetrics = true;
}
/**
* Function to create the right object compliant with Cloudwatch EMF (Event Metric Format).

@@ -289,3 +269,3 @@ * @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Embedded_Metric_Format_Specification.html for more details

}));
if (metricDefinitions.length === 0 && this.shouldRaiseOnEmptyMetrics) {
if (metricDefinitions.length === 0 && this.shouldThrowOnEmptyMetrics) {
throw new RangeError('The number of metrics recorded must be higher than zero');

@@ -353,2 +333,22 @@ }

}
/**
* Throw an Error if the metrics buffer is empty.
*
* @example
*
* ```typescript
* import { Metrics, MetricUnits } from '@aws-lambda-powertools/metrics';
* import { Context } from 'aws-lambda';
*
* const metrics = new Metrics({namespace:"serverlessAirline", serviceName:"orders"});
*
* export const handler = async (event: any, context: Context) => {
* metrics.throwOnEmptyMetrics();
* metrics.publishStoredMetrics(); // will throw since no metrics added.
* }
* ```
*/
throwOnEmptyMetrics() {
this.shouldThrowOnEmptyMetrics = true;
}
getCurrentDimensionsCount() {

@@ -426,2 +426,2 @@ return Object.keys(this.dimensions).length + Object.keys(this.defaultDimensions).length;

exports.Metrics = Metrics;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWV0cmljcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9NZXRyaWNzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUVBLHFDQUErRTtBQUMvRSxtQ0FTaUI7QUE0Y0MsNEZBN2NoQixtQkFBVyxPQTZjZ0I7QUExYzdCLE1BQU0sZ0JBQWdCLEdBQUcsR0FBRyxDQUFDO0FBQzdCLE1BQU0sbUJBQW1CLEdBQUcsQ0FBQyxDQUFDO0FBQzlCLE1BQU0saUJBQWlCLEdBQUcsbUJBQW1CLENBQUM7QUFFOUM7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7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QUNMLENBQUM7U0FDSDthQUFNO1lBQ0wsTUFBTSxZQUFZLEdBQUcsSUFBSSxDQUFDLGFBQWEsQ0FBQyxJQUFJLENBQUMsQ0FBQztZQUM5QyxJQUFJLENBQUMsS0FBSyxDQUFDLE9BQU8sQ0FBQyxZQUFZLENBQUMsS0FBSyxDQUFDLEVBQUU7Z0JBQ3RDLFlBQVksQ0FBQyxLQUFLLEdBQUcsQ0FBQyxZQUFZLENBQUMsS0FBSyxDQUFDLENBQUM7YUFDM0M7WUFDRCxZQUFZLENBQUMsS0FBSyxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQztTQUNoQztJQUNILENBQUM7Q0FFRjtBQUVRLDBCQUFPIn0=

@@ -9,5 +9,5 @@ "use strict";

metrics.setFunctionName(request.context.functionName);
const { raiseOnEmptyMetrics, defaultDimensions, captureColdStartMetric } = options;
if (raiseOnEmptyMetrics !== undefined) {
metrics.raiseOnEmptyMetrics();
const { throwOnEmptyMetrics, defaultDimensions, captureColdStartMetric } = options;
if (throwOnEmptyMetrics !== undefined) {
metrics.throwOnEmptyMetrics();
}

@@ -14,0 +14,0 @@ if (defaultDimensions !== undefined) {

@@ -38,3 +38,3 @@ import { Handler } from 'aws-lambda';

* const metricsOptions: MetricsOptions = {
* raiseOnEmptyMetrics: true,
* throwOnEmptyMetrics: true,
* defaultDimensions: {'environment': 'dev'},

@@ -51,3 +51,3 @@ * captureColdStartMetric: true,

declare type ExtraOptions = {
raiseOnEmptyMetrics?: boolean;
throwOnEmptyMetrics?: boolean;
defaultDimensions?: Dimensions;

@@ -54,0 +54,0 @@ captureColdStartMetric?: boolean;

{
"name": "@aws-lambda-powertools/metrics",
"version": "0.2.0",
"version": "0.3.0",
"description": "The metrics package for the AWS Lambda powertools (TypeScript) library",

@@ -9,2 +9,5 @@ "author": {

},
"publishConfig": {
"access": "public"
},
"scripts": {

@@ -57,3 +60,3 @@ "commit": "commit",

"@types/jest": "^27.0.0",
"@types/node": "^16.6.0",
"@types/node": "^17.0.8",
"@typescript-eslint/eslint-plugin": "^5.4.0",

@@ -63,3 +66,3 @@ "@typescript-eslint/parser": "^5.4.0",

"aws-sdk": "^2.1048.0",
"esbuild": "0.14.5",
"esbuild": "0.14.11",
"eslint": "^8.3.0",

@@ -86,6 +89,6 @@ "eslint-import-resolver-node": "^0.3.6",

"dependencies": {
"@aws-lambda-powertools/commons": "0.2.0-beta.19",
"@aws-lambda-powertools/commons": "^0.3.0",
"@types/aws-lambda": "^8.10.72"
},
"gitHead": "53a6fb00783b86f54f60b9c7366a8a072a968e06"
"gitHead": "c06fbd466d18104795fe378cf34473466a0c4ca3"
}

@@ -1,2 +0,2 @@

# AWS Lambda Powertools TypeScript
# AWS Lambda Powertools (TypeScript)

@@ -14,3 +14,3 @@ | ⚠️ **WARNING: Do not use this library in production** ⚠️ |

### Features
## Features

@@ -21,3 +21,2 @@ * **[Tracer](https://awslabs.github.io/aws-lambda-powertools-typescript/latest/core/tracer/)** - Utilities to trace Lambda function handlers, and both synchronous and asynchronous functions

## Getting started

@@ -49,6 +48,5 @@

## Connect
* **AWS Developers Slack**: `#lambda-powertools`** - **[Invite, if you don't have an account](https://join.slack.com/t/awsdevelopers/shared_invite/zt-yryddays-C9fkWrmguDv0h2EEDzCqvw)**
* **AWS Developers Slack**: `#lambda-powertools` - **[Invite, if you don't have an account](https://join.slack.com/t/awsdevelopers/shared_invite/zt-yryddays-C9fkWrmguDv0h2EEDzCqvw)**
* **Email**: aws-lambda-powertools-feedback@amazon.com

@@ -55,0 +53,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc