Commit efe97c75 authored by Rémy Coutable's avatar Rémy Coutable

Resolve conflict in lib/gitlab/metrics/transaction.rb

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 4e40639c
...@@ -70,7 +70,6 @@ module Gitlab ...@@ -70,7 +70,6 @@ module Gitlab
def add_event(event_name, tags = {}) def add_event(event_name, tags = {})
self.class.metric_event_counter(event_name, tags).increment(tags.merge(labels)) self.class.metric_event_counter(event_name, tags).increment(tags.merge(labels))
@metrics << Metric.new(EVENT_SERIES, { count: 1 }, tags.merge(event: event_name), :event) @metrics << Metric.new(EVENT_SERIES, { count: 1 }, tags.merge(event: event_name), :event)
<<<<<<< HEAD
end end
# #
...@@ -80,8 +79,6 @@ module Gitlab ...@@ -80,8 +79,6 @@ module Gitlab
{ count: 1 }.merge(values), { count: 1 }.merge(values),
{ event: event_name }.merge(tags), { event: event_name }.merge(tags),
:event) :event)
=======
>>>>>>> upstream/master
end end
# Returns a MethodCall object for the given name. # Returns a MethodCall object for the given name.
......
...@@ -155,7 +155,6 @@ describe Gitlab::Metrics::WebTransaction do ...@@ -155,7 +155,6 @@ describe Gitlab::Metrics::WebTransaction do
end end
end end
<<<<<<< HEAD:spec/lib/gitlab/metrics/web_transaction_spec.rb
describe '#add_event_with_values' do describe '#add_event_with_values' do
it 'adds a metric' do it 'adds a metric' do
transaction.add_event_with_values(:meow, {}) transaction.add_event_with_values(:meow, {})
...@@ -180,8 +179,6 @@ describe Gitlab::Metrics::WebTransaction do ...@@ -180,8 +179,6 @@ describe Gitlab::Metrics::WebTransaction do
end end
end end
=======
>>>>>>> upstream/master:spec/lib/gitlab/metrics/web_transaction_spec.rb
describe '#labels' do describe '#labels' do
context 'when request goes to Grape endpoint' do context 'when request goes to Grape endpoint' do
before do before do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment