lib/instana.rb in instana-1.7.0 vs lib/instana.rb in instana-1.7.1
- old
+ new
@@ -3,11 +3,10 @@
# Boot the instana agent background thread. If you wish to have greater
# control on the where and which thread this is run in, instead use
#
# gem "instana", :require => "instana/setup"
#
-# ...and manually call ::Instana.agent.start in the thread
-# of your choice
+# ...and override ::Instana::Agent.spawn_background_thread to boot
+# the thread of your choice.
#
-Thread.new do
- ::Instana.agent.start
-end
+
+::Instana.agent.spawn_background_thread