honeycombio / libhoney-rb

Ruby library for sending data to Honeycomb
Apache License 2.0
11 stars 30 forks source link

Preserve timestamp accuracy up to milliseconds #24

Closed samstokes closed 6 years ago

samstokes commented 6 years ago

Turns out we were truncating event timestamps (whether automatically assigned or user-specified) to the second. This trivial code change gives us millisecond precision instead.

We could get more precision than this if we wanted it - e.g. up to nanoseconds - but doing so would increase network traffic for every event, and we have other SDKs (e.g. JS) which can only provide milliseconds, so this seems good for now.