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