You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[exporter/syslogexporter] Fix timestamp formatting in rfc5424 syslog messages to use microsecond precision (open-telemetry#43211)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
This PR fixes the timestamp format used for `rfc5424` format to be with
the maximum of microsecond precision instead of nanosecond as defined by
the [RFC5424 spec](https://www.rfc-editor.org/rfc/rfc5424#section-6).
<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixesopen-telemetry#43114
<!--Describe what testing was performed and which tests were added.-->
#### Testing
Updated tests and added a new unit test to ensure the timestamp is
always exported with the maximum of microsecond precision.
---------
Signed-off-by: Paulo Dias <[email protected]>
Co-authored-by: Andrzej Stencel <[email protected]>
0 commit comments