From cdd7ad020e165fe680703b6d3319b908b682fb7a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 20 Oct 2023 17:12:29 +0300 Subject: jaeger-client -> opentelemetry --- classes/sanitizer.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'classes/sanitizer.php') diff --git a/classes/sanitizer.php b/classes/sanitizer.php index 28874d16f..68bb91b9f 100644 --- a/classes/sanitizer.php +++ b/classes/sanitizer.php @@ -63,7 +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 = Tracer::start(__METHOD__); + $scope = OpenTelemetry\API\Trace\Span::getCurrent(); + $scope->addEvent("Sanitizer::sanitize"); if (!$owner && isset($_SESSION["uid"])) $owner = $_SESSION["uid"]; @@ -224,8 +225,6 @@ class Sanitizer { $res = $doc->saveHTML(); - $scope->close(); - /* strip everything outside of ... */ $res_frag = array(); -- cgit v1.2.3-54-g00ecf