diff options
author | Andrew Dolgov <[email protected]> | 2023-04-09 20:50:33 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-04-09 20:50:33 +0300 |
commit | 8f3646a9c93a06f76f6abb31020fdb74b4b1fc59 (patch) | |
tree | 4e6c9f39e0623ef70bedfee014f1bd20603f89ad /classes/counters.php | |
parent | a37eab2610a0a2bcb655258781c1c7e925dc94c0 (diff) |
exp: jaeger tracing
Diffstat (limited to 'classes/counters.php')
-rw-r--r-- | classes/counters.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/classes/counters.php b/classes/counters.php index 41bb1b9ae..378abac89 100644 --- a/classes/counters.php +++ b/classes/counters.php @@ -145,6 +145,7 @@ class Counters { * @return array<int, array<string, int|string>> */ private static function get_feeds(array $feed_ids = null): array { + $scope = Tracer::start(__FUNCTION__); $ret = []; @@ -211,6 +212,8 @@ class Counters { } + $scope->close(); + return $ret; } @@ -218,6 +221,8 @@ class Counters { * @return array<int, array<string, int|string>> */ private static function get_global(): array { + $scope = Tracer::start(__FUNCTION__); + $ret = [ [ "id" => "global-unread", @@ -234,6 +239,8 @@ class Counters { "counter" => $subcribed_feeds ]); + $scope->close(); + return $ret; } @@ -241,6 +248,7 @@ class Counters { * @return array<int, array<string, int|string>> */ private static function get_virt(): array { + $scope = Tracer::start(__FUNCTION__); $ret = []; @@ -287,6 +295,7 @@ class Counters { } } + $scope->close(); return $ret; } @@ -295,6 +304,7 @@ class Counters { * @return array<int, array<string, int|string>> */ static function get_labels(array $label_ids = null): array { + $scope = Tracer::start(__FUNCTION__); $ret = []; @@ -346,6 +356,7 @@ class Counters { array_push($ret, $cv); } + $scope->close(); return $ret; } } |