Closed kurko closed 5 years ago
Hi @kurko - that option (::Instana.config[:enabled]
) was recently deprecated in favor of an environment variable (INSTANA_DISABLE).
If you update to the latest Ruby gem and set that environment variable to any value, it will completely disable the gem (and avoid that logging output).
Some docs here as well: https://docs.instana.io/ecosystem/ruby/configuration/#global-enabledisable
Let me know if this resolves the issue for you.
Should INSTANA_DISABLE
work in 1.9.5
? It's not. I'm trying to keep updates to a minimum because we have a ton of moving parts at this moment.
If this env var only works on 1.10.something, please let me know.
This option was added in https://github.com/instana/ruby-sensor/releases/tag/1.10.7
Alright. Going to give it a try. Thanks for the assistance.
I need to disable Instana in some environments or when I open the Rails console, and I want to do it via code. I tried the following:
It doesn't work. I open the console, though, and I keep getting these really annoying messages:
I know I can do
::Instana.logger = Logger.new(::IO::NULL)
, but I don't want to just shut it up, I want it to stop working so it's one less vector for bugs.How do I disable Instana?