Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #279 +/- ##
=======================================
Coverage 94.76% 94.77%
=======================================
Files 84 84
Lines 13168 13169 +1
Branches 805 805
=======================================
+ Hits 12479 12481 +2
+ Misses 623 622 -1
Partials 66 66
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Capture the local lookup duration before invoking request observers. Add a deterministic regression for both the initial miss and a later hit.
lan17
force-pushed
the
fix/rust-local-get-metric-timing
branch
from
November 13, 2026 07:27
2c2dd5f to
a02c9f9
Compare
lan17
marked this pull request as ready for review
November 13, 2026 08:38
lan17
marked this pull request as draft
November 13, 2026 08:44
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Rust local cache read measures its duration after the synchronous
Requestobserver returns. A slow observer therefore inflatesGetduration. This was found with a local deterministic reproduction; no issue was filed.Change
Capture the existing elapsed measurement immediately after
local_get, before emittingRequestandGet. Add a virtual-clock regression that advances time by 250 ms in the local request observer, then checks a miss and a later hit. Both values remain correct, and the source runs once.This is a bug fix under the native X01 telemetry-timing boundary. It does not change a portable contract or reverse a design decision, so no design record or Quint change is needed. Event order, names, tags, units and synchronous observer delivery stay unchanged. The no-observer path has no added clock read or allocation.
Ports
Validation
Head:
a02c9f9a9a1d93f891bd8e131a4268aad0ee70a2The local test and independent review results below were run at
2c2dd5f. They are reused because the only later change removed a commit-message trailer; the full source tree is identical. The hosted checks below passed on the current head.22c1f502ddb5f27419faf5caa528d9ea3a9c92e4, before the source fix: failed as expected with durations[0.25, 0.25]instead of[0.0, 0.0]. Command fromrust/:cargo test --locked --test metrics_exporters isolation::local_get_duration_excludes_request_observer_time -- --exact.cargo test --locked --features prometheus --test metrics_exportersfromrust/: passed, 7 tests.make check-rust: passed, including formatting, both Clippy configurations and 210 tests. This command did not run 7 intentionally ignored tests.make audit: passed.formal-full.yamlrun 43386609897,mutationsmode, at the current head: passed. Corpus generation, symbolic checks, all four port replays, TypeScript/Go/Rust mutation campaigns, their merged reports and the final aggregate passed.formal-full.yamlrun 43384729187 at the old head: cancelled after the metadata correction and not used as current-head evidence.Not run: none required. Full model checks and fresh-seed exploration are outside this change's required Mutations tier.
Follow-ups
None.