Node control endpoints stop publishing OTel spans for agent commands (GH-1670 follow-up) - #4118
Merged
Merged
Conversation
…H-1670 follow-up) The GH-907 work stamps EndpointRole.System on any endpoint promoted to node control duty, which silences the meters — but the receive span and the pipeline-level execution span are gated by the ENDPOINT's TelemetryEnabled flag, not the agent-command chain's. So a broker control queue (EnableWolverineControlQueues on Rabbit MQ, Azure Service Bus, or SQS) or a TCP control endpoint still published send, receive, and execution Open Telemetry spans for every IAgentCommand it carried, while the database control endpoint — born with TelemetryEnabled = false — was quiet. The NodeControlEndpoint setter now switches telemetry off along with the role promotion, closing the hole for every promoted control transport at once. Known trade-off: the broker control queues also set IsUsedForReplies, so on hosts that opt into them, replies to cross-node request/reply arriving on the control queue lose their receive span as well. Those queues are framework plumbing by design; their metrics were already silenced by the System role. Mirrors the 5.x change in #4117. Full CoreTests (2642) pass on net9.0. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This was referenced Aug 27, 2026
Open
This was referenced Sep 3, 2026
This was referenced Sep 10, 2026
This was referenced Sep 13, 2026
This was referenced Sep 21, 2026
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.
What this does
Follow-up to the GH-907 system-traffic work, mirroring the 5.x change in #4117.
GH-907 stamps
EndpointRole.Systemon any endpoint promoted to node control duty, which silences the meters — but the receive span and the pipeline-level execution span are gated by the endpoint'sTelemetryEnabledflag, not the agent-command chain's (AgentCommandHandleralready setsChain.TelemetryEnabled = false, but that gate only covers the executor's own spans). So a broker control queue (EnableWolverineControlQueueson Rabbit MQ, Azure Service Bus, or SQS) or a TCP control endpoint (UseTcpForControlEndpoint) still published send, receive, and execution Open Telemetry spans for everyIAgentCommandit carried — while the database control endpoint, born withTelemetryEnabled = false, was quiet.The
NodeControlEndpointsetter now switchesTelemetryEnabledoff alongside the System-role promotion, closing the hole for every promoted control transport at once. Node control traffic is nothing but agent commands and their replies.Known trade-off
The three broker control queues also set
IsUsedForReplies = true, andReplyEndpoint()prefers such listeners — so on hosts that opt into broker control queues, replies to cross-node request/reply arriving on the control queue lose their receive span as well. Those queues are framework plumbing by design; their metrics were already silenced by the System role since GH-907.Testing
system_traffic_metrics_silencing.promoting_an_endpoint_to_node_control_duty_marks_it_as_system_and_disables_telemetryextended to pin the new flag (suite 13/13 green).wolverine.slnxbuilds clean pinned to net9.0 (Release).🤖 Generated with Claude Code