diff --git a/go.mod b/go.mod index f392879..d4fe7bb 100644 --- a/go.mod +++ b/go.mod @@ -20,7 +20,7 @@ require ( github.com/gen2brain/beeep v0.0.0-20240516210008-9c006672e7f4 github.com/go-logfmt/logfmt v0.5.1 github.com/google/uuid v1.6.0 - github.com/humanlogio/api/go v0.0.0-20241128170213-590d167300cd + github.com/humanlogio/api/go v0.0.0-20241208082433-416862db1fa7 github.com/humanlogio/humanlog-pro v0.0.0-20241129104809-3580d74828a9 github.com/kr/logfmt v0.0.0-20210122060352-19f9bcb100e6 github.com/lrstanley/bubblezone v0.0.0-20240914071701-b48c55a5e78e diff --git a/go.sum b/go.sum index ab015c5..9157c84 100644 --- a/go.sum +++ b/go.sum @@ -80,10 +80,8 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c h1:6rhixN/i8ZofjG1Y75iExal34USq5p+wiN1tpie8IrU= github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c/go.mod h1:NMPJylDgVpX0MLRlPy15sqSwOFv/U1GZ2m21JhFfek0= -github.com/humanlogio/api/go v0.0.0-20241128170213-590d167300cd h1:449C6cnB4W6DblDMPfCfA4xyEkiYMpngGf7TEX9O8ro= -github.com/humanlogio/api/go v0.0.0-20241128170213-590d167300cd/go.mod h1:+hU/MU1g6QvtbeknKOlUI1yEStVqkPJ8jmYIj63OV5I= -github.com/humanlogio/humanlog-pro v0.0.0-20241129104046-2603398b2ef1 h1:eDsZPPr9GBNNh8wy43wPlb/98R1uCHuxML/r99GIkP4= -github.com/humanlogio/humanlog-pro v0.0.0-20241129104046-2603398b2ef1/go.mod h1:q+Kj7V58BQVVzGgcoyhtE2RXXprEi6DrqmhV/cThKkc= +github.com/humanlogio/api/go v0.0.0-20241208082433-416862db1fa7 h1:lsiJGrN2E5qW6yvD6TKTAHa8lURmnh6KAuHvRfU8csU= +github.com/humanlogio/api/go v0.0.0-20241208082433-416862db1fa7/go.mod h1:+hU/MU1g6QvtbeknKOlUI1yEStVqkPJ8jmYIj63OV5I= github.com/humanlogio/humanlog-pro v0.0.0-20241129104809-3580d74828a9 h1:tdUCzFh8qvnWNCmxub0KSj1lIiCeWqvRjsMSSIApneE= github.com/humanlogio/humanlog-pro v0.0.0-20241129104809-3580d74828a9/go.mod h1:zq05mTZQXvKheFiAGlPx6+VSo29jw2ER8oy8DIQKW2Q= github.com/klauspost/compress v1.17.9 h1:6KIumPrER1LHsvBVuDa0r5xaG0Es51mhhB9BQB2qeMA= diff --git a/scanner_test.go b/scanner_test.go index 2012820..53dc3f6 100644 --- a/scanner_test.go +++ b/scanner_test.go @@ -104,30 +104,16 @@ func TestFlatteningNestedObjects_with_a_big_number(t *testing.T) { Lvl: "DEBUG", Msg: "first match found at index", Kvs: []*typesv1.KV{ - { - Key: "source.function", - Value: "\"github.com/humanlogio/humanlog/internal/memstorage.(*MemStorageSink).firstMatch\"", - }, - { - Key: "source.file", - Value: "\"/Users/antoine/code/src/github.com/humanlogio/humanlog/internal/memstorage/memory.go\"", - }, - { - Key: "source.line", - Value: "243", - }, - { - Key: "storage.machine.id", - Value: "5089", - }, - { - Key: "storage.session.id", - Value: "1730187806608637000", - }, - { - Key: "storage.i", - Value: "0", - }, + typesv1.KeyVal("source", typesv1.ValObj( + typesv1.KeyVal("function", typesv1.ValStr("github.com/humanlogio/humanlog/internal/memstorage.(*MemStorageSink).firstMatch")), + typesv1.KeyVal("file", typesv1.ValStr("/Users/antoine/code/src/github.com/humanlogio/humanlog/internal/memstorage/memory.go")), + typesv1.KeyVal("line", typesv1.ValI64(243)), + )), + typesv1.KeyVal("storage", typesv1.ValObj( + typesv1.KeyVal("machine.id", typesv1.ValI64(5089)), + typesv1.KeyVal("session.id", typesv1.ValI64(1730187806608637000)), + typesv1.KeyVal("i", typesv1.ValI64(0)), + )), }, }, },