Skip to content

fix(health:PLA-717): avoid validate panic when duration metric is nil#47

Merged
0x666c6f merged 1 commit intomorpho-mainfrom
feature/pla-717-erpc-fix-validator-panic-when-upstream-duration-metric-is
Mar 5, 2026
Merged

fix(health:PLA-717): avoid validate panic when duration metric is nil#47
0x666c6f merged 1 commit intomorpho-mainfrom
feature/pla-717-erpc-fix-validator-panic-when-upstream-duration-metric-is

Conversation

@0x666c6f
Copy link
Copy Markdown
Collaborator

@0x666c6f 0x666c6f commented Mar 5, 2026

Summary

  • prevent erpc validate panic when upstream request duration metric vec is not initialized
  • make tracker duration observation nil-safe in validator/non-server paths

Changes

  • return nil observer when telemetry.MetricUpstreamRequestDuration is unavailable
  • guard Observe call in RecordUpstreamDuration when observer is nil

Linear

@0x666c6f 0x666c6f self-assigned this Mar 5, 2026
@0x666c6f 0x666c6f merged commit 95d2eb5 into morpho-main Mar 5, 2026
4 checks passed
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