Skip to content

Conversation

nurzhan-saktaganov
Copy link
Collaborator

What has been done? Why? What problem is being solved?

I didn't forget about (remove if it is not applicable):

Related issues:


for {
if spent := time.Since(requestStartTime); spent > timeout {
r.metrics().RequestDuration(spent, fnc, "", false, false)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why we don`t send metric if request done with error?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Because we decided to send metrics for particular requests to storage tarantools. This deleted code sends something else: aggregated metrics over several calls to different storage tarantools; also includes sleep time, timings to bucket_set/bucket_reset and etc. Finally, the aggregated timing can be measured by the caller outside of this function.

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.

2 participants