Repository navigation
feat(plugin): record cloudnet service metadata per segment - #138
Merged
Merged
Conversation
Captures could only attribute a backend to a game context through the hand-maintained server list. Staging servers such as Slender-Staging-1 were not on the list and showed up as "unknown", and no segment recorded the CloudNet task, groups, node or environment of the server it went to. When CloudNet is on the class path, the plugin now asks CloudNet for the service behind the connected server. The list stays first; the CloudNet task fills the gap (a "-Staging" task suffix is dropped, so Slender-Staging maps to "slender" unless the list names it). A "-Staging" task or a "Staging" group sets stage to "staging". Without CloudNet nothing changes. SegmentStart gains cloudnet_task, cloudnet_groups, cloudnet_node, cloudnet_environment and stage (new field numbers 7 to 11).
Contributor
Test results295 tests 295 ✅ 1s ⏱️ Results for commit c4a24be. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every connection a player makes to a backend server is recorded as a segment, together with the game mode that server plays. That mode came only from a hand-maintained list of server names. Any server missing from the list was recorded as "unknown". Staging servers were the usual case: a staging copy of a game showed up in the data as if it were an unidentified server, so it could not be told apart from production or attributed to its game.
Segments also carried no record of where the server came from in the orchestrator: which task it belongs to, which groups, which node runs it, or whether it is staging.
The plugin now asks CloudNet, the orchestrator the proxies run under, about the server a player connects to. The hand-maintained list still decides first, so nothing that is mapped today changes. For a server missing from the list, the CloudNet task supplies the game mode, with the staging suffix dropped. A task or group marked as staging sets the stage of the segment to "staging". Where CloudNet is not present, as on the pilot, behaviour is unchanged and the new fields stay empty.