Skip to content

Commit

Permalink
trim whitespace first
Browse files Browse the repository at this point in the history
  • Loading branch information
inssein committed Nov 3, 2023
1 parent 9be4469 commit 09d652e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/lib/opentelemetry/sdk/resources/resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def telemetry_sdk

resource_pairs.split(',').each do |pair|
key, value = pair.split('=')
resource_attributes[key.strip] = URI.decode_www_form_component(value).strip
resource_attributes[key.strip] = URI.decode_www_form_component(value.strip)
end

resource_attributes.delete_if { |_key, value| value.nil? || value.empty? }
Expand Down

0 comments on commit 09d652e

Please sign in to comment.