Commit graph

23 commits

Author SHA1 Message Date
GitLab Bot
5aa96ff142 Add latest changes from gitlab-org/gitlab@master 2020-03-09 21:07:57 +00:00
GitLab Bot
7ebcead8cf Add latest changes from gitlab-org/gitlab@master 2020-03-09 18:07:59 +00:00
GitLab Bot
2fd92f2dc7 Add latest changes from gitlab-org/gitlab@master 2020-03-04 21:07:54 +00:00
GitLab Bot
7b52c7cb63 Add latest changes from gitlab-org/gitlab@master 2020-03-02 18:07:42 +00:00
GitLab Bot
bfa061f3ae Add latest changes from gitlab-org/gitlab@master 2020-02-29 09:07:42 +00:00
GitLab Bot
e56fd47150 Add latest changes from gitlab-org/gitlab@master 2020-02-29 00:07:44 +00:00
GitLab Bot
56201db1dc Add latest changes from gitlab-org/gitlab@master 2020-02-17 03:09:00 +00:00
GitLab Bot
b69f406585 Add latest changes from gitlab-org/gitlab@master 2020-02-15 00:08:48 +00:00
GitLab Bot
7873bb3c1a Add latest changes from gitlab-org/gitlab@master 2020-01-11 00:08:28 +00:00
GitLab Bot
73391dcc36 Add latest changes from gitlab-org/gitlab@master 2020-01-08 18:07:32 +00:00
GitLab Bot
fb73ca3398 Add latest changes from gitlab-org/gitlab@master 2019-12-27 15:08:16 +00:00
GitLab Bot
ccf37fd3ec Add latest changes from gitlab-org/gitlab@master 2019-12-18 15:08:03 +00:00
GitLab Bot
a77db6bc47 Add latest changes from gitlab-org/gitlab@master 2019-10-28 15:05:58 +00:00
GitLab Bot
cd631619f4 Add latest changes from gitlab-org/gitlab@master 2019-10-11 15:06:41 +00:00
GitLab Bot
bc89882970 Add latest changes from gitlab-org/gitlab@master 2019-09-24 09:06:04 +00:00
Balakumar
a47db86e90 Log time spent on CPU to sidekiq.log 2019-08-22 14:31:57 +00:00
Thong Kuah
9e19125f39 Merge branch 'sh-fix-sidekiq-scheduling-latency' into 'master'
Fix Sidekiq scheduling_latency_s

Closes #65748

See merge request gitlab-org/gitlab-ce!31650
2019-08-09 11:59:44 +00:00
Stan Hu
a74396dcc5 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.
2019-08-09 01:08:32 -07:00
Stan Hu
7ccbb562b1 Fix Sidekiq scheduling_latency_s
This number was reporting a negative number because `current_time` was
a monotonic counter, not an absolute time.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/65748
2019-08-08 20:51:40 -07:00
Andrew Newdigate
ee828f09bf Adds Sidekiq scheduling latency structured logging field 2019-07-31 12:07:47 +00:00
Sean McGivern
9d2be75674 Limit Sidekiq args logging to 10 KB of JSON
When logging arguments from Sidekiq to JSON, restrict the size of `args`
to 10 KB (when converted to JSON). This is to avoid blowing up with
excessively large job payloads.
2019-01-22 10:54:12 +00:00
gfyoung
f93f8f569d Enable even more frozen string for lib/gitlab
Enables frozen string for the following:

* lib/gitlab/patch/**/*.rb
* lib/gitlab/popen/**/*.rb
* lib/gitlab/profiler/**/*.rb
* lib/gitlab/project_authorizations/**/*.rb
* lib/gitlab/prometheus/**/*.rb
* lib/gitlab/query_limiting/**/*.rb
* lib/gitlab/quick_actions/**/*.rb
* lib/gitlab/redis/**/*.rb
* lib/gitlab/request_profiler/**/*.rb
* lib/gitlab/search/**/*.rb
* lib/gitlab/sherlock/**/*.rb
* lib/gitlab/sidekiq_middleware/**/*.rb
* lib/gitlab/slash_commands/**/*.rb
* lib/gitlab/sql/**/*.rb
* lib/gitlab/template/**/*.rb
* lib/gitlab/testing/**/*.rb
* lib/gitlab/utils/**/*.rb
* lib/gitlab/webpack/**/*.rb

Partially addresses gitlab-org/gitlab-ce#47424.
2018-11-19 18:24:22 -08:00
Stan Hu
6415ac9e99 Add support for Sidekiq JSON logging
Closes #20060
2018-04-04 05:04:00 -07:00