summaryrefslogtreecommitdiff
path: root/scripts/lint-rugged
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2019-08-08 21:33:20 -0700
committerStan Hu <stanhu@gmail.com>2019-08-09 01:08:32 -0700
commita74396dcc5e372c0b6a23fd47db22ebbeb8386d7 (patch)
tree20492308e8d7acd6658fc3c80a6e98fedbd79be1 /scripts/lint-rugged
parentbbf639c43d689bd63a32ef7a60bdf83d3bd329bf (diff)
downloadgitlab-ce-a74396dcc5e372c0b6a23fd47db22ebbeb8386d7.tar.gz
Add Gitaly and Rugged call timing in Sidekiq logs
This will help identify Sidekiq jobs that invoke excessive number of filesystem access. The timing data is stored in `RequestStore`, but this is only active within the middleware and is not directly accessible to the Sidekiq logger. However, it is possible for the middleware to modify the job hash to pass this data along to the logger.
Diffstat (limited to 'scripts/lint-rugged')
-rwxr-xr-xscripts/lint-rugged1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/lint-rugged b/scripts/lint-rugged
index d862571c1c5..1b3fb54f70b 100755
--- a/scripts/lint-rugged
+++ b/scripts/lint-rugged
@@ -19,6 +19,7 @@ ALLOWED = [
'config/initializers/peek.rb',
'config/initializers/lograge.rb',
'lib/gitlab/grape_logging/loggers/perf_logger.rb',
+ 'lib/gitlab/instrumentation_helper.rb',
'lib/gitlab/rugged_instrumentation.rb',
'lib/peek/views/rugged.rb'
].freeze