Skip to content

feat(plugin): record cloudnet service metadata per segment - #138

Merged
TheMeinerLP merged 1 commit into
mainfrom
feat/plugin-cloudnet-metadata
Nov 18, 2026
Merged

TheMeinerLP merged 1 commit into
mainfrom
feat/plugin-cloudnet-metadata

Conversation

@TheMeinerLP

Copy link
Copy Markdown
Contributor

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.

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).
@github-actions

Copy link
Copy Markdown
Contributor

Test results

295 tests   295 ✅  1s ⏱️
 33 suites    0 💤
 33 files      0 ❌

Results for commit c4a24be.

@TheMeinerLP
TheMeinerLP merged commit dfc965f into main Nov 18, 2026
15 checks passed
@TheMeinerLP
TheMeinerLP deleted the feat/plugin-cloudnet-metadata branch November 18, 2026 21:30
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