Skip to content

Add GVL/allocation instrumentation and optional log fields#58

Open
Peralphix wants to merge 4 commits into
umbrellio:mainfrom
Peralphix:gvl-allocations
Open

Add GVL/allocation instrumentation and optional log fields#58
Peralphix wants to merge 4 commits into
umbrellio:mainfrom
Peralphix:gvl-allocations

Conversation

@Peralphix

Copy link
Copy Markdown
Contributor

Extracted GVL/memory instrumentation from our applications into the shared gem.

Added new files (loaded only via explicit require):

  • patches/active_support_event — adds #gvl_time and #malloc_increase_bytes to ActiveSupport::Notifications::Event;
  • patches/rails_semantic_logger — enriches the "Completed" action log entry with GC/GVL/allocation stats;
  • semantic_logger/sidekiq_job_metrics — same stats for Sidekiq jobs.

TinyJsonFormatter now supports optional duration and payload keys in custom_names_mapping. Previously such keys were silently ignored. Output is unchanged unless the keys are explicitly requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant