This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1 | |
require 'newrelic_rpm' | |
require 'new_relic/agent/method_tracer' | |
class PayloadRanker | |
def initialize(payload) | |
@payload = payload | |
NewRelic::Agent.manual_start :agent_enabled => true | |
ObjectSpace.define_finalizer(self, proc {|_| NewRelic::Agent.shutdown}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[04/28/11 11:30:01 -0500 example.com (14623)] INFO : Dispatcher: passenger | |
[04/28/11 11:30:01 -0500 example.com (14623)] INFO : Application: Market (Staging) | |
[04/28/11 11:30:01 -0500 example.com (14623)] INFO : Connecting workers after forking. | |
[04/28/11 11:30:01 -0500 example.com (14623)] INFO : New Relic RPM Agent 2.14.1 Initialized: pid = 14623 | |
[04/28/11 11:30:01 -0500 example.com (14623)] INFO : Agent Log found in /var/www/market_staging/releases/20110428160745/log/newrelic_agent.log | |
[04/28/11 11:30:01 -0500 example.com (14623)] DEBUG : Processing instrumentation file '/var/www/market_staging/shared/vendor/ruby/1.8/gems/newrelic_rpm-2.14.1/lib/new_relic/agent/instrumentation/delayed_job_instrumentation.rb' | |
[04/28/11 11:30:01 -0500 example.com (14623)] DEBUG : Processing instrumentation file '/var/www/market_staging/shared/vendor/ruby/1.8/gems/newrelic_rpm-2.14.1/lib/new_relic/agent/instrumentation/unicorn_instrumentation.rb' | |
[04/28/11 11:30:01 -0500 example.com (14623)] DEBUG : Processing instrumentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#1 | |
require 'newrelic_rpm' | |
require 'new_relic/control' | |
require 'new_relic/agent/instrumentation/controller_instrumentation' | |
class PayloadRanker | |
include NewRelic::Agent::Instrumentation::ControllerInstrumentation | |
def initialize(payload) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I [2011-04-28T12:16:02.982691 #18045] INFO -- : NoMethodError | |
E [2011-04-28T12:16:02.982855 #18045] ERROR -- : undefined method `include?' for nil:NilClass | |
E [2011-04-28T12:16:02.982940 #18045] ERROR -- : ["/var/www/market_staging/releases/20110428170809/lib/revenue_appraiser.rb:51:in `revenue_computation'" | |
"/var/www/market_staging/releases/20110428170809/lib/revenue_appraiser.rb:22:in `value'" | |
"/var/www/market_staging/releases/20110428170809/lib/appraiser.rb:20:in `value'" | |
"lib/consumers/appraiser_consumer.rb:76:in `rank_without_newrelic_transaction_trace'" | |
"(eval):3:in `rank'" | |
"/var/www/market_staging/shared/vendor/ruby/1.8/gems/newrelic_rpm-2.14.1/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:253:in `perform_action_with_newrelic_trace'" | |
"/var/www/market_staging/shared/vendor/ruby/1.8/gems/newrelic_rpm-2.14.1/lib/new_relic/agent/method_tracer.rb:193:in `trace_execution_scoped'" | |
"/var/www/market_staging/shared/vendor/ruby/1.8/gems/newrelic_rpm-2.14.1/lib/new_relic/agent/instrument |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
before_fork do | |
logger.formatter = Logger::Formatter.new | |
logger.info "Loading application..." | |
require(root_path + 'config/environment.rb') | |
Dir.chdir(RAILS_ROOT) | |
logger.info "Loading brain for DecisionPoint 'Insti', 'LMP'..." | |
Appraiser["LMP_Insti"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[04/28/11 15:35:41 -0500 example.com (6260)] INFO : No dispatcher detected. | |
[04/28/11 15:35:41 -0500 example.com (6260)] INFO : Application: Market (Staging) | |
[04/28/11 15:35:41 -0500 example.com (6260)] DEBUG : Connecting Process to RPM: /var/www/market_staging/shared/vendor/ruby/1.8/bin/queue_map_consumer | |
[04/28/11 15:35:41 -0500 example.com (6260)] INFO : Resolved collector.newrelic.com to 204.93.223.153 | |
[04/28/11 15:35:41 -0500 example.com (6260)] DEBUG : Connect to collector.newrelic.com:80/agent_listener/8/64c340f9eefdef3cf57aa0fcb957cab8a0b2972e/get_redirect_host | |
[04/28/11 15:35:41 -0500 example.com (6260)] DEBUG : Http Connection opened to 204.93.223.153:80 | |
[04/28/11 15:35:41 -0500 example.com (6260)] DEBUG : Uncompressed content returned | |
[04/28/11 15:35:41 -0500 example.com (6260)] INFO : Resolved collector-4.newrelic.com to 204.93.223.138 | |
[04/28/11 15:35:41 -0500 example.com (6260)] DEBUG : Connect to collector-4.newrelic.com:80/agent_listener/8/64c340f9eefdef3cf57aa0fcb957cab8a0b2972e/connect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[04/28/11 15:35:41 -0500 example.com (6260)] INFO : No dispatcher detected. | |
[04/28/11 15:35:41 -0500 example.com (6260)] INFO : Application: Market (Staging) | |
[04/28/11 15:35:41 -0500 example.com (6260)] DEBUG : Connecting Process to RPM: /var/www/market_staging/shared/vendor/ruby/1.8/bin/queue_map_consumer | |
[04/28/11 15:35:41 -0500 example.com (6260)] INFO : Resolved collector.newrelic.com to 204.93.223.153 | |
[04/28/11 15:35:41 -0500 example.com (6260)] DEBUG : Connect to collector.newrelic.com:80/agent_listener/8/64c340f9eefdef3cf57aa0fcb957cab8a0b2972e/get_redirect_host | |
[04/28/11 15:35:41 -0500 example.com (6260)] DEBUG : Http Connection opened to 204.93.223.153:80 | |
[04/28/11 15:35:41 -0500 example.com (6260)] DEBUG : Uncompressed content returned | |
[04/28/11 15:35:41 -0500 example.com (6260)] INFO : Resolved collector-4.newrelic.com to 204.93.223.138 | |
[04/28/11 15:35:41 -0500 example.com (6260)] DEBUG : Connect to collector-4.newrelic.com:80/agent_listener/8/64c340f9eefdef3cf57aa0fcb957cab8a0b2972e/connect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<h1>Test basic WebSQL usage</h1> | |
<h2>Refresh this page until you see the error (in Chrome for iOS)</h2> | |
<pre id="display"></pre> | |
<script> | |
function log(str) { | |
document.getElementById('display').innerHTML += str.toString() + '\n'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<h1>Test basic WebSQL usage</h1> | |
<h2>Refresh this page until you see the error (in Chrome for iOS)</h2> | |
<pre id="display"></pre> | |
<script> | |
function log(str) { | |
document.getElementById('display').innerHTML += str.toString() + '\n'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<h1>Test basic WebSQL usage</h1> | |
<h2>Refresh this page until you see the error (in Chrome for iOS)</h2> | |
<pre id="display"></pre> | |
<script> | |
function log(str) { | |
document.getElementById('display').innerHTML += str.toString() + '\n'; | |
} |
OlderNewer