logger = $logger ?? new NullLogger(); } /** * {@inheritdoc} * * @param Span $span * @return void */ public function reportSpan(Span $span) { $this->logger->debug('Reporting span ' . $span->getOperationName()); } /** * {@inheritdoc} * * Only implemented to satisfy the sampler interface. * * @return void */ public function close() { // nothing to do } }