| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | final class LogTracerFactory implements TracerFactoryInterface |
||
| 18 | { |
||
| 19 | public const LOG_CHANNEL = 'telemetry'; |
||
| 20 | |||
| 21 | private readonly LoggerInterface $logger; |
||
| 22 | |||
| 23 | 1 | public function __construct( |
|
| 24 | private readonly ScopeInterface $scope, |
||
| 25 | private readonly ClockInterface $clock, |
||
| 26 | LogsInterface $logs, |
||
| 27 | string $channel = self::LOG_CHANNEL |
||
| 28 | ) { |
||
| 29 | 1 | $this->logger = $logs->getLogger($channel); |
|
|
|
|||
| 30 | } |
||
| 31 | |||
| 32 | 1 | public function make(array $context = []): TracerInterface |
|
| 39 | ); |
||
| 40 | } |
||
| 42 |