Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gitaly gitaly
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 561
    • Issues 561
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 56
    • Merge requests 56
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • gitalygitaly
  • Merge requests
  • !2678

Add JSON request logging for gitaly-ruby

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Jacob Vosmaer requested to merge jv-ruby-log-3 into master Oct 20, 2020
  • Overview 13
  • Commits 8
  • Pipelines 8
  • Changes 7

Part of gitlab-com/gl-infra/scalability#519 (closed)

This MR upgrade labkit-ruby to 0.13, which includes a new gRPC server middleware that writes an access log. The access log goes into a separate file gitaly_ruby_json.log in the Gitaly logging dir.

Example log line:

{"type":"gitaly-ruby","grpc.time_ms":0.221,"grpc.code":"OK","grpc.method":"Check","grpc.service":"grpc.health.v1.Health","pid":34993,"correlation_id":"f08f390f35a7a7e6c2dffa59c27b0878","time":"2020-10-20T13:42:11.385Z"}
Edited Oct 20, 2020 by Jacob Vosmaer
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: jv-ruby-log-3