Skip to content

Conversation

@wcy-fdu
Copy link
Contributor

@wcy-fdu wcy-fdu commented Feb 9, 2022

What's changed and what's your intention?

add metrics for hummock get latency

Checklist

Refer to a related PR or issue link (optional)

@github-actions github-actions bot added the type/feature Type: New feature. label Feb 9, 2022
@codecov
Copy link

codecov bot commented Feb 9, 2022

Codecov Report

Merging #166 (6663495) into main (06768d6) will increase coverage by 0.13%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main     #166      +/-   ##
============================================
+ Coverage     74.50%   74.64%   +0.13%     
  Complexity     2654     2654              
============================================
  Files           833      834       +1     
  Lines         47779    47895     +116     
  Branches       1562     1562              
============================================
+ Hits          35600    35752     +152     
+ Misses        11380    11344      -36     
  Partials        799      799              
Flag Coverage Δ
java 62.08% <ø> (ø)
rust 80.06% <100.00%> (+0.17%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
rust/storage/src/monitor/state_store_stats.rs 100.00% <ø> (ø)
rust/stream/src/executor/mod.rs 65.07% <ø> (ø)
rust/stream/src/task/barrier_manager.rs 94.44% <ø> (ø)
rust/storage/src/hummock/mod.rs 79.43% <100.00%> (+0.39%) ⬆️
rust/storage/src/memory.rs 73.77% <100.00%> (-0.84%) ⬇️
rust/frontend/src/expr/function_call.rs 42.85% <0.00%> (-7.15%) ⬇️
rust/meta/src/hummock/compaction.rs 73.85% <0.00%> (-0.66%) ⬇️
rust/storage/src/hummock/version_manager.rs 38.85% <0.00%> (-0.34%) ⬇️
rust/meta/src/model/mod.rs 80.00% <0.00%> (ø)
rust/meta/src/cluster/mod.rs 78.37% <0.00%> (ø)
... and 28 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 06768d6...6663495. Read the comment docs.

Copy link
Contributor

@skyzh skyzh left a comment

Choose a reason for hiding this comment

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

LGTM!

self.stats.get_key_size.observe(key.len() as f64);

let timer = self.stats.get_latency.start_timer();
let value = self.get_snapshot().await?.get(key).await?;

This comment was marked as resolved.

Copy link
Contributor

Choose a reason for hiding this comment

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

no problem at all, my fault #169

@wcy-fdu wcy-fdu merged commit 45af456 into main Feb 9, 2022
@wcy-fdu wcy-fdu deleted the wcy_add_get_latency branch February 9, 2022 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/feature Type: New feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants