Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions datadog_lambda/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ def __init__(self, func):

def _before(self, event, context):
set_cold_start()

try:
submit_invocations_metric(context)
# Extract Datadog trace context from incoming requests
Expand All @@ -77,10 +76,10 @@ def _after(self, event, context):
except Exception:
traceback.print_exc()

def __call__(self, event, context):
def __call__(self, event, context, **kwargs):
self._before(event, context)
try:
return self.func(event, context)
return self.func(event, context, **kwargs)
except Exception:
submit_errors_metric(context)
raise
Expand Down
2 changes: 1 addition & 1 deletion scripts/run_tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Unless explicitly stated otherwise all files in this repository are licensed
# under the Apache License Version 2.0.
Expand Down