summaryrefslogtreecommitdiff
path: root/classes/counters.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-10-20 22:39:41 +0300
committerAndrew Dolgov <[email protected]>2023-10-20 22:39:41 +0300
commitd3fadc0bd0256697e4a8e9a445d48d9620339f04 (patch)
treee057b3dec2303faec913dc876b52340cabbe7877 /classes/counters.php
parentbf6e3c381b31d71113dae521784c4f9b00f22de3 (diff)
stop calling spans scopes
Diffstat (limited to 'classes/counters.php')
-rw-r--r--classes/counters.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/classes/counters.php b/classes/counters.php
index 1f5988568..948e6ee1d 100644
--- a/classes/counters.php
+++ b/classes/counters.php
@@ -145,7 +145,7 @@ class Counters {
* @return array<int, array<string, int|string>>
*/
private static function get_feeds(array $feed_ids = null): array {
- $scope = Tracer::start(__METHOD__);
+ $span = Tracer::start(__METHOD__);
$ret = [];
@@ -212,7 +212,7 @@ class Counters {
}
- $scope->end();
+ $span->end();
return $ret;
}
@@ -221,7 +221,7 @@ class Counters {
* @return array<int, array<string, int|string>>
*/
private static function get_global(): array {
- $scope = Tracer::start(__METHOD__);
+ $span = Tracer::start(__METHOD__);
$ret = [
[
@@ -239,7 +239,7 @@ class Counters {
"counter" => $subcribed_feeds
]);
- $scope->end();
+ $span->end();
return $ret;
}
@@ -248,7 +248,7 @@ class Counters {
* @return array<int, array<string, int|string>>
*/
private static function get_virt(): array {
- $scope = Tracer::start(__METHOD__);
+ $span = Tracer::start(__METHOD__);
$ret = [];
@@ -295,7 +295,7 @@ class Counters {
}
}
- $scope->end();
+ $span->end();
return $ret;
}
@@ -304,7 +304,7 @@ class Counters {
* @return array<int, array<string, int|string>>
*/
static function get_labels(array $label_ids = null): array {
- $scope = Tracer::start(__METHOD__);
+ $span = Tracer::start(__METHOD__);
$ret = [];
@@ -356,7 +356,7 @@ class Counters {
array_push($ret, $cv);
}
- $scope->end();
+ $span->end();
return $ret;
}
}