Skip to content

SwiftQUIC: Update QLog format to adopt new trace and event formats - #379

Open
agnosticdev wants to merge 1 commit into
mainfrom
agnosticdev/QLogUpdate
Open

agnosticdev wants to merge 1 commit into
mainfrom
agnosticdev/QLogUpdate

Conversation

@agnosticdev

Copy link
Copy Markdown
Collaborator

This change updates the Qlog format in SwiftQUIC to adopt new syntax for trace and event objects.
Most notably the event objects were using the tuple format from Draft 1, this update takes advantage of the event format from draft 14.

This changed in this PR:

Event formatting:

  • Events are now JSON objects that use the time, name, data dictionaries.
  • All names are in the quic namespace.
  • Time is a fractional-millisecond, via NetworkDuration.qlogMilliseconds.
  • Events are sorted by timestamp when the log is written. Events with equal times keep their recorded order.

Trace and file

  • common_fields.reference_time is {clock_type: monotonic, epoch: unknown}.
  • event_schemas is urn:ietf:params:qlog:events:quic-14. The draft requires the draft number to be appended.
  • file_schema and serialization_format are written first, so they fall inside the first 256 bytes.
  • vantage_point.type falls back to "unknown". name is only written when set.

Added more unit test coverage.

Now.... we essentially cannot merge this PR without proper tooling support.
Qvis and tools like n0qlog do not seem to support this new format yet? I need to do some more digging around to figure out how we can properly visualize this new log format.

@agnosticdev agnosticdev changed the title SwiftQUIC: Update Qlog format to adopt new trace and event formats SwiftQUIC: Update QLog format to adopt new trace and event formats Nov 27, 2026
@tfpauly

tfpauly commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

One option would be to create a tool to convert from the new format to the old one?

@rpaulo

rpaulo commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

One option would be to create a tool to convert from the new format to the old one?

Probably not worth it at this point.

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.

3 participants