lib/instana.rb in instana-1.208.0 vs lib/instana.rb in instana-1.209.0.pre1
- old
+ new
@@ -10,7 +10,11 @@
#
# ...and override ::Instana::Agent.spawn_background_thread to boot
# the thread of your choice.
#
-::Instana::Activator.start
-::Instana.agent.spawn_background_thread
+# :nocov:
+unless ENV.fetch('INSTANA_DISABLE', false)
+ ::Instana::Activator.start
+ ::Instana.agent.spawn_background_thread
+end
+# :nocov: