Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor sfn->sfn context injection code by merging two functions (2) #1467

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

lym953
Copy link
Contributor

@lym953 lym953 commented Sep 23, 2024

What

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)

@lym953 lym953 requested review from a team as code owners September 23, 2024 18:24
@lym953 lym953 added serverless Related to [lambda, stepfunctions, cloud-run] chores Related to the CI or developer experience labels Sep 23, 2024
@datadog-datadog-prod-us1
Copy link

datadog-datadog-prod-us1 bot commented Sep 23, 2024

Datadog Report

Branch report: yiming.luo/fix-step-func-14
Commit report: 682a7d6
Test service: datadog-ci-tests

✅ 0 Failed, 432 Passed, 0 Skipped, 1m 32.14s Total duration (2m 1.75s time saved)

Copy link
Contributor

@avedmala avedmala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

Base automatically changed from yiming.luo/fix-step-func-13 to master September 25, 2024 20:37
@lym953 lym953 merged commit 21b44a2 into master Sep 25, 2024
18 checks passed
@lym953 lym953 deleted the yiming.luo/fix-step-func-14 branch September 25, 2024 20:51
@Drarig29 Drarig29 mentioned this pull request Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chores Related to the CI or developer experience serverless Related to [lambda, stepfunctions, cloud-run]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants