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

feat: organize tracing on query path #3310

Merged
merged 6 commits into from Feb 18, 2024
Merged

Conversation

waynexia
Copy link
Member

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

A tempo example under standalone mode:

image

Two phases (before and after the merge scan) are associated to one trace id.

This PR uses session_id in TaskContext to pass tracing-related metadata.

Checklist

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.
  • This PR does not require documentation updates.

Refer to a related PR or issue link (optional)

Related to #1312

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
@github-actions github-actions bot added Doc not needed This PR do not impact docs Size: S labels Feb 18, 2024
src/mito2/src/read/seq_scan.rs Show resolved Hide resolved
src/table/Cargo.toml Outdated Show resolved Hide resolved
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com>
Copy link

codecov bot commented Feb 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (df6260d) 85.54% compared to head (8726715) 85.10%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3310      +/-   ##
==========================================
- Coverage   85.54%   85.10%   -0.44%     
==========================================
  Files         872      872              
  Lines      141967   141958       -9     
==========================================
- Hits       121440   120820     -620     
- Misses      20527    21138     +611     

@waynexia waynexia added this pull request to the merge queue Feb 18, 2024
github-merge-queue bot pushed a commit that referenced this pull request Feb 18, 2024
* feat: organize tracing on query path

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* warp json conversion to TracingContext's methods

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* remove unnecessary .trace()

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* Update src/query/src/dist_plan/merge_scan.rs

Co-authored-by: Zhenchi <zhongzc_arch@outlook.com>

---------

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com>
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 18, 2024
@waynexia waynexia added this pull request to the merge queue Feb 18, 2024
@waynexia waynexia removed this pull request from the merge queue due to a manual request Feb 18, 2024
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
@waynexia waynexia added this pull request to the merge queue Feb 18, 2024
Merged via the queue into GreptimeTeam:main with commit 72cd443 Feb 18, 2024
17 checks passed
@waynexia waynexia deleted the trace-query branch February 18, 2024 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Doc not needed This PR do not impact docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants