I made a little branch with a couple of other minor tweaks.
Dump go version, and update the dependency
go 1.20
github.com/ugorji/go/codec
Verify timestamp without reflection
To verify the timestamp is being decoded correctly added a extractTimeStamp() function to extract the time without using reflection.
More test data
Also tried to add another test input, and this actually fails. I believe the input data is valid, because I extracted it from my running version of fluentbit. Have I just made a coding error, or has it found a real issue? I added some log lines, and the input data looks ok-ish.
`das@t:~/Downloads/fluent-bit-go/output$ ~/Downloads/msgpack-inspect ./testdata/data | more
@cosmo0920 Thanks for the work on fluent-bit-go
I made a little branch with a couple of other minor tweaks.
Dump go version, and update the dependency go 1.20 github.com/ugorji/go/codec
Verify timestamp without reflection To verify the timestamp is being decoded correctly added a extractTimeStamp() function to extract the time without using reflection.
More test data Also tried to add another test input, and this actually fails. I believe the input data is valid, because I extracted it from my running version of fluentbit. Have I just made a coding error, or has it found a real issue? I added some log lines, and the input data looks ok-ish.
`das@t:~/Downloads/fluent-bit-go/output$ ~/Downloads/msgpack-inspect ./testdata/data | more
Thanks in advance