lib/opentelemetry/sdk/resources/resource.rb in opentelemetry-sdk-0.11.1 vs lib/opentelemetry/sdk/resources/resource.rb in opentelemetry-sdk-0.12.0
- old
+ new
@@ -20,10 +20,10 @@
# @raise [ArgumentError] If attribute keys and values are not strings
# @return [Resource]
def create(attributes = {})
frozen_attributes = attributes.each_with_object({}) do |(k, v), memo|
raise ArgumentError, 'attribute keys must be strings' unless k.is_a?(String)
- raise ArgumentError, 'attribute values must be strings, integers, floats, or booleans' unless Internal.valid_value?(v)
+ raise ArgumentError, 'attribute values must be (array of) strings, integers, floats, or booleans' unless Internal.valid_value?(v)
memo[-k] = v.freeze
end.freeze
new(frozen_attributes)