Skip to content

Commit c04d253

Browse files
committed
push new tags onto existing array
1 parent 56f21e4 commit c04d253

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/metrics/enhanced-metrics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export function getEnhancedMetricTags(context?: Context): string[] {
5656
if (context.invokedFunctionArn) {
5757
arnTags = parseTagsFromARN(context.invokedFunctionArn, context.functionVersion);
5858
}
59-
tags = [...arnTags, `memorysize:${context.memoryLimitInMB}`];
59+
tags.push(...arnTags, `memorysize:${context.memoryLimitInMB}`);
6060
}
6161

6262
tags.push(...getSandboxInitTags(), getVersionTag());

0 commit comments

Comments
 (0)