From 8f3646a9c93a06f76f6abb31020fdb74b4b1fc59 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 9 Apr 2023 20:50:33 +0300 Subject: exp: jaeger tracing --- classes/counters.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'classes/counters.php') 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> */ 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> */ 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> */ 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> */ 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; } } -- cgit v1.2.3