Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
brettmc committed Apr 11, 2024
1 parent f8d9b56 commit 5a61f5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/quoteservice/public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use OpenTelemetry\API\Globals;
use OpenTelemetry\SDK\Common\Configuration\Configuration;
use OpenTelemetry\SDK\Common\Configuration\Variables;
use OpenTelemetry\SDK\Logs\LoggerProviderInterface;
use OpenTelemetry\SDK\Metrics\MeterProviderInterface;
use OpenTelemetry\SDK\Trace\TracerProviderInterface;
use Psr\Http\Message\ServerRequestInterface;
Expand Down Expand Up @@ -61,7 +62,7 @@
$tracerProvider->forceFlush();
});
}
if (($loggerProvider = Globals::tracerProvider()) instanceof \OpenTelemetry\SDK\Logs\LoggerProviderInterface) {
if (($loggerProvider = Globals::loggerProvider()) instanceof LoggerProviderInterface) {
Loop::addPeriodicTimer(Configuration::getInt(Variables::OTEL_BLRP_SCHEDULE_DELAY)/1000, function() use ($loggerProvider) {
$loggerProvider->forceFlush();
});
Expand Down

0 comments on commit 5a61f5f

Please sign in to comment.