summaryrefslogtreecommitdiff
path: root/classes/sanitizer.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/sanitizer.php
parent45a9ff0c88cbd33892ff16ab837e9059937d656e (diff)
jaeger-client -> opentelemetry
Diffstat (limited to 'classes/sanitizer.php')
-rw-r--r--classes/sanitizer.php5
1 files changed, 2 insertions, 3 deletions
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 <body>...</body> */
$res_frag = array();