add placeholder instrumentation for public

This commit is contained in:
Andrew Dolgov
2023-10-20 23:39:30 +03:00
parent d3fadc0bd0
commit 350177df39
4 changed files with 34 additions and 16 deletions

View File

@@ -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)) {