When a task doesn't go to the queue, the zero waiting time is not reported for this task, which causes the queue time histogram to have periods without data and not represent the completed queue time data.
If we want to obtain the histogram of queue times, it would be possible to exclude bucket zero and thus obtain a new histogram only with buckets > 0.
Additionally, the queue counter is never reported as 0 for an application that has never had an element in the queue, as this metric is only reported in the dequeue event.
Describe the solution you'd like
The queue time of zero should be reported in the histogram in all processed events, as well as the queue counter. So in the first task it would already report that the queue is zero and the waiting time is zero.
Are you able to help bring it to life and contribute with a Pull Request?
Yes
Additional context
I've already done a local POC and I have the code that I can push to the server for comments from maintainers.
Is your request related to a problem you have?
When a task doesn't go to the queue, the zero waiting time is not reported for this task, which causes the queue time histogram to have periods without data and not represent the completed queue time data.
If we want to obtain the histogram of queue times, it would be possible to exclude bucket zero and thus obtain a new histogram only with buckets > 0.
Additionally, the queue counter is never reported as 0 for an application that has never had an element in the queue, as this metric is only reported in the dequeue event.
Describe the solution you'd like
The queue time of zero should be reported in the histogram in all processed events, as well as the queue counter. So in the first task it would already report that the queue is zero and the waiting time is zero.
Are you able to help bring it to life and contribute with a Pull Request?
Yes
Additional context
I've already done a local POC and I have the code that I can push to the server for comments from maintainers.