resource method
Creates a new Resource with the specified attributes and schema URL.
Resources are immutable collections of attributes that describe the entity producing telemetry. They are an SDK concept that's not present in the API.
@param attributes The attributes describing the resource @param schemaUrl Optional schema URL for the resource attributes @return A new Resource instance with the provided attributes
Implementation
Resource resource(Attributes attributes, [String? schemaUrl]) {
return ResourceCreate.create(attributes, schemaUrl);
}