Merge addTraceContextToStepFunctionParameters() into its callsites, and removing the extra if checks.
Why
Depending on the original state Input, we will have different instrumentation strategies, so a single addTraceContextToStepFunctionParameters() will no longer work.
Testing
Run npm test to pass existing tests
Review checklist
[ ] Feature or bugfix MUST have appropriate tests (unit, integration)
What
Merge
addTraceContextToStepFunctionParameters()
into its callsites, and removing the extraif
checks.Why
Depending on the original state
Input
, we will have different instrumentation strategies, so a singleaddTraceContextToStepFunctionParameters()
will no longer work.Testing
Run
npm test
to pass existing testsReview checklist