Skip to content

Commit daeffd9

Browse files
authored
remove raising of the exception as it was not sending the data to the… (#333)
* bump up version * adding the finally block to correctly close the scope and send the data to the agent
1 parent 2d4c9ca commit daeffd9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

instana/instrumentation/aws/lambda_inst.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ def lambda_handler_with_instana(wrapped, instance, args, kwargs):
3838
if scope.span:
3939
scope.span.log_exception(exc)
4040
raise
41+
finally:
42+
scope.close()
43+
agent.collector.shutdown()
4144

4245
agent.collector.shutdown()
4346
return result

instana/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
# Module version file. Used by setup.py and snapshot reporting.
55

6-
VERSION = '1.35.0'
6+
VERSION = '1.35.1'

0 commit comments

Comments
 (0)