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 writer timeout metrics #316

Merged
merged 1 commit into from
Dec 18, 2024
Merged

Fix writer timeout metrics #316

merged 1 commit into from
Dec 18, 2024

Conversation

hho
Copy link
Contributor

@hho hho commented Dec 16, 2024

Go durations are configured in nanoseconds, however exported timeout metrics have to be in milliseconds. Conversion was missing before for the writer timeouts, leading to timeouts being displayed as 1000000× too long.

Fixes #315

Go durations are configured in nanoseconds, however exported timeout metrics have to be in milliseconds. Conversion was missing before for the writer timeouts, leading to timeouts being displayed as 1000000× too long.
@mostafa
Copy link
Owner

mostafa commented Dec 17, 2024

@hho Thanks for your contribution! I suggest fixing it in the reader as well.

@hho
Copy link
Contributor Author

hho commented Dec 17, 2024

@mostafa I don't think the reader has the same issue – every duration there is already converted with metrics.D (Lines 490, 499, 508 and 580)

@mostafa mostafa merged commit 715f403 into mostafa:main Dec 18, 2024
4 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.

Timeout metrics are six orders of magnitude too long
2 participants