msgpack-lite icon indicating copy to clipboard operation
msgpack-lite copied to clipboard

How to do this ? "fixext or ext(with length 8)"

Open linxuanwei opened this issue 8 years ago • 1 comments

qq20170302-180957 2x

linxuanwei avatar Mar 02 '17 10:03 linxuanwei

EventTime is a private ext format defined on the fluentd protocol spec: https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v0

I am the author of the draft version of the spec: https://gist.github.com/kawanet/078e274952638fd53150

To send a Date from JavaScript to fluentd server, I may prefer to use float 64 type instead of EventTime ext type. float 64 has enough precision to JavaScript's Date class which has only microsecond precision but not cover nanosecond precision. Most of fluentd server and plugins would accept float as a time format. This is not documented, however.

To receive a EventTime data sent from other fluentd client, we need to call addExtUnpacker() method to parse it.

kawanet avatar Mar 02 '17 12:03 kawanet