Skip to content

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

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

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

@jwiegley jwiegley commented May 11, 2026

Copy link
Copy Markdown
Contributor

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

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

Copy link
Copy Markdown
Contributor

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
@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
@jwiegley jwiegley force-pushed the dc/metrics-sparse-cleanup branch from 6a6b31c to c6b20e3 Compare June 8, 2026 17:56
@jwiegley jwiegley force-pushed the dc/metrics-null-builders-cleanup branch 2 times, most recently from 4cfe337 to f1a31d0 Compare June 9, 2026 16:36
@jwiegley jwiegley force-pushed the dc/metrics-sparse-cleanup branch from c6b20e3 to bafdda4 Compare June 9, 2026 16:36
…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 bafdda4 to d5a507e Compare June 12, 2026 19:50
@jwiegley jwiegley force-pushed the dc/metrics-null-builders-cleanup branch from f1a31d0 to 5487d5e Compare June 12, 2026 19:50
@jwiegley jwiegley deleted the branch dc/metrics-null-builders-cleanup June 17, 2026 19:29
@jwiegley jwiegley closed this Jun 17, 2026
@jwiegley jwiegley deleted the dc/metrics-sparse-cleanup branch June 17, 2026 19:29
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