-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Adds support for tracing runnable scenarios #8831
Adds support for tracing runnable scenarios #8831
Conversation
Signed-off-by: Gagan Juneja <[email protected]>
Signed-off-by: Gagan Juneja <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## main #8831 +/- ##
============================================
+ Coverage 71.06% 71.15% +0.09%
- Complexity 57314 57359 +45
============================================
Files 4766 4767 +1
Lines 270453 270503 +50
Branches 39555 39555
============================================
+ Hits 192197 192480 +283
+ Misses 62045 61844 -201
+ Partials 16211 16179 -32
|
Gradle Check (Jenkins) Run Completed with:
|
libs/telemetry/src/main/java/org/opensearch/telemetry/tracing/DefaultTracer.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Gagan Juneja <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Compatibility status:
|
Signed-off-by: Gagan Juneja <[email protected]>
Compatibility status:
|
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Gagan Juneja <[email protected]>
Compatibility status:
|
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Gagan Juneja <[email protected]>
Compatibility status:
|
Gradle Check (Jenkins) Run Completed with:
|
libs/telemetry/src/main/java/org/opensearch/telemetry/tracing/TracerContextStorage.java
Outdated
Show resolved
Hide resolved
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Gagan Juneja <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Compatibility status:
|
Gradle Check (Jenkins) Run Completed with:
|
Flakey shard allocation failure tests. |
Signed-off-by: Gagan Juneja <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Compatibility status:
|
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-8831-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 7655c32a441facaf627c2d703f6b39489987e542
# Push it to GitHub
git push --set-upstream origin backport/backport-8831-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-2.x Then, create a pull request where the |
@Gaganjuneja please send a manual backport to |
* Add support for tracer to create new TracerContextStorage Signed-off-by: Gagan Juneja <[email protected]> * Updated CHANGELOG Signed-off-by: Gagan Juneja <[email protected]> * Refactoring Signed-off-by: Gagan Juneja <[email protected]> * Adds feature to expose current span and start span with parent Signed-off-by: Gagan Juneja <[email protected]> * Updating the CHANGELOG Signed-off-by: Gagan Juneja <[email protected]> * Adds feature to expose current span and start span with parent Signed-off-by: Gagan Juneja <[email protected]> * Adds feature to expose current span and start span with parent Signed-off-by: Gagan Juneja <[email protected]> * Update Changelog Signed-off-by: Gagan Juneja <[email protected]> * Empty-Commit Signed-off-by: Gagan Juneja <[email protected]> * Empty-Commit Signed-off-by: Gagan Juneja <[email protected]> * Remove empty lines Signed-off-by: Gagan Juneja <[email protected]> * Empty-Commit Signed-off-by: Gagan Juneja <[email protected]> --------- Signed-off-by: Gagan Juneja <[email protected]> Signed-off-by: Gagan Juneja <[email protected]> Co-authored-by: Gagan Juneja <[email protected]> Signed-off-by: Kaushal Kumar <[email protected]>
* Add support for tracer to create new TracerContextStorage Signed-off-by: Gagan Juneja <[email protected]> * Updated CHANGELOG Signed-off-by: Gagan Juneja <[email protected]> * Refactoring Signed-off-by: Gagan Juneja <[email protected]> * Adds feature to expose current span and start span with parent Signed-off-by: Gagan Juneja <[email protected]> * Updating the CHANGELOG Signed-off-by: Gagan Juneja <[email protected]> * Adds feature to expose current span and start span with parent Signed-off-by: Gagan Juneja <[email protected]> * Adds feature to expose current span and start span with parent Signed-off-by: Gagan Juneja <[email protected]> * Update Changelog Signed-off-by: Gagan Juneja <[email protected]> * Empty-Commit Signed-off-by: Gagan Juneja <[email protected]> * Empty-Commit Signed-off-by: Gagan Juneja <[email protected]> * Remove empty lines Signed-off-by: Gagan Juneja <[email protected]> * Empty-Commit Signed-off-by: Gagan Juneja <[email protected]> --------- Signed-off-by: Gagan Juneja <[email protected]> Signed-off-by: Gagan Juneja <[email protected]> Co-authored-by: Gagan Juneja <[email protected]> Signed-off-by: Ivan Brusic <[email protected]>
* Add support for tracer to create new TracerContextStorage Signed-off-by: Gagan Juneja <[email protected]> * Updated CHANGELOG Signed-off-by: Gagan Juneja <[email protected]> * Refactoring Signed-off-by: Gagan Juneja <[email protected]> * Adds feature to expose current span and start span with parent Signed-off-by: Gagan Juneja <[email protected]> * Updating the CHANGELOG Signed-off-by: Gagan Juneja <[email protected]> * Adds feature to expose current span and start span with parent Signed-off-by: Gagan Juneja <[email protected]> * Adds feature to expose current span and start span with parent Signed-off-by: Gagan Juneja <[email protected]> * Update Changelog Signed-off-by: Gagan Juneja <[email protected]> * Empty-Commit Signed-off-by: Gagan Juneja <[email protected]> * Empty-Commit Signed-off-by: Gagan Juneja <[email protected]> * Remove empty lines Signed-off-by: Gagan Juneja <[email protected]> * Empty-Commit Signed-off-by: Gagan Juneja <[email protected]> --------- Signed-off-by: Gagan Juneja <[email protected]> Signed-off-by: Gagan Juneja <[email protected]> Co-authored-by: Gagan Juneja <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
Description
Issue -
Addresses the issue with code change #7543
For an instance where multiple tasks are being submitted from a loop the parent span is getting wrongly set.
Example :-
Parent - A
performPhaseOnShard executes the phase on the node where the shard is located, it could be locally or external data node. If we start a span from inside the performPhaseOnShard method, it creates the shard and sets this newly created span as a parent for the future spans. E.x here
performPhaseOnShard for shard
B
will have parent span asA
.performPhaseOnShard for shard
C
will have parent span asB
. Which is wrong and should ideally beA
Similarly, performPhaseOnShard for shard
C
will have a parent span asC
.Ideally we need to reset the context in this scenario, so Tracer should provide a new Releasable TracerContext which can be reset to the original one of releasing the current context.
Related Issues
Resolves #8428
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.