File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
agent/instrumentation/aws_lambda Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,10 @@ <h1 class="title">Module <code>hypertrace.agent.instrumentation.aws_lambda</code
7979 )
8080
8181 lambda_event = args[0]
82+ if isinstance(lambda_event, dict) is False:
83+ logger.warning("Received unexpected lambda event")
84+ logger.debug("Actual lambda event: %s", lambda_event)
85+ return call_wrapped(*args, **kwargs)
8286
8387
8488 parent_context = aws_lambda._determine_parent_context( # pylint:disable=W0212
@@ -269,6 +273,10 @@ <h2 class="section-title" id="header-classes">Classes</h2>
269273 )
270274
271275 lambda_event = args[0]
276+ if isinstance(lambda_event, dict) is False:
277+ logger.warning("Received unexpected lambda event")
278+ logger.debug("Actual lambda event: %s", lambda_event)
279+ return call_wrapped(*args, **kwargs)
272280
273281
274282 parent_context = aws_lambda._determine_parent_context( # pylint:disable=W0212
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ <h1 class="title">Module <code>hypertrace.version</code></h1>
3030< pre > < code class ="python "> # Code generated by ./release.sh. DO NOT EDIT.
3131
3232"""Package version"""
33- __version__ = "0.14.2 -dev"</ code > </ pre >
33+ __version__ = "0.15.1 -dev"</ code > </ pre >
3434</ details >
3535</ section >
3636< section >
You can’t perform that action at this time.
0 commit comments