lib/opentelemetry/instrumentation/pg/patches/connection.rb in opentelemetry-instrumentation-pg-0.22.1 vs lib/opentelemetry/instrumentation/pg/patches/connection.rb in opentelemetry-instrumentation-pg-0.22.2

- old
+ new

@@ -126,9 +126,11 @@ def database_name conninfo_hash[:dbname]&.to_s end def first_in_list(item) + return unless item + if (idx = item.index(',')) item[0...idx] else item end