diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-03 18:11:59 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-03 18:11:59 +0000 |
commit | b9b477a3f1e64590e087cfe2cc21c9d5bd448756 (patch) | |
tree | b42659fe7d1f05c4965994929a91b386ff827ff0 /spec/lib | |
parent | 849c67f6da8d997d9fa54bba3526c64c7678aae6 (diff) | |
download | gitlab-ce-b9b477a3f1e64590e087cfe2cc21c9d5bd448756.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/instrumentation_helper_spec.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/spec/lib/gitlab/instrumentation_helper_spec.rb b/spec/lib/gitlab/instrumentation_helper_spec.rb index e929908333a..4fa9079144d 100644 --- a/spec/lib/gitlab/instrumentation_helper_spec.rb +++ b/spec/lib/gitlab/instrumentation_helper_spec.rb @@ -198,10 +198,11 @@ RSpec.describe Gitlab::InstrumentationHelper do context 'when an api call to the search api is made' do before do - Gitlab::Instrumentation::GlobalSearchApi.set_global_search_information( - global_search_type: 'basic', - global_search_level: 'global', - global_search_duration_s: 0.1 + Gitlab::Instrumentation::GlobalSearchApi.set_information( + type: 'basic', + level: 'global', + scope: 'issues', + search_duration_s: 0.1 ) end @@ -211,6 +212,7 @@ RSpec.describe Gitlab::InstrumentationHelper do expect(payload).to include({ 'meta.search.type' => 'basic', 'meta.search.level' => 'global', + 'meta.search.scope' => 'issues', global_search_duration_s: 0.1 }) end |