Ensure that transient ThreadContext headers with propagators survive restore - #20854
Conversation
Signed-off-by: Deepti24 <chauhan.deepti24@gmail.com>
PR Reviewer Guide 🔍(Review updated until commit 87e71bf)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 87e71bf Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit b2d5b5e
Suggestions up to commit d86ab97
Suggestions up to commit 458b367
Suggestions up to commit 9a65ec5
Suggestions up to commit 06588ac
|
|
❌ Gradle check result for b7f9b51: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
@Deepti24 the changes lgtm. left one small comment around naming. |
|
please fix the precommit failures |
Signed-off-by: Deepti24 <chauhan.deepti24@gmail.com>
|
Persistent review updated to latest commit bc5e243 |
Signed-off-by: Deepti24 <chauhan.deepti24@gmail.com>
|
Persistent review updated to latest commit edc807d |
Signed-off-by: Deepti24 <chauhan.deepti24@gmail.com>
|
Persistent review updated to latest commit f47cebe |
|
❌ Gradle check result for f47cebe: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for f47cebe: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Deepti24 <chauhan.deepti24@gmail.com>
|
Persistent review updated to latest commit b58616f |
|
❌ Gradle check result for b58616f: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Deepti24 <chauhan.deepti24@gmail.com>
Signed-off-by: Deepti24 <chauhan.deepti24@gmail.com>
|
❌ Gradle check result for b2d5b5e: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for b2d5b5e: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
Persistent review updated to latest commit 87e71bf |
|
The backport to To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch/backport-2.19 2.19
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch/backport-2.19
# Create a new branch
git switch --create backport/backport-20854-to-2.19
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 e39a49606a15262366af703035a52d6ca670627c
# Push it to GitHub
git push --set-upstream origin backport/backport-20854-to-2.19
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch/backport-2.19Then, create a pull request where the |
…restore (opensearch-project#20854) * Ensure that transient ThreadContext headers with propagators survive restore Signed-off-by: Deepti24 <chauhan.deepti24@gmail.com> Signed-off-by: Deepti Chauhan <dchauhan3@atlassian.com> Co-authored-by: Deepti Chauhan <dchauhan3@atlassian.com> Signed-off-by: Aparajita Pandey <aparajita31pandey@gmail.com>
…restore (opensearch-project#20854) * Ensure that transient ThreadContext headers with propagators survive restore Signed-off-by: Deepti24 <chauhan.deepti24@gmail.com> Signed-off-by: Deepti Chauhan <dchauhan3@atlassian.com> Co-authored-by: Deepti Chauhan <dchauhan3@atlassian.com>

Description
This is to fix issue mentioned in this comment: #20822 (comment)
Issue details
Explaining why do we have a SpanReference with null span id as seen in screenshot in above comment (Fix in class ThreadContextBasedTracerContextStorage)
Related Issues
Resolves #[Issue number to be closed when this PR is merged]
(opensearch-project/security#5990)
cwperks#345
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.