Skip to content

Conversation

paulojmdias
Copy link
Member

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.

Link to tracking issue

Fixes #43114

Testing

Updated tests and added a new unit test to ensure the timestamp is always exported with the maximum of microsecond precision.

…messages to use microsecond precision

Signed-off-by: Paulo Dias <[email protected]>
Copy link
Member

@andrzej-stencel andrzej-stencel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Please update the component name in changelog entry, I think after #43215 we need to stick to a standard format.

@andrzej-stencel andrzej-stencel added the ready to merge Code review completed; ready to merge by maintainers label Oct 8, 2025
@andrzej-stencel
Copy link
Member

Actually I just pushed the component name change myself. This is ready to merge when CI goes green. Thanks again Paulo!

@paulojmdias
Copy link
Member Author

Thank you @andrzej-stencel! You're welcome 💪

@andrzej-stencel andrzej-stencel merged commit b35b0f4 into open-telemetry:main Oct 8, 2025
212 of 214 checks passed
@paulojmdias paulojmdias deleted the feat/43114 branch October 8, 2025 14:47
@github-actions github-actions bot added this to the next release milestone Oct 8, 2025
etserend pushed a commit to etserend/opentelemetry-collector-contrib that referenced this pull request Oct 9, 2025
…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
Fixes open-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]>
mashhurs pushed a commit to mashhurs/opentelemetry-collector-contrib that referenced this pull request Oct 9, 2025
…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
Fixes open-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]>
tommyers-elastic pushed a commit to tommyers-elastic/opentelemetry-collector-contrib that referenced this pull request Oct 10, 2025
…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
Fixes open-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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

syslogexporter for rfc5424 exporting timestamp with nano precision instead of millis precision

4 participants