Skip to content

Commit b922ee6

Browse files
committed
update invocation metric to be error metric
1 parent 246f2b4 commit b922ee6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datadog_lambda/wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,9 @@ def __call__(self, event, context, **kwargs):
244244
return self.response
245245
except Exception:
246246
if not should_use_extension:
247-
from datadog_lambda.metric import submit_invocations_metric
247+
from datadog_lambda.metric import submit_errors_metric
248248

249-
submit_invocations_metric(context)
249+
submit_errors_metric(context)
250250

251251
if self.span:
252252
self.span.set_traceback()

0 commit comments

Comments
 (0)