instana / ruby-sensor

💎 Ruby Distributed Tracing & Metrics Sensor for Instana
https://www.instana.com/
MIT License
26 stars 25 forks source link

[Bug]: unable to turn on Ruby AutoProfiling via the ruby-sensor gem #272

Open daande opened 2 years ago

daande commented 2 years ago

Problem Description

As you can imagine we run many containers within our infrastructure and we want to be able to turn on https://www.ibm.com/docs/en/obi/current?topic=processes-configuring-profiling#ruby. However, as you are probably aware this comes with a performance hit that we are not willing to take across our entire infrastructure in production. What we need is an environment variable added to https://github.com/instana/ruby-sensor similar to how the Python and Go libraries have with INSTANA_AUTO_PROFILE=true. This would allow us to control turning on Profiling when needed to a controlled amount of traffic.

Minimal, Complete, Verifiable, Example

No response

Gemfile.lock

GIT
  remote: https://github.com/jeremycw/ruby-sensor.git
  revision: a0b4b66aca95caf2fe69eadd52b3afc1ade18d58
  ref: a0b4b66aca95caf2fe69eadd52b3afc1ade18d58
  specs:
    instana (1.208.0)
      concurrent-ruby (>= 1.1)
      oj (>= 3.0.11)
      sys-proctable (>= 1.2.2)

Ruby Version

ruby 2.7.5
daande commented 2 years ago

Note have created a support request here: https://support.instana.com/hc/en-us/requests/26321