Skip to content

Commit 5c9e8d9

Browse files
author
Peter Giacomo Lombardo
authored
AWS Lambda: Fix trigger check (#251)
1 parent af1d5c2 commit 5c9e8d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

instana/instrumentation/aws/triggers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def is_api_gateway_proxy_trigger(event):
2525

2626

2727
def is_application_load_balancer_trigger(event):
28-
if 'requestContext' in event and event['requestContext']['elb']:
28+
if 'requestContext' in event and 'elb' in event['requestContext']:
2929
return True
3030
return False
3131

0 commit comments

Comments
 (0)