implement qlog JSONSEQ format, bump qlog version (#4609)

This commit is contained in:
Marten Seemann
2024-08-03 20:19:51 -07:00
committed by GitHub
parent f96923b5b2
commit d1f9af4cc6
9 changed files with 37 additions and 16 deletions

View File

@@ -43,8 +43,8 @@ type topLevel struct {
func (topLevel) IsNil() bool { return false }
func (l topLevel) MarshalJSONObject(enc *gojay.Encoder) {
enc.StringKey("qlog_format", "NDJSON")
enc.StringKey("qlog_version", "draft-02")
enc.StringKey("qlog_format", "JSON-SEQ")
enc.StringKey("qlog_version", "0.3")
enc.StringKeyOmitEmpty("title", "quic-go qlog")
enc.ObjectKey("configuration", configuration{Version: quicGoVersion})
enc.ObjectKey("trace", l.trace)