Skip to content

Commit

Permalink
Update Default Subscription Filter Pattern (#37)
Browse files Browse the repository at this point in the history
Closes #36
  • Loading branch information
kolanos authored Feb 5, 2020
1 parent fae0e6f commit f5e225e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import * as semver from "semver";
import * as Serverless from "serverless";
import * as util from "util";

const DEFAULT_FILTER_PATTERN =
'?REPORT ?NR_LAMBDA_MONITORING ?"Task timed out"';

export default class NewRelicLambdaLayerPlugin {
public serverless: Serverless;
public options: Serverless.Options;
Expand Down Expand Up @@ -95,7 +98,7 @@ export default class NewRelicLambdaLayerPlugin {
return;
}
const funcs = this.functions;
let { cloudWatchFilter = ["NR_LAMBDA_MONITORING"] } = this.config;
let { cloudWatchFilter = [DEFAULT_FILTER_PATTERN] } = this.config;

let cloudWatchFilterString = "";
if (
Expand Down

0 comments on commit f5e225e

Please sign in to comment.