$attributes */ public function setAttributes(iterable $attributes): SpanInterface; /** * @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.6.1/specification/trace/api.md#add-events */ public function addEvent(string $name, iterable $attributes = [], int $timestamp = null): SpanInterface; /** * @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.6.1/specification/trace/api.md#record-exception */ public function recordException(Throwable $exception, iterable $attributes = []): SpanInterface; /** * @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.6.1/specification/trace/api.md#updatename * * @param non-empty-string $name */ public function updateName(string $name): SpanInterface; /** * @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.6.1/specification/trace/api.md#set-status * * @psalm-param StatusCode::STATUS_* $code */ public function setStatus(string $code, string $description = null): SpanInterface; /** * @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.6.1/specification/trace/api.md#end */ public function end(int $endEpochNanos = null): void; }