62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# File 'lib/new_relic/agent/javascript_instrumentor.rb', line 62
def insert_js?(state)
if !state.current_transaction
::NewRelic::Agent.logger.debug('Not in transaction. Skipping browser instrumentation.')
false
elsif !state.is_execution_traced?
::NewRelic::Agent.logger.debug('Execution is not traced. Skipping browser instrumentation.')
false
elsif state.current_transaction.ignore_enduser?
::NewRelic::Agent.logger.debug('Ignore end user for this transaction is set. Skipping browser instrumentation.')
false
else
true
end
rescue => e
::NewRelic::Agent.logger.debug('Failure during insert_js', e)
false
end
|