summaryrefslogtreecommitdiff
path: root/lib/gitlab/grape_logging
Commit message (Collapse)AuthorAgeFilesLines
* Log Gitaly RPC duration to api_json.log and production_json.logStan Hu2019-03-271-1/+4
| | | | | | | This makes it easier to debug Gitaly performance issues in the field. This commit also makes the tracking of query time thread-safe via RequestStore.
* Log and pass correlation-id between Unicorn, Sidekiq and GitalyKamil Trzciński2018-12-061-0/+14
| | | | | | | | The Correlation ID is taken or generated from received X-Request-ID. Then it is being passed to all executed services (sidekiq workers or gitaly calls). The Correlation ID is logged in all structured logs as `correlation_id`.
* Enable even more frozen string in lib/gitlabrepo-forks/gitlab-ce-frozen-string-lib-gitlab-even-moregfyoung2018-11-133-0/+6
| | | | | | | | | | | | | | | | | | | Enables frozen string for the following: * lib/gitlab/fogbugz_import/**/*.rb * lib/gitlab/gfm/**/*.rb * lib/gitlab/git/**/*.rb * lib/gitlab/gitaly_client/**/*.rb * lib/gitlab/gitlab_import/**/*.rb * lib/gitlab/google_code_import/**/*.rb * lib/gitlab/gpg/**/*.rb * lib/gitlab/grape_logging/**/*.rb * lib/gitlab/graphql/**/*.rb * lib/gitlab/graphs/**/*.rb * lib/gitlab/hashed_storage/**/*.rb * lib/gitlab/health_checks/**/*.rb Partially address gitlab-org/gitlab-ce#47424.
* Fix open-ended params for api_json.logAndrew Newdigate2018-10-291-1/+9
|
* Add route information to lograge structured loggingAndrew Newdigate2018-09-051-0/+25
|
* Add gitaly_calls to API structured logsAndrew Newdigate2018-09-041-0/+14
|
* Enforce UTF-8 encoding on user input in LogrageWithTimestamp formatter and ↵Imre Farkas2018-06-061-0/+17
| | | | filter out file content from logs
* Log queue duration for Grape API callssh-tag-queue-duration-api-callsStan Hu2018-05-281-0/+26
| | | | | | | This mimics the same thing the RailsQueueDuration does for Rails controller requests and will help diagnose issues with API delays. Closes #46601
* Save user ID and username in Grape API log (api_json.log)sh-store-user-in-api-logsStan Hu2018-01-081-0/+18
| | | | | | This will enable admins to identify who actually made the API request. Relates to #36960
* Use a custom GrapeLogging formatter to get the timestampsh-add-grape-loggingStan Hu2017-09-071-0/+19