Skip to content

Use a custom Ruby patch to instrument memory usage [RUN ALL RSPEC] [RUN AS-IF-FOSS]

Kamil Trzciński requested to merge instrument-and-log-memory-usage into master

What does this MR do?

This uses a custom Ruby VM patch as described in this issue #296530 (closed) to provide a per-request/per-worker memory allocation statistics.

This also slightly refactors our way of initializing the instrumentation frameworks.

This is dependent on having:

  • Omnibus changes
  • CNG changes
  • Updated Ruby for GitLab CI
  • (potentially) Updated Ruby for GDK/GCK if needed to test locally

Manually tested

I tested the (on Feb 5th):

  • logs being present for sidekiq
  • logs being present for controllers
  • logs being present for API
  • FF being disabled do not emit any logs

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Kamil Trzciński

Merge request reports