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 a4e3f09 commit 7c5aa58Copy full SHA for 7c5aa58
datadog_lambda/tags.py
@@ -55,11 +55,10 @@ def parse_lambda_tags_from_arn(lambda_context):
55
56
def get_enhanced_metrics_tags(lambda_context):
57
"""Get the list of tags to apply to enhanced metrics"""
58
+ tags = []
59
if lambda_context:
60
tags = parse_lambda_tags_from_arn(lambda_context)
61
tags.append(f"memorysize:{lambda_context.memory_limit_in_mb}")
- else:
62
- tags = []
63
tags.append(get_cold_start_tag())
64
tags.append(runtime_tag)
65
tags.append(library_version_tag)
0 commit comments