chore(config): drop orphan metrics_level from typed model - #1999
Conversation
`metrics_level` is a bootstrap-phase Saluki-only key: it is read raw from the bootstrap `GenericConfiguration` in `main()` to configure the metrics subsystem before the `ConfigurationSystem` exists. The typed model carried `shared.metrics_level` (seeded from `SalukiOnly.metrics_level`), but nothing ever read it -- an orphan field that duplicated the real bootstrap read. Remove the orphan `SharedConfiguration::metrics_level` field, the `SalukiOnly::metrics_level` field and its `seed` line, and the associated round-trip test coverage. The bootstrap raw read in `main.rs` is unchanged and remains the single consumer.
There was a problem hiding this comment.
Pull request overview
Removes an unused metrics_level field from the typed configuration model, aligning the config system with actual runtime behavior where metrics_level is only consumed during bootstrap via raw GenericConfiguration parsing in bin/agent-data-plane.
Changes:
- Dropped
SharedConfiguration::metrics_levelfrom the typed model. - Dropped
SalukiOnly::metrics_levelplus its seeding logic into the typed model. - Removed the corresponding round-trip transport assertions from
SalukiOnlytests.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| lib/agent-data-plane-config/src/shared.rs | Removes orphan SharedConfiguration::metrics_level field from the typed config model. |
| lib/agent-data-plane-config-system/src/saluki_only.rs | Removes metrics_level from Saluki-only deserialization/seeding and updates the transport test accordingly. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This comment has been minimized.
This comment has been minimized.
Binary Size Analysis (Agent Data Plane)Baseline: 7b98c6f · Comparison: bd740ec · diff ✅ Binary size difference within thresholdChanges by Module
Detailed Symbol Changes |
Regression Detector (Agent Data Plane)Run ID: Optimization Goals: ✅ No significant changes detectedFine details of change detection per experiment (5)Experiments configured
Bounds Checks: ✅ Passed (5)
ExplanationA change is flagged as a regression when |Δ mean %| > 5.00% in the regressing direction for its optimization goal AND SMP marks the experiment as a regression ( |
|
It doesn't seem important to delete this. |
Human Summary
TODO: human writes here
AI Summary
metrics_levelis a bootstrap-phase Saluki-only key. It is read raw from thebootstrap
GenericConfigurationinmain()to set the internal-telemetryverbosity before the
ConfigurationSystemis constructed, so the typed modelis never in play at its only call site.
The typed model nonetheless carried
SharedConfiguration::metrics_level,seeded from
SalukiOnly::metrics_level— but nothing ever read it. It was anorphan field duplicating the real bootstrap read.
This removes the orphan
SharedConfiguration::metrics_levelfield, theSalukiOnly::metrics_levelfield and itsseedline, and the associatedround-trip test coverage. The bootstrap raw read in
main.rsis unchanged andremains the sole consumer.
Change Type
How did you test this PR?
make build-schema-overlay(no drift),make fmt,make check-all,make check-docs, and targetedcargo nextest run -p agent-data-plane-config-system -p agent-data-plane-config(55 passed).References