attributesFactory = $attributesFactory; } public function create( string $name, ?string $version = null, ?string $schemaUrl = null, iterable $attributes = [] ): InstrumentationScopeInterface { return new InstrumentationScope( $name, $version, $schemaUrl, $this->attributesFactory->builder($attributes)->build(), ); } }