-
Notifications
You must be signed in to change notification settings - Fork 423
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
feat(botocore): patch stepfunctions #7514
Conversation
@agocs Can you add a release note for this feature change? https://ddtrace.readthedocs.io/en/stable/releasenotes.html#generating-a-release-note |
BenchmarksBenchmark execution time: 2024-01-12 00:00:30 Comparing candidate commit 186bf7f in PR branch Found 1 performance improvements and 0 performance regressions! Performance is the same for 194 metrics, 9 unstable metrics. scenario:flasksimple-appsec-get
|
releasenotes/notes/inject-botocore-stepfunction-start_execution-calls-95bed0ca2e1d006e.yaml
Outdated
Show resolved
Hide resolved
…n-calls-95bed0ca2e1d006e.yaml Co-authored-by: Tahir H. Butt <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is extraction already implemented?
Oh or there is no extraction? Because "stepfunction logs trace reducer can link stepfunction traces to upstream traces." |
@ZStriker19 That's correct, extraction will be implemented in the logs-to-traces reducer |
…:DataDog/dd-trace-py into chris.agocs/patch_botocore_stepfunctions
Pull request was converted to draft
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's do a ducktype check before adding the dd header dict.
Also, looks like we could use more test coverage of this inject_trace_to_stepfunction_input
. I'm seeing 5 different code paths, yet only one test.
…:DataDog/dd-trace-py into chris.agocs/patch_botocore_stepfunctions
I think I'm going to wait until after the code freeze to merge this rather than rush to get it in before EOY. |
…:DataDog/dd-trace-py into chris.agocs/patch_botocore_stepfunctions
… input (#10262) In #7514 , I added a feature to patch start_execution calls to AWS stepfunctions and inject trace context into the input object. That feature suffered a regression in #8937 , and the whole stepfunctions integration was refactored to use the Core API in #9005 . This PR re-adds the injection of trace context into the start_execution input, and adds a few unit tests to detect the same regression in the future. ## Checklist - [x] PR author has checked that all the criteria below are met - The PR description includes an overview of the change - The PR description articulates the motivation for the change - The change includes tests OR the PR description describes a testing strategy - The PR description notes risks associated with the change, if any - Newly-added code is easy to change - The change follows the [library release note guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html) - The change includes or references documentation updates if necessary - Backport labels are set (if [applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)) ## Reviewer Checklist - [x] Reviewer has checked that all the criteria below are met - Title is accurate - All changes are related to the pull request's stated goal - Avoids breaking [API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces) changes - Testing strategy adequately addresses listed risks - Newly-added code is easy to change - Release note makes sense to a user of the library - If necessary, author has acknowledged and discussed the performance implications of this PR as reported in the benchmarks PR comment - Backport labels are set in a manner that is consistent with the [release branch maintenance policy](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)
Patch botocore stepfunctions start-execution and start-sync-execution. We want to be able to add trace context to the
input
so the stepfunction logs trace reducer can link stepfunction traces to upstream traces.Checklist
changelog/no-changelog
.Reviewer Checklist
@DataDog/security-design-and-guidance
.