Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qlog: disentangle the ConnectionTracer from the qlog writer #4300

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

marten-seemann
Copy link
Member

The qlog writer simply records events, puts them into a channel, and consumes these events in a separate Go routine (by serializing them).

The ConnectionTracer is the one generating those events.

This will make it possible to export qlog using a Tracer (i.e. for events that don't belong to any connections), and it paves the way for serializing qlog events outside of the quic package (see #4124).

Copy link

codecov bot commented Feb 2, 2024

Codecov Report

Attention: 10 lines in your changes are missing coverage. Please review.

Comparison is base (0344401) 84.10% compared to head (94c9205) 84.13%.

Files Patch % Lines
qlog/writer.go 77.78% 6 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4300      +/-   ##
==========================================
+ Coverage   84.10%   84.13%   +0.03%     
==========================================
  Files         149      150       +1     
  Lines       15345    15351       +6     
==========================================
+ Hits        12905    12915      +10     
+ Misses       1941     1938       -3     
+ Partials      499      498       -1     

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

qlog/writer.go Show resolved Hide resolved
qlog/connection_tracer_test.go Outdated Show resolved Hide resolved
The qlog writer simply records events, puts them into a channel, and
consumes these events in a separate Go routine (by serializing them).

The ConnectionTracer is the one generating those events.
@marten-seemann marten-seemann merged commit 225d2a3 into master Feb 2, 2024
34 checks passed
@marten-seemann marten-seemann deleted the qlog-writer branch February 2, 2024 10:02
mgjeong pushed a commit to mgjeong/quic-go that referenced this pull request Feb 13, 2024
…4300)

The qlog writer simply records events, puts them into a channel, and
consumes these events in a separate Go routine (by serializing them).

The ConnectionTracer is the one generating those events.
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.

None yet

2 participants