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

@@ -26,6 +26,13 @@ func scaleDuration(t time.Duration) time.Duration {
return time.Duration(scaleFactor) * t
}
func unmarshal(data []byte, v interface{}) error {
if data[0] == recordSeparator {
data = data[1:]
}
return json.Unmarshal(data, v)
}
func checkEncoding(data []byte, expected map[string]interface{}) {
// unmarshal the data
m := make(map[string]interface{})