-
Notifications
You must be signed in to change notification settings - Fork 146
Minor wordsmithing in README.md #215
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
Conversation
f8894c4
to
d1d9a61
Compare
README.md
Outdated
**Declare metrics before fork**: As well as deleting files before your process forks, you | ||
should make sure to declare your metrics then too. Because the metric registry is held in | ||
memory, any metrics declared after forking will only be present in child processes where | ||
the code declaring them ran, and as a result won't be consistently exported when scraped |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say "may not be" rather than "won't".
The reason is that if your code consistently declares metrics (and i'm not sure how this doesn't happen), you can totally declare them after fork and it's fine. For example, if your metrics get declared when Ruby executes the class definitions.
README.md
Outdated
Indeed, even if the content of the metric is stored in a file, the list of all metrics is | ||
stored in memory. Creating metrics after fork would lead to unexported files metrics. | ||
**Declare metrics before fork**: As well as deleting files before your process forks, you | ||
should make sure to declare your metrics then too. Because the metric registry is held in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
declare your metrics then too
I find that "then too" a bit unclear as to when it is.
Can we make it more redundant but clear, something like you should also make sure to declare your metrics before the fork
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 nitpicky, optional comments. feel free to ignore if you disagree.
d1d9a61
to
d3ca0ab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it, thank you
Signed-off-by: Chris Sinjakli <chris@sinjakli.co.uk>
d3ca0ab
to
db75ed0
Compare
No description provided.