Skip to content

chore(metrics): remove dead sparse helpers and MetricEvent::with_timestamp#1338

Open
jwiegley wants to merge 1 commit into
dc/metrics-null-builders-cleanupfrom
dc/metrics-sparse-cleanup
Open

chore(metrics): remove dead sparse helpers and MetricEvent::with_timestamp#1338
jwiegley wants to merge 1 commit into
dc/metrics-null-builders-cleanupfrom
dc/metrics-sparse-cleanup

Conversation

@jwiegley
Copy link
Copy Markdown
Contributor

@jwiegley jwiegley commented May 11, 2026

Summary

sparse_get_f64 and sparse_get_vec_u64 had no callers outside their own tests — no metric field uses f64 or Vec encoding. MetricEvent::with_timestamp was similarly only tested internally; production metrics use MetricEvent::new.

Test plan

  • task build passes
  • task lint passes

🤖 Generated with Claude Code


Open in Devin Review

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

@jwiegley jwiegley requested review from heapwolf and svarlamov May 11, 2026 20:52
@jwiegley jwiegley force-pushed the dc/metrics-sparse-cleanup branch from b7834ac to b0224cf Compare May 13, 2026 18:03
@jwiegley jwiegley force-pushed the dc/metrics-null-builders-cleanup branch 2 times, most recently from 2c4e995 to 8bbf005 Compare May 19, 2026 22:24
@jwiegley jwiegley force-pushed the dc/metrics-sparse-cleanup branch 2 times, most recently from 6fdf6ed to fcd41cc Compare May 26, 2026 17:19
@jwiegley jwiegley force-pushed the dc/metrics-sparse-cleanup branch from fcd41cc to ee48db8 Compare May 28, 2026 18:13
@jwiegley jwiegley force-pushed the dc/metrics-null-builders-cleanup branch from 21c1a42 to d13815d Compare May 28, 2026 18:13
…stamp

sparse_get_f64 and sparse_get_vec_u64 in pos_encoded.rs had no callers
outside their own tests — no metric field uses f64 or Vec<u64> encoding.
MetricEvent::with_timestamp in types.rs was similarly only exercised by
its own unit test; production metrics are constructed via MetricEvent::new.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jwiegley jwiegley force-pushed the dc/metrics-sparse-cleanup branch from ee48db8 to 6a6b31c Compare June 1, 2026 18:30
@jwiegley jwiegley force-pushed the dc/metrics-null-builders-cleanup branch from d13815d to 6b04ac1 Compare June 1, 2026 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant