lib/opentelemetry/sdk/internal.rb in opentelemetry-sdk-0.16.0 vs lib/opentelemetry/sdk/internal.rb in opentelemetry-sdk-0.17.0
- old
+ new
@@ -45,10 +45,10 @@
end
def valid_attributes?(attrs)
attrs.nil? || attrs.all? do |k, v|
if !valid_key?(k)
- OpenTelemetry.handle_error(message: "invalid attribute key type #{v.class}")
+ OpenTelemetry.handle_error(message: "invalid attribute key type #{k.class}")
false
elsif !valid_value?(v)
OpenTelemetry.handle_error(message: "invalid attribute value type #{v.class}")
false
else