/**
* Updates the record with the span identifiers.
*
* @param array $record
*
* @return array
*/
public function __invoke(array $record)
{
if (null === ($span = $this->spanStack->current())) {
return $record;
}
$record['context']['tags'] = ['span_id' => (string) $span->getIdentifier(), 'trace_id' => (string) $span->getTraceIdentifier()];
return $record;
}