diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-07 18:08:37 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-07 18:08:37 +0300 |
commit | 427451410d11193ef3b2638fc37a70f259839f6d (patch) | |
tree | e3d218f1c58cab2ede04cdacf1db4a2f3ee47b39 /lib/gitlab/usage | |
parent | 2abeca2d92cfe3bc18441b63ca0c54af086b206e (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/usage')
-rw-r--r-- | lib/gitlab/usage/service_ping/instrumented_payload.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/gitlab/usage/service_ping/instrumented_payload.rb b/lib/gitlab/usage/service_ping/instrumented_payload.rb index 6cc67321ba1..3aa6789a010 100644 --- a/lib/gitlab/usage/service_ping/instrumented_payload.rb +++ b/lib/gitlab/usage/service_ping/instrumented_payload.rb @@ -34,6 +34,13 @@ module Gitlab return {} unless definition.present? Gitlab::Usage::Metric.new(definition).method(output_method).call + rescue StandardError => error + Gitlab::ErrorTracking.track_and_raise_for_dev_exception(error) + metric_fallback(key_path) + end + + def metric_fallback(key_path) + ::Gitlab::Usage::Metrics::KeyPathProcessor.process(key_path, ::Gitlab::Utils::UsageData::FALLBACK) end end end |