# File lib/new_relic/agent/commands/xray_session_collection.rb, line 30 def handle_active_xray_sessions(agent_command) # If X-Rays are disabled, just be quiet about it and don't start the # command. Other hosts might be running the X-Ray, so we don't need # to bark on every get_agent_commands. if !NewRelic::Agent.config['xray_session.enabled''xray_session.enabled'] NewRelic::Agent.logger.debug("Not responding to X-Ray command because of config 'xray_session.enabled' = #{NewRelic::Agent.config[:'xray_session.enabled']}") return end incoming_ids = agent_command.arguments["xray_ids"] deactivate_for_incoming_sessions(incoming_ids) activate_sessions(incoming_ids) end