exp: jaeger tracing

This commit is contained in:
Andrew Dolgov
2023-04-09 20:50:33 +03:00
parent a37eab2610
commit 8f3646a9c9
276 changed files with 24972 additions and 684 deletions

View File

@@ -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;
}
}