Skip to content

Commit 3664559

Browse files
Attach exceptions thrown from handler to traces (#98)
1 parent 82d5467 commit 3664559

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

datadog_lambda/wrapper.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ def __call__(self, event, context, **kwargs):
107107
return self.func(event, context, **kwargs)
108108
except Exception:
109109
submit_errors_metric(context)
110+
if self.span:
111+
self.span.set_traceback()
110112
raise
111113
finally:
112114
self._after(event, context)

0 commit comments

Comments
 (0)