Revamps Step Function -> Step Function context injection:
Change States.JsonMerge($$, $, false) to $$['Execution', 'State', 'StateMachine'], so the unnecessary Task won't be passed
Revamp the case numbers. Currently the case numbers (1, 2.1, 2.2, 2.3, 3, 4.1, 4.2, 4.3) are in sync with the case numbers for SFN->Lambda context injection. However the cases for SFN->SFN is simpler because we are using a custom field name CONTEXT, which users are unlikely to use, so we can just not handle the rare case the CONTEXT field is set.
What and why?
Revamps Step Function -> Step Function context injection:
States.JsonMerge($$, $, false)
to$$['Execution', 'State', 'StateMachine']
, so the unnecessaryTask
won't be passedCONTEXT
, which users are unlikely to use, so we can just not handle the rare case theCONTEXT
field is set.Design doc: Fixing Step Function Instrumentation
Testing
Passed existing and new tests.
Review checklist