Skip to content

http3: qlog sent and received SETTINGS frames#5379

Merged
marten-seemann merged 2 commits intomasterfrom
http3-qlog-settings-frames
Oct 12, 2025
Merged

http3: qlog sent and received SETTINGS frames#5379
marten-seemann merged 2 commits intomasterfrom
http3-qlog-settings-frames

Conversation

@marten-seemann
Copy link
Copy Markdown
Member

Part of #4124.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements qlog (QUIC logging) support for HTTP/3 SETTINGS frames, enabling the logging of both sent and received SETTINGS frames as part of issue #4124. The changes add comprehensive qlog instrumentation to capture SETTINGS frame creation and parsing events.

  • Added qlog recording for SETTINGS frame creation in both client and server code
  • Implemented SETTINGS frame parsing with qlog events for received frames
  • Added comprehensive test coverage for SETTINGS frame qlog functionality

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
http3/qlog/frame.go Added SettingsFrame struct and encoding logic for qlog output
http3/qlog/frame_test.go Added comprehensive test cases for SettingsFrame qlog encoding
http3/server.go Added qlog recording when server sends SETTINGS frames
http3/client.go Added qlog recording when client sends SETTINGS frames
http3/frames.go Modified SETTINGS frame parsing to record qlog events and added pointer helper
http3/http3_helper_test.go Added utility function to filter qlog events by frame type
http3/server_test.go Updated test to use new filtering helper function
http3/conn_test.go Enhanced tests to verify qlog events for SETTINGS frames
http3/client_test.go Enhanced tests to verify qlog events for SETTINGS frames

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread http3/frames.go
Comment thread http3/qlog/frame_test.go
@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 12, 2025

Codecov Report

❌ Patch coverage is 96.59091% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.02%. Comparing base (cd4b130) to head (eea524b).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
http3/server.go 82.35% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5379      +/-   ##
==========================================
+ Coverage   82.98%   83.02%   +0.04%     
==========================================
  Files         158      158              
  Lines       19034    19114      +80     
==========================================
+ Hits        15795    15869      +74     
- Misses       2614     2618       +4     
- Partials      625      627       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@marten-seemann marten-seemann force-pushed the http3-qlog-settings-frames branch from 59ffd1e to eea524b Compare October 12, 2025 04:51
@marten-seemann marten-seemann merged commit ce12204 into master Oct 12, 2025
43 of 45 checks passed
@marten-seemann marten-seemann deleted the http3-qlog-settings-frames branch December 29, 2025 14:36
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