You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$h = rand(0, 10);
$histogram = $registry->getOrRegisterHistogram(
'example',
'the_histogram',
'A histogram puts your observations in predefined buckets (+Inf is registered when no bucket found)',
['type'],
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9,]
);
$histogram->observe($h, ['blue']);
When I repeatedly call this code and $h is e.g. 6, the buckets for 6, 7, 8 and 9 are increased
Is this the expected behaviour?
The text was updated successfully, but these errors were encountered:
tetrode
changed the title
Question: adding values to a histogram appears to add to the bucket the value belongs to and all larget buckets
Question: adding values to a histogram appears to add to the bucket the value belongs to and all larger buckets
Mar 15, 2023
I created the following from the example code:
When I repeatedly call this code and $h is e.g. 6, the buckets for 6, 7, 8 and 9 are increased
Is this the expected behaviour?
The text was updated successfully, but these errors were encountered: