Skip to content

Commit

Permalink
RUBY-1818 Do not install DistributedTraceMonitor unless enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mwear committed Sep 27, 2017
1 parent 4913715 commit 8e80d6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/new_relic/agent/distributed_trace_monitor.rb
Expand Up @@ -12,6 +12,7 @@ class DistributedTraceMonitor < InboundRequestMonitor
HTTP_TRANSPORT_TYPE = 'HTTP'.freeze

def on_finished_configuring(events)
return unless NewRelic::Agent.config[:'distributed_tracing.enabled']
events.subscribe(:before_call, &method(:on_before_call))
end

Expand Down

0 comments on commit 8e80d6d

Please sign in to comment.