Skip to content

Conversation

joseluisgonzalezca
Copy link
Contributor

During the configuration of the log forwarding service in Warpgate and the subsequent processing of messages, I noticed that the timestamp format received is inconsistent. In some cases, the data is sent in milliseconds, and in others, in nanoseconds.

According to the chrono library documentation, to_rfc3339 method uses the AutoSi format by default, which means it automatically selects one of Secs, Millis, Micros, or Nanos to display all available non-zero sub-second digits. More info here.

This can lead to processing issues in systems that expect a fixed layout (e.g., Telegraf). To resolve this, the function call should be changed to to_rfc3339_opts, passing a fixed format of nanoseconds.

@Eugeny
Copy link
Member

Eugeny commented Jun 27, 2025

Thanks!

@Eugeny Eugeny merged commit 09140a3 into warp-tech:main Jun 27, 2025
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants