ttrss/vendor/open-telemetry/sdk/Trace/NoopTracerProvider.php

22 lines
482 B
PHP
Raw Normal View History

2023-10-20 14:12:29 +00:00
<?php
declare(strict_types=1);
namespace OpenTelemetry\SDK\Trace;
use OpenTelemetry\API;
use OpenTelemetry\SDK\Common\Future\CancellationInterface;
class NoopTracerProvider extends API\Trace\NoopTracerProvider implements TracerProviderInterface
{
public function forceFlush(?CancellationInterface $cancellation = null): bool
{
return true;
}
public function shutdown(?CancellationInterface $cancellation = null): bool
{
return true;
}
}