diff options
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/backend.php b/backend.php index b4e118d62..c316bcc44 100644 --- a/backend.php +++ b/backend.php @@ -30,12 +30,6 @@ $op = (string)clean($op); $method = (string)clean($method); - $span = Tracer::start(__FILE__); - - register_shutdown_function(function() use ($span) { - $span->end(); - }); - startup_gettext(); $script_started = microtime(true); @@ -44,6 +38,8 @@ return; } + $span = OpenTelemetry\API\Trace\Span::getCurrent(); + header("Content-Type: text/json; charset=utf-8"); if (Config::get(Config::SINGLE_USER_MODE)) { |