fluent-bit-go icon indicating copy to clipboard operation
fluent-bit-go copied to clipboard

Tweaks

Open randomizedcoder opened this issue 1 year ago • 0 comments

@cosmo0920 Thanks for the work on fluent-bit-go

I made a little branch with a couple of other minor tweaks.

  1. Dump go version, and update the dependency go 1.20 github.com/ugorji/go/codec

  2. Verify timestamp without reflection To verify the timestamp is being decoded correctly added a extractTimeStamp() function to extract the time without using reflection.

  3. 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

  • format: "array32" header: "0xdd" length: 2 children:
    • format: "array32" header: "0xdd" length: 2 children:
      • format: "fixext8" header: "0xd7" exttype: 0 length: 8 data: "0x64b579fd24b76a00"
      • format: "fixmap" header: "0x80" length: 0 children: []
    • format: "map16" header: "0xde" length: 43 children:
      • key: format: "fixstr" header: "0xa4" length: 4`

Thanks in advance

randomizedcoder avatar Jul 25 '23 22:07 randomizedcoder