DataDog / serverless-plugin-datadog

Serverless plugin to automagically instrument your Lambda functions with Datadog
Apache License 2.0
96 stars 49 forks source link

chore: Refactor context injection code by extracting two functions #522

Closed lym953 closed 2 months ago

lym953 commented 2 months ago

What does this PR do?

Move the logic for Step Function context injection into

  1. Lambda
  2. nested Step Function

into two new functions.

Motivation

I will make the context injection logic more complicated and make the code longer, so let's split the function updateDefinitionString() for code readability.

Testing Guidelines

npm test

Additional Notes

Types of changes

Check all that apply

lym953 commented 2 months ago

/merge

dd-devflow[bot] commented 2 months ago

:steam_locomotive: MergeQueue: pull request added to the queue

The median merge time in main is 4m.

Use /merge -c to cancel this operation!