Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(json_v2): use raw values for timestamps #10413

Merged
merged 2 commits into from
Jan 11, 2022
Merged

fix(json_v2): use raw values for timestamps #10413

merged 2 commits into from
Jan 11, 2022

Conversation

sspaink
Copy link
Contributor

@sspaink sspaink commented Jan 10, 2022

resolves: #10405

Similar to: #7555, the timestamps need to use the raw value or it might truncate the configured timestamp. Also updated the timestamp tests to compare the resulting timestamps, had to update the tests slightly to handle that the milliseconds and timezone weren't right.

@telegraf-tiger telegraf-tiger bot added the fix pr to fix corresponding bug label Jan 10, 2022
Copy link
Contributor

@srebhan srebhan left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks for looking into this @sspaink!

@srebhan srebhan self-assigned this Jan 11, 2022
@srebhan srebhan added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Jan 11, 2022
Copy link
Contributor

@powersj powersj left a comment

Choose a reason for hiding this comment

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

Thank you very much for jumping on this and fixing it!

@sspaink sspaink merged commit 18704de into master Jan 11, 2022
@sspaink sspaink deleted the timestampnsissue branch January 11, 2022 16:09
powersj pushed a commit to powersj/telegraf that referenced this pull request Jan 21, 2022
reimda pushed a commit that referenced this pull request Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix pr to fix corresponding bug ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

json_v2 parser - unix_ns timestamp not correct
3 participants