Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
316f9ba
New Seralizer Types
cleptric Oct 30, 2023
631a7b8
Add DDM support
cleptric Oct 31, 2023
48183e0
Refactor code & add gauges
cleptric Nov 8, 2023
0564a0c
Make it a tad more DRY
cleptric Nov 8, 2023
69b4053
Add MetricsUnit
cleptric Nov 8, 2023
013ee65
Add tests
cleptric Nov 8, 2023
cb05d64
Make it clear that this is experimental
cleptric Nov 8, 2023
600c6e2
Add Seralizer test
cleptric Nov 8, 2023
efc781a
Fix test name
cleptric Nov 8, 2023
b8a9b1b
More comments
cleptric Nov 8, 2023
e253088
Add default tags
cleptric Nov 9, 2023
f893fe9
Change merge order
cleptric Nov 9, 2023
ea39e2d
CS
cleptric Nov 9, 2023
6a185d3
Move to statsd format
cleptric Dec 18, 2023
df90dcc
Add code locations & source context
cleptric Dec 18, 2023
b42e7ec
Fix code locations
cleptric Dec 19, 2023
8e66b4d
Attach metrics aggregations to spans
cleptric Dec 19, 2023
ca54624
Add support for sets in the metrics summary
cleptric Dec 20, 2023
c98a2a7
CS
cleptric Dec 20, 2023
cf23291
Cast min/max to float
cleptric Dec 20, 2023
4a1f4e8
Add tests
cleptric Dec 20, 2023
a1f3aa7
CS
cleptric Dec 20, 2023
6f7b86b
Remove experimental functions file
cleptric Dec 20, 2023
06d7a31
Normalize tags
cleptric Dec 21, 2023
3d7c037
Improve readability
cleptric Dec 21, 2023
f3d960b
Cleanup
cleptric Dec 21, 2023
1006e01
Hash metric bucket keys with md5
cleptric Dec 21, 2023
e9e9120
Add `attach_metric_code_locations` option
cleptric Dec 21, 2023
6c4fa02
Static analyzer fixes
stayallive Dec 21, 2023
0b4de92
Fix indentation
stayallive Dec 21, 2023
5a8b852
Make metrics an non-null array
stayallive Dec 21, 2023
b421c07
CS
stayallive Dec 21, 2023
05f3de3
Remove invalid docblock
stayallive Dec 21, 2023
0456cc6
Fix PHP 7.x
stayallive Dec 21, 2023
e231896
psalm happy
stayallive Dec 21, 2023
28b8b63
Change dynamic construction
stayallive Dec 21, 2023
33bcf76
Fix gauge
stayallive Dec 21, 2023
c25e310
Update types
stayallive Dec 21, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Cast min/max to float
  • Loading branch information
cleptric committed Dec 21, 2023
commit cf232917b55ea72095244a6215a175f240de9689
4 changes: 2 additions & 2 deletions src/Metrics/Types/GaugeType.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ public function add($value): void
$value = (float) $value;

$this->last = $value;
$this->min = min($this->min, $value);
$this->max = max($this->min, $value);
$this->min = (float) min($this->min, $value);
$this->max = (float) max($this->min, $value);
$this->sum += $value;
++$this->count;
}
Expand Down