Remove legacy go-metrics telemetry superseded by OTel (PLT-353) - #4081
Conversation
027c6b5 to
0e71518
Compare
|
The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4081 +/- ##
==========================================
- Coverage 61.30% 60.13% -1.18%
==========================================
Files 2178 2069 -109
Lines 190826 177972 -12854
==========================================
- Hits 116990 107024 -9966
+ Misses 62807 60980 -1827
+ Partials 11029 9968 -1061
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
PR SummaryLow Risk Overview Scope of removal: ABCI and tx path timings and counters in Operational note: Dashboards or alerts still keyed on the old metric names will stop receiving those series; operators should use the verified OTel metric names instead. No change to chain logic beyond metric emission. Reviewed by Cursor Bugbot for commit bbff5a4. Bugbot is set up for automated code reviews on this repo. Configure here. |
|
@seidroid review |
There was a problem hiding this comment.
Pure-deletion PR removing legacy go-metrics emitters that duplicate existing OTel instrumentation; every removed emitter has a retained OTel counterpart and no removed helper (MeasureSinceWithLabels, MessageCount) or import is still referenced. Only non-blocking issues: the PLT-353 cleanup is incomplete relative to the PR description, and a few legacy labels have no OTel equivalent.
Findings: 0 blocking | 3 non-blocking | 0 posted inline
Blockers
- None at the file/PR level.
Non-blocking
- [suggestion] The PLT-353 cleanup is incomplete despite the description's claim that no
TODO(PLT-353)references remain. Still present:sei-cosmos/store/gaskv/store.go:102and:119(Has/Deleteduration),sei-cosmos/x/bank/keeper/send.go:196(new_account),giga/deps/tasks/scheduler.go:290,293,giga/deps/xbank/keeper/metrics.go:60, andutils/metrics/metrics_util.go:92. Either finish them here or narrow the description. (Also,x/auth/vestingis listed under "removed from" but contains no telemetry calls and is not in the diff.) - [suggestion]
app/abci.go:291still carries the comment// legacy: telemetry.MeasureSince in sei-cosmos/baseapp/abci.go TODO(PLT-353), which now points at code this PR deleted. Worth dropping in the same change. - [suggestion] A few labels present on the deleted legacy emitters have no OTel counterpart, so this is a real (probably intentional) loss of dashboard granularity worth confirming with whoever owns the alerts: gov
vote/depositloseproposal_id(govMetrics.voteTotal/depositTotaltake no attributes), upgrade plan height losesinfo, bank/distribution/staking amounts move fromdenomtodenom_class, andabci.querymoves from rawreq.Pathto the normalized route.
There was a problem hiding this comment.
Pure-deletion PR removing legacy go-metrics emitters that duplicated existing OTel instrumentation; every deleted emitter has a retained OTel counterpart, no removed helper (MeasureSinceWithLabels, MessageCount) or import is still referenced, and no test depends on the legacy sink. No blocking issues — the same three non-blocking notes from the prior review still apply since the head commit is unchanged.
Findings: 0 blocking | 3 non-blocking | 0 posted inline
Blockers
- None at the file/PR level.
Non-blocking
- [suggestion] The PLT-353 cleanup is still incomplete relative to the description's claim that "no remaining TODO(PLT-353) references" exist in the tree. Verified still present on this head:
sei-cosmos/store/gaskv/store.go:102and:119(Has/Delete duration),sei-cosmos/x/bank/keeper/send.go:196(new_account),utils/metrics/metrics_util.go:92,giga/deps/tasks/scheduler.go:290,293, andgiga/deps/xbank/keeper/metrics.go:60. Notegiga/deps/tasks/scheduler.gois a near-copy ofsei-cosmos/tasks/scheduler.go, which this PR does clean up — leaving the two divergent is the most surprising omission. Either finish these here or narrow the description. (Also,x/auth/vestingis listed under "removed from" but has no telemetry calls and is not in the diff.) - [suggestion]
app/abci.go:291still carries// legacy: telemetry.MeasureSince in sei-cosmos/baseapp/abci.go TODO(PLT-353), which now points at code this PR deletes (baseapp/abci.goCommit). Worth dropping in the same change so the comment doesn't outlive its referent. - [suggestion] A few labels on the deleted legacy emitters have no OTel counterpart, so this is a real (likely intentional) loss of dashboard granularity worth confirming with whoever owns the alerts: gov
vote/depositloseproposal_id(govMetrics.voteTotal/depositTotaltake no attributes), upgrade plan height losesinfo(bothx/upgrade/abci.goandkeeper.ScheduleUpgrade), bank/distribution/staking amounts move fromdenomtodenom_class, andabci.querymoves from the rawreq.Pathto the normalized route.
Describe your changes and provide context
Removes the legacy
go-metrics/telemetryemissions that were kept alongside the OTelinstrumentation during the PLT-353 migration. The OTel equivalents (
baseapp_*, storev2,scheduler, and module metrics) have been verified in place, so the duplicate emitters and
their
TODO(PLT-353)markers are now deleted.Removed from:
baseapp— ABCI duration/tx count/gas gauges, throughput measuresstorev2/rootmulti— commit latency, SS version, historical query counters, store-size gauges, state-sync key counterstore/types— cache eviction gauge, gas error countertasks/scheduler— retry/incarnation countersx/{auth/vesting,bank,distribution,gov,staking,upgrade}— msg-server and begin-blocker telemetrytelemetry/wrapper.go— now-unusedMeasureSinceWithLabelsandMessageCountNo behavior change beyond metric emission.
Testing performed to validate your change
go build ./...andgo vet ./...baseapp,store/...,tasks,x/...)TODO(PLT-353)references in the tree that is safe to remove for V6.6.