diff options
author | Jacopo <beschi.jacopo@gmail.com> | 2019-09-03 11:55:04 +0300 |
---|---|---|
committer | Peter Leitzen <pleitzen@gitlab.com> | 2019-09-05 12:01:02 +0300 |
commit | f599862e6c88a0a687ad05078400547acf52db9b (patch) | |
tree | 53130377f91f658c1b5abe6671e0f69a13c2c6fe /spec/lib/gitlab/metrics | |
parent | 8d93ec2e90edde1b519fa59fdc8e2af12d76d4c0 (diff) |
Remove feature flags starting with `prometheus_transaction_`
Those feature flags were always enabled so we can remove them safely.
Diffstat (limited to 'spec/lib/gitlab/metrics')
-rw-r--r-- | spec/lib/gitlab/metrics/transaction_spec.rb | 8 | ||||
-rw-r--r-- | spec/lib/gitlab/metrics/web_transaction_spec.rb | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/spec/lib/gitlab/metrics/transaction_spec.rb b/spec/lib/gitlab/metrics/transaction_spec.rb index e70fde09edd..45e74597a2e 100644 --- a/spec/lib/gitlab/metrics/transaction_spec.rb +++ b/spec/lib/gitlab/metrics/transaction_spec.rb @@ -204,17 +204,17 @@ describe Gitlab::Metrics::Transaction do end it 'allows tracking of custom tags' do - transaction.add_event(:meow, animal: 'cat') + transaction.add_event(:bau, animal: 'dog') - expect(metric.tags).to eq(event: :meow, animal: 'cat') + expect(metric.tags).to eq(event: :bau, animal: 'dog') end context 'with sensitive tags' do before do - transaction.add_event(:meow, **sensitive_tags.merge(sane: 'yes')) + transaction.add_event(:baubau, **sensitive_tags.merge(sane: 'yes')) end - it_behaves_like 'tag filter', event: :meow, sane: 'yes' + it_behaves_like 'tag filter', event: :baubau, sane: 'yes' end end diff --git a/spec/lib/gitlab/metrics/web_transaction_spec.rb b/spec/lib/gitlab/metrics/web_transaction_spec.rb index 2b35f07cc0d..21a762dbf25 100644 --- a/spec/lib/gitlab/metrics/web_transaction_spec.rb +++ b/spec/lib/gitlab/metrics/web_transaction_spec.rb @@ -253,11 +253,11 @@ describe Gitlab::Metrics::WebTransaction do end it 'allows tracking of custom tags' do - transaction.add_event(:meow, animal: 'cat') + transaction.add_event(:bau, animal: 'dog') metric = transaction.metrics[0] - expect(metric.tags).to eq(event: :meow, animal: 'cat') + expect(metric.tags).to eq(event: :bau, animal: 'dog') end end end |