Skip to content

fix: Metrics for locally invoked RPCs - #4267

Open
EmandM wants to merge 1 commit into
develop-3.x.xfrom
fix/locally-invoked-rpc-metrics
Open

EmandM wants to merge 1 commit into
develop-3.x.xfrom
fix/locally-invoked-rpc-metrics

Conversation

@EmandM

@EmandM EmandM commented Dec 2, 2026

Copy link
Copy Markdown
Member

Purpose of this PR

Locally invoked RPC messages had incorrect metrics. This PR fixes that.

Port of PR-141038

Jira ticket

UUM-163005

Changelog

  • Fixed: TrackRpcReceivedMetricOnServer and TrackRpcReceivedMetricOnClient tests in the tools package

Documentation

  • No documentation changes or additions were necessary.

Testing & QA (How your changes can be verified during release Playtest)

Functional Testing

Manual testing :

  • Manual testing done

Automated tests:

  • Covered by existing automated tests
  • Covered by new automated tests

Does the change require QA team to:

  • Review automated tests?
  • Execute manual tests?
  • Provide feedback about the PR?

If any boxes above are checked the QA team will be automatically added as a PR reviewer.

Up-port

n/a

Backports

Potentially needs a backport

@EmandM
EmandM requested a review from a team as a code owner December 2, 2026 15:08

@u-pr u-pr 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.

💡 Harness Review

Ship it

The change makes RPC receive metrics use the full serialized message size while retaining the payload fallback for immediate local calls. I checked the metric consumer and local, deferred, network, and proxy delivery paths and found no actionable issues.

Reviewed commit 9e75e04

🤖 Helpful? 👍/👎

@codecov-github-com

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

@@                Coverage Diff                @@
##           develop-3.x.x    #4267      +/-   ##
=================================================
- Coverage          76.73%   76.72%   -0.02%     
=================================================
  Files                159      159              
  Lines              28101    28101              
=================================================
- Hits               21563    21560       -3     
- Misses              6538     6541       +3     
Flag Coverage Δ
NGOv2_project_testproject_ubuntu 75.76% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...eobjects/Runtime/Messaging/Messages/RpcMessages.cs 42.61% <100.00%> (ø)

... and 1 file with indirect coverage changes

Components Coverage Δ
com.unity.netcode.gameobjects 76.72% <100.00%> (-0.02%) ⬇️

ℹ️ Need help interpreting these results?

This branch has not been deployed

No deployments
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