summaryrefslogtreecommitdiff
path: root/classes/pref/feeds.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-10-20 17:12:29 +0300
committerAndrew Dolgov <[email protected]>2023-10-20 21:13:39 +0300
commitcdd7ad020e165fe680703b6d3319b908b682fb7a (patch)
treeb51eb09b7b4587e8fbc5624ac8d88d28cfcd0b04 /classes/pref/feeds.php
parent45a9ff0c88cbd33892ff16ab837e9059937d656e (diff)
jaeger-client -> opentelemetry
Diffstat (limited to 'classes/pref/feeds.php')
-rwxr-xr-xclasses/pref/feeds.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php
index b22b40ba5..a2b55b88c 100755
--- a/classes/pref/feeds.php
+++ b/classes/pref/feeds.php
@@ -1080,6 +1080,9 @@ class Pref_Feeds extends Handler_Protected {
* @return array<string, mixed>
*/
private function feedlist_init_cat(int $cat_id): array {
+ $scope = OpenTelemetry\API\Trace\Span::getCurrent();
+ $scope->addEvent(__METHOD__ . ": $cat_id");
+
return [
'id' => 'CAT:' . $cat_id,
'items' => array(),
@@ -1094,7 +1097,8 @@ class Pref_Feeds extends Handler_Protected {
* @return array<string, mixed>
*/
private function feedlist_init_feed(int $feed_id, ?string $title = null, bool $unread = false, string $error = '', string $updated = ''): array {
- $scope = Tracer::start(__METHOD__, []);
+ $scope = OpenTelemetry\API\Trace\Span::getCurrent();
+ $scope->addEvent(__METHOD__ . ": $feed_id");
if (!$title)
$title = Feeds::_get_title($feed_id, false);
@@ -1102,8 +1106,6 @@ class Pref_Feeds extends Handler_Protected {
if ($unread === false)
$unread = Feeds::_get_counters($feed_id, false, true);
- $scope->close();
-
return [
'id' => 'FEED:' . $feed_id,
'name' => $title,