Skip to content

Commit

Permalink
put annotation differently
Browse files Browse the repository at this point in the history
  • Loading branch information
pymonger committed Aug 20, 2024
1 parent 94f71d1 commit 1e3cc31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/unity_initiator/cloud/lambda_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def lambda_handler_base(event, context):
f.write(router_cfg)
ROUTER = Router(router_file)
os.unlink(router_file)
with xray_recorder.capture("execute_actions") as subsegment:
subsegment.put_annotation("payload", event["payload"])
with xray_recorder.capture("execute_actions"):
xray_recorder.put_annotation("payload", event["payload"])
return ROUTER.execute_actions(event["payload"])


Expand Down

0 comments on commit 1e3cc31

Please sign in to comment.