Skip to content

Ruby detect_subprocesses not working with Puma workers #218

Open
@Eimisg

Description

@Eimisg

Pyroscope only reporting profiles from master puma process (pid 1), workers and threads are not profiled.
config.detect_subprocesses = true not working.

#config/initializers/pyroscope.rb

Pyroscope.configure do |config|
  config.application_name = ''
  config.server_address = ''
  config.sample_rate = 100
  config.detect_subprocesses = true
  config.autoinstrument_rails = true
  config.report_pid = true
  config.oncpu = true
end

What did you expect to happen instead?

All Puma workers and threads should be sending profiles

How did you install pyroscope-rs?

ruby '3.3.5'
gem 'rails', '6.0.6.1'
gem 'puma', '~> 6.6.0'
gem 'pyroscope', '~> 0.5.14'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions