Closed ellisv closed 6 years ago
Current interface looks as such
public function finish($finishTime = null, array $logRecords = []);
PHP docs does not say anything about this optional $logRecords parameter but I assume it logs events before finishing the span.
$logRecords
finish()
Getting rid of $logRecords argument for Span::finish(). I think it is better to do it explicitly like
Span::finish()
$span->log([...]) $span->finish();
Background
Current interface looks as such
PHP docs does not say anything about this optional
$logRecords
parameter but I assume it logs events before finishing the span.Problem
finish()
does more than one thingProposal
Getting rid of
$logRecords
argument forSpan::finish()
. I think it is better to do it explicitly like