Skip to content

Commit 7cbde33

Browse files
committed
bugfix: error metrics should be sent during exception handling
Signed-off-by: Joey Zhao <5253430+joeyzhao2018@users.noreply.github.com>
1 parent b08b763 commit 7cbde33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datadog_lambda/wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def __call__(self, event, context, **kwargs):
165165
self.response = self.func(event, context, **kwargs)
166166
return self.response
167167
except Exception:
168-
if not should_use_extension:
168+
if should_use_extension:
169169
from datadog_lambda.metric import submit_errors_metric
170170

171171
submit_errors_metric(context)

0 commit comments

Comments
 (0)