lib/graphql/tracing/appoptics_trace.rb in graphql-2.1.0 vs lib/graphql/tracing/appoptics_trace.rb in graphql-2.1.1

- old
+ new

@@ -193,11 +193,11 @@ when :path [key, data[key].join(".")] else [key, data[key]] end - end.flatten(2).each_slice(2).to_h.merge(Spec: 'graphql') + end.tap { _1.flatten!(2) }.each_slice(2).to_h.merge(Spec: 'graphql') end # rubocop:enable Metrics/AbcSize, Metrics/MethodLength def graphql_context(context, layer) context.errors && context.errors.each do |err| @@ -224,10 +224,10 @@ [:InboundQuery, query_string] end def graphql_multiplex(data) - names = data.queries.map(&:operations).map(&:keys).flatten.compact + names = data.queries.map(&:operations).map!(&:keys).tap(&:flatten!).tap(&:compact!) multiplex_transaction_name(names) if names.size > 1 [:Operations, names.join(', ')] end