Skip to content

Commit

Permalink
Minor tweaks to readme. Also, put more stringent check on license key…
Browse files Browse the repository at this point in the history
… in agent side, so that agents without a license key (ie, plugin installed but no account setup) don't put load on rpm.
  • Loading branch information
cirne committed Apr 18, 2008
1 parent 2d30f3a commit 78e7699
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README
Expand Up @@ -8,7 +8,7 @@ Rails application as it runs in production. The New Relic Agent is distributed a
a Rails Plugin, which is trivial to install and use.

Our testing shows that this agent introduces minimal overhead: in production, a
typical controller action will be impacted by less than 2 milliseconds in
typical controller action will be impacted by less than 5 milliseconds in
response time. (That's significantly less time than is typically spent in mapping
a request to the appropriate controller action.) So, you can run RPM all the
time, and always have access to the information you need to resolve performance
Expand All @@ -23,7 +23,7 @@ Desktop mode is on by default when you run your application in the development
environment (but not when it runs in other environments.) When running in
desktop mode, the NewRelic Agent Rails Extension will track the performance of
every http request serviced by your application, and store in memory this
information for the last 500 http transactions.
information for the last 100 http transactions.

The Desktop Edition will also add a few pages to your application that allow you
to analyze this performance information. (Don't worry - those pages are not
Expand Down
5 changes: 4 additions & 1 deletion lib/newrelic/agent/agent.rb
Expand Up @@ -105,7 +105,10 @@ def start(config)

@sample_threshold = (config['sample_threshold'] || 2).to_i
@license_key = config.fetch('license_key', nil)
unless @license_key

# make sure the license key exists and is likely to be really a license key
# by checking it's string length (license keys are 40 character strings.)
unless @license_key && @license_key.length == 40
log! "No license key found. Please insert your license key into agent/newrelic.yml"
return
end
Expand Down

0 comments on commit 78e7699

Please sign in to comment.