From d3fadc0bd0256697e4a8e9a445d48d9620339f04 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 20 Oct 2023 22:39:41 +0300 Subject: stop calling spans scopes --- classes/sanitizer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'classes/sanitizer.php') diff --git a/classes/sanitizer.php b/classes/sanitizer.php index 68bb91b9f..a7bea9e5f 100644 --- a/classes/sanitizer.php +++ b/classes/sanitizer.php @@ -63,8 +63,8 @@ class Sanitizer { * @return false|string The HTML, or false if an error occurred. */ public static function sanitize(string $str, ?bool $force_remove_images = false, int $owner = null, string $site_url = null, array $highlight_words = null, int $article_id = null) { - $scope = OpenTelemetry\API\Trace\Span::getCurrent(); - $scope->addEvent("Sanitizer::sanitize"); + $span = OpenTelemetry\API\Trace\Span::getCurrent(); + $span->addEvent("Sanitizer::sanitize"); if (!$owner && isset($_SESSION["uid"])) $owner = $_SESSION["uid"]; -- cgit v1.2.3-54-g00ecf