spans[] = $span; } /** * @return Span[] */ public function getSpans(): array { return $this->spans; } /** * {@inheritdoc} * * Only implemented to satisfy the sampler interface. * * @return void */ public function close() { // nothing to do } }