Skip to content

consommé: improve tcp tracing - #4177

Open
Daman Mulye (damanm24) wants to merge 2 commits into
microsoft:mainfrom
damanm24:improve-tcp-tracing
Open

consommé: improve tcp tracing#4177
Daman Mulye (damanm24) wants to merge 2 commits into
microsoft:mainfrom
damanm24:improve-tcp-tracing

Conversation

@damanm24

Copy link
Copy Markdown
Contributor

This PR ensures all connection traces include structured src/dst details and that TcpError(s) carry the FourTuple with the error so that the traces can be related to a specific TCP flow; thus, making debugging the tcp state machine easier.

@damanm24
Daman Mulye (damanm24) requested a review from a team as a code owner August 6, 2026 17:09
Copilot AI lite review requested due to automatic review settings August 6, 2026 17:09
@damanm24 Daman Mulye (damanm24) changed the title consommé: improve tracing consommé: improve tcp tracing Aug 6, 2026

Copilot AI 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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Note

This error may be related to your runner configuration. You can now configure runners for Copilot code review separately from Copilot cloud agent by creating a copilot-code-review.yml file with your setup steps. Read the docs for details.

Copilot AI review requested due to automatic review settings August 7, 2026 15:29

Copilot AI 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.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Suppressed comments (1)

vm/devices/net/net_consomme/consomme/src/tcp.rs:128

  • TcpErrorKind is itself an Error, but it isn't marked as the source of TcpError, so TcpError::source() will return None and error-chain reporting will lose the underlying kind. Mark kind with #[source] to preserve the error chain while keeping the structured flow context in the top-level message.
#[error("{kind} for flow {flow}")]
pub struct TcpError {
    flow: FourTuple,
    kind: TcpErrorKind,
}

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.

2 participants