We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56f21e4 commit f14e402Copy full SHA for f14e402
src/metrics/enhanced-metrics.ts
@@ -50,13 +50,13 @@ export function getRuntimeTag(): string | null {
50
}
51
52
export function getEnhancedMetricTags(context?: Context): string[] {
53
- let tags: string[] = [];
+ const tags: string[] = [];
54
if (context) {
55
let arnTags = [`functionname:${context.functionName}`];
56
if (context.invokedFunctionArn) {
57
arnTags = parseTagsFromARN(context.invokedFunctionArn, context.functionVersion);
58
59
- tags = [...arnTags, `memorysize:${context.memoryLimitInMB}`];
+ tags.push(...arnTags, `memorysize:${context.memoryLimitInMB}`);
60
61
62
tags.push(...getSandboxInitTags(), getVersionTag());
0 commit comments