Permalink
Browse files

Revert "new relic"

This reverts commit 5138183.
  • Loading branch information...
redinger committed Apr 13, 2009
1 parent 5138183 commit c6ffb346d9916c77f5bac0956cb255b72924cae6
Showing with 0 additions and 9,828 deletions.
  1. +0 −137 config/newrelic.yml
  2. +0 −37 vendor/plugins/newrelic_rpm/LICENSE
  3. +0 −136 vendor/plugins/newrelic_rpm/README
  4. +0 −40 vendor/plugins/newrelic_rpm/Rakefile
  5. +0 −4 vendor/plugins/newrelic_rpm/bin/newrelic_cmd
  6. +0 −30 vendor/plugins/newrelic_rpm/init.rb
  7. +0 −37 vendor/plugins/newrelic_rpm/install.rb
  8. +0 −29 vendor/plugins/newrelic_rpm/lib/new_relic/agent.rb
  9. +0 −740 vendor/plugins/newrelic_rpm/lib/new_relic/agent/agent.rb
  10. +0 −13 vendor/plugins/newrelic_rpm/lib/new_relic/agent/chained_call.rb
  11. +0 −72 vendor/plugins/newrelic_rpm/lib/new_relic/agent/collection_helper.rb
  12. +0 −105 vendor/plugins/newrelic_rpm/lib/new_relic/agent/error_collector.rb
  13. +0 −18 vendor/plugins/newrelic_rpm/lib/new_relic/agent/instrumentation/active_merchant.rb
  14. +0 −95 vendor/plugins/newrelic_rpm/lib/new_relic/agent/instrumentation/active_record_instrumentation.rb
  15. +0 −151 vendor/plugins/newrelic_rpm/lib/new_relic/agent/instrumentation/controller_instrumentation.rb
  16. +0 −90 vendor/plugins/newrelic_rpm/lib/new_relic/agent/instrumentation/data_mapper.rb
  17. +0 −105 vendor/plugins/newrelic_rpm/lib/new_relic/agent/instrumentation/dispatcher_instrumentation.rb
  18. +0 −18 vendor/plugins/newrelic_rpm/lib/new_relic/agent/instrumentation/memcache.rb
  19. +0 −17 vendor/plugins/newrelic_rpm/lib/new_relic/agent/instrumentation/merb/controller.rb
  20. +0 −15 vendor/plugins/newrelic_rpm/lib/new_relic/agent/instrumentation/merb/dispatcher.rb
  21. +0 −6 vendor/plugins/newrelic_rpm/lib/new_relic/agent/instrumentation/merb/errors.rb
  22. +0 −35 vendor/plugins/newrelic_rpm/lib/new_relic/agent/instrumentation/rails/action_controller.rb
  23. +0 −27 vendor/plugins/newrelic_rpm/lib/new_relic/agent/instrumentation/rails/action_web_service.rb
  24. +0 −30 vendor/plugins/newrelic_rpm/lib/new_relic/agent/instrumentation/rails/dispatcher.rb
  25. +0 −23 vendor/plugins/newrelic_rpm/lib/new_relic/agent/instrumentation/rails/errors.rb
  26. +0 −6 vendor/plugins/newrelic_rpm/lib/new_relic/agent/instrumentation/rails/rails.rb
  27. +0 −171 vendor/plugins/newrelic_rpm/lib/new_relic/agent/method_tracer.rb
  28. +0 −105 vendor/plugins/newrelic_rpm/lib/new_relic/agent/patch_const_missing.rb
  29. +0 −29 vendor/plugins/newrelic_rpm/lib/new_relic/agent/samplers/cpu.rb
  30. +0 −55 vendor/plugins/newrelic_rpm/lib/new_relic/agent/samplers/memory.rb
  31. +0 −26 vendor/plugins/newrelic_rpm/lib/new_relic/agent/samplers/mongrel.rb
  32. +0 −240 vendor/plugins/newrelic_rpm/lib/new_relic/agent/stats_engine.rb
  33. +0 −40 vendor/plugins/newrelic_rpm/lib/new_relic/agent/synchronize.rb
  34. +0 −274 vendor/plugins/newrelic_rpm/lib/new_relic/agent/transaction_sampler.rb
  35. +0 −128 vendor/plugins/newrelic_rpm/lib/new_relic/agent/worker_loop.rb
  36. +0 −147 vendor/plugins/newrelic_rpm/lib/new_relic/commands/deployments.rb
  37. +0 −30 vendor/plugins/newrelic_rpm/lib/new_relic/commands/new_relic_commands.rb
  38. +0 −278 vendor/plugins/newrelic_rpm/lib/new_relic/config.rb
  39. +0 −35 vendor/plugins/newrelic_rpm/lib/new_relic/config/merb.rb
  40. +0 −119 vendor/plugins/newrelic_rpm/lib/new_relic/config/rails.rb
  41. +0 −22 vendor/plugins/newrelic_rpm/lib/new_relic/config/ruby.rb
  42. +0 −135 vendor/plugins/newrelic_rpm/lib/new_relic/local_environment.rb
  43. +0 −6 vendor/plugins/newrelic_rpm/lib/new_relic/merbtasks.rb
  44. +0 −26 vendor/plugins/newrelic_rpm/lib/new_relic/metric_data.rb
  45. +0 −39 vendor/plugins/newrelic_rpm/lib/new_relic/metric_spec.rb
  46. +0 −7 vendor/plugins/newrelic_rpm/lib/new_relic/metrics.rb
  47. +0 −21 vendor/plugins/newrelic_rpm/lib/new_relic/noticed_error.rb
  48. +0 −75 vendor/plugins/newrelic_rpm/lib/new_relic/recipes.rb
  49. +0 −95 vendor/plugins/newrelic_rpm/lib/new_relic/shim_agent.rb
  50. +0 −359 vendor/plugins/newrelic_rpm/lib/new_relic/stats.rb
  51. +0 −122 vendor/plugins/newrelic_rpm/lib/new_relic/transaction_analysis.rb
  52. +0 −499 vendor/plugins/newrelic_rpm/lib/new_relic/transaction_sample.rb
  53. +0 −151 vendor/plugins/newrelic_rpm/lib/new_relic/version.rb
  54. +0 −255 vendor/plugins/newrelic_rpm/lib/new_relic_api.rb
  55. +0 −27 vendor/plugins/newrelic_rpm/lib/newrelic_rpm.rb
  56. +0 −17 vendor/plugins/newrelic_rpm/lib/tasks/agent_tests.rake
  57. +0 −4 vendor/plugins/newrelic_rpm/lib/tasks/all.rb
  58. +0 −7 vendor/plugins/newrelic_rpm/lib/tasks/install.rake
  59. +0 −137 vendor/plugins/newrelic_rpm/newrelic.yml
  60. +0 −9 vendor/plugins/newrelic_rpm/newrelic_spec.rb
  61. +0 −6 vendor/plugins/newrelic_rpm/recipes/newrelic.rb
  62. +0 −1 vendor/plugins/newrelic_rpm/spec_helper.rb
  63. +0 −28 vendor/plugins/newrelic_rpm/test/config/newrelic.yml
  64. +0 −35 vendor/plugins/newrelic_rpm/test/config/test_config.rb
  65. +0 −25 vendor/plugins/newrelic_rpm/test/new_relic/agent/agent_test_controller.rb
  66. +0 −40 vendor/plugins/newrelic_rpm/test/new_relic/agent/mock_ar_connection.rb
  67. +0 −23 vendor/plugins/newrelic_rpm/test/new_relic/agent/mock_scope_listener.rb
  68. +0 −15 vendor/plugins/newrelic_rpm/test/new_relic/agent/model_fixture.rb
  69. +0 −90 vendor/plugins/newrelic_rpm/test/new_relic/agent/tc_active_record.rb
  70. +0 −148 vendor/plugins/newrelic_rpm/test/new_relic/agent/tc_agent.rb
  71. +0 −113 vendor/plugins/newrelic_rpm/test/new_relic/agent/tc_collection_helper.rb
  72. +0 −77 vendor/plugins/newrelic_rpm/test/new_relic/agent/tc_controller.rb
  73. +0 −52 vendor/plugins/newrelic_rpm/test/new_relic/agent/tc_dispatcher_instrumentation.rb
  74. +0 −127 vendor/plugins/newrelic_rpm/test/new_relic/agent/tc_error_collector.rb
  75. +0 −306 vendor/plugins/newrelic_rpm/test/new_relic/agent/tc_method_tracer.rb
  76. +0 −218 vendor/plugins/newrelic_rpm/test/new_relic/agent/tc_stats_engine.rb
  77. +0 −37 vendor/plugins/newrelic_rpm/test/new_relic/agent/tc_synchronize.rb
  78. +0 −175 vendor/plugins/newrelic_rpm/test/new_relic/agent/tc_transaction_sample.rb
  79. +0 −194 vendor/plugins/newrelic_rpm/test/new_relic/agent/tc_transaction_sample_builder.rb
  80. +0 −302 vendor/plugins/newrelic_rpm/test/new_relic/agent/tc_transaction_sampler.rb
  81. +0 −101 vendor/plugins/newrelic_rpm/test/new_relic/agent/tc_worker_loop.rb
  82. +0 −13 vendor/plugins/newrelic_rpm/test/new_relic/agent/testable_agent.rb
  83. +0 −36 vendor/plugins/newrelic_rpm/test/new_relic/tc_config.rb
  84. +0 −64 vendor/plugins/newrelic_rpm/test/new_relic/tc_deployments_api.rb
  85. +0 −94 vendor/plugins/newrelic_rpm/test/new_relic/tc_environment.rb
  86. +0 −150 vendor/plugins/newrelic_rpm/test/new_relic/tc_metric_spec.rb
  87. +0 −9 vendor/plugins/newrelic_rpm/test/new_relic/tc_shim_agent.rb
  88. +0 −141 vendor/plugins/newrelic_rpm/test/new_relic/tc_stats.rb
  89. +0 −40 vendor/plugins/newrelic_rpm/test/test_helper.rb
  90. +0 −44 vendor/plugins/newrelic_rpm/test/ui/tc_newrelic_helper.rb
  91. +0 −200 vendor/plugins/newrelic_rpm/ui/controllers/newrelic_controller.rb
  92. +0 −55 vendor/plugins/newrelic_rpm/ui/helpers/google_pie_chart.rb
  93. +0 −286 vendor/plugins/newrelic_rpm/ui/helpers/newrelic_helper.rb
  94. +0 −49 vendor/plugins/newrelic_rpm/ui/views/layouts/newrelic_default.rhtml
  95. +0 −27 vendor/plugins/newrelic_rpm/ui/views/newrelic/_explain_plans.rhtml
  96. +0 −12 vendor/plugins/newrelic_rpm/ui/views/newrelic/_sample.rhtml
  97. +0 −28 vendor/plugins/newrelic_rpm/ui/views/newrelic/_segment.rhtml
  98. +0 −14 vendor/plugins/newrelic_rpm/ui/views/newrelic/_segment_row.rhtml
  99. +0 −22 vendor/plugins/newrelic_rpm/ui/views/newrelic/_show_sample_detail.rhtml
  100. +0 −19 vendor/plugins/newrelic_rpm/ui/views/newrelic/_show_sample_sql.rhtml
  101. +0 −3 vendor/plugins/newrelic_rpm/ui/views/newrelic/_show_sample_summary.rhtml
  102. +0 −11 vendor/plugins/newrelic_rpm/ui/views/newrelic/_sql_row.rhtml
  103. +0 −30 vendor/plugins/newrelic_rpm/ui/views/newrelic/_stack_trace.rhtml
  104. +0 −12 vendor/plugins/newrelic_rpm/ui/views/newrelic/_table.rhtml
  105. +0 −45 vendor/plugins/newrelic_rpm/ui/views/newrelic/explain_sql.rhtml
  106. BIN vendor/plugins/newrelic_rpm/ui/views/newrelic/images/arrow-close.png
  107. BIN vendor/plugins/newrelic_rpm/ui/views/newrelic/images/arrow-open.png
  108. BIN vendor/plugins/newrelic_rpm/ui/views/newrelic/images/blue_bar.gif
  109. BIN vendor/plugins/newrelic_rpm/ui/views/newrelic/images/gray_bar.gif
  110. +0 −37 vendor/plugins/newrelic_rpm/ui/views/newrelic/index.rhtml
  111. +0 −107 vendor/plugins/newrelic_rpm/ui/views/newrelic/javascript/transaction_sample.js
  112. +0 −2 vendor/plugins/newrelic_rpm/ui/views/newrelic/sample_not_found.rhtml
  113. +0 −62 vendor/plugins/newrelic_rpm/ui/views/newrelic/show_sample.rhtml
  114. +0 −3 vendor/plugins/newrelic_rpm/ui/views/newrelic/show_source.rhtml
  115. +0 −394 vendor/plugins/newrelic_rpm/ui/views/newrelic/stylesheets/style.css
View
@@ -1,137 +0,0 @@
-#
-# This file configures the NewRelic RPM Agent, NewRelic RPM monitors Rails
-# applications with deep visibility and low overhead. For more information,
-# visit www.newrelic.com.
-#
-#
-#
-# here are the settings that are common to all environments
-common: &default_settings
- # ============================== LICENSE KEY ===============================
- # You must specify the licence key associated with your New Relic account.
- # This key binds your Agent's data to your account in the New Relic RPM service.
- license_key: 'PASTE_YOUR_KEY_HERE'
-
- # Application Name
- # Set this to be the name of your application as you'd like it show up in RPM.
- # RPM will then auto-map instances of your application into a RPM "application"
- # on your home dashboard page. This setting does not prevent you from manually
- # defining applications.
- app_name: My Application
-
- # the 'enabled' setting is used to turn on the NewRelic Agent. When false,
- # your application is not instrumented and the Agent does not start up or
- # collect any data; it is a complete shut-off.
- #
- # when turned on, the agent collects performance data by inserting lightweight
- # tracers on key methods inside the rails framework and asynchronously aggregating
- # and reporting this performance data to the NewRelic RPM service at NewRelic.com.
- # below.
- enabled: false
-
- # The newrelic agent generates its own log file to keep its logging information
- # separate from that of your application. Specify its log level here.
- log_level: info
-
- # The newrelic agent communicates with the RPM service via http by default.
- # If you want to communicate via https to increase security, then turn on
- # SSL by setting this value to true. Note, this will result in increased
- # CPU overhead to perform the encryption involved in SSL communication, but this
- # work is done asynchronously to the threads that process your application code, so
- # it should not impact response times.
- ssl: false
-
-
- # Proxy settings for connecting to the RPM server.
- #
- # If a proxy is used, the host setting is required. Other settings are optional. Default
- # port is 8080.
- #
- # proxy_host: proxy.sample.com
- # proxy_port: 8080
- # proxy_user:
- # proxy_pass:
-
-
- # Tells transaction tracer and error collector (when enabled) whether or not to capture HTTP params.
- # When true, the RoR filter_parameters mechanism is used so that sensitive parameters are not recorded
- capture_params: false
-
-
- # Transaction tracer captures deep information about slow
- # transactions and sends this to the RPM service once a minute. Included in the
- # transaction is the exact call sequence of the transactions including any SQL statements
- # issued.
- transaction_tracer:
-
- # Transaction tracer is enabled by default. Set this to false to turn it off. This feature
- # is only available at the Silver and above product levels.
- enabled: true
-
-
- # When transaction tracer is on, SQL statements can optionally be recorded. The recorder
- # has three modes, "off" which sends no SQL, "raw" which sends the SQL statement in its
- # original form, and "obfuscated", which strips out numeric and string literals
- record_sql: obfuscated
-
- # Threshold in seconds for when to collect stack trace for a SQL call. In other words,
- # when SQL statements exceed this threshold, then capture and send to RPM the current
- # stack trace. This is helpful for pinpointing where long SQL calls originate from
- stack_trace_threshold: 0.500
-
- # Error collector captures information about uncaught exceptions and sends them to RPM for
- # viewing
- error_collector:
-
- # Error collector is enabled by default. Set this to false to turn it off. This feature
- # is only available at the Silver and above product levels
- enabled: true
-
- # Tells error collector whether or not to capture a source snippet around the place of the
- # error when errors are View related.
- capture_source: true
-
- # To stop specific errors from reporting to RPM, set this property to comma separated
- # values
- #
- #ignore_errors: ActionController::RoutingError, ...
-
-
-# override default settings based on your application's environment
-
-# NOTE if your application has other named environments, you should
-# provide newrelic conifguration settings for these enviromnents here.
-
-development:
- <<: *default_settings
- # turn off communication to RPM service in development mode.
- # NOTE: for initial evaluation purposes, you may want to temporarily turn
- # the agent on in development mode.
- enabled: false
-
- # When running in Developer Mode, the New Relic Agent will present
- # performance information on the last 100 transactions you have
- # executed since starting the mongrel. to view this data, go to
- # http://localhost:3000/newrelic
- developer: true
-
-test:
- <<: *default_settings
- # it almost never makes sense to turn on the agent when running unit, functional or
- # integration tests or the like.
- enabled: false
-
-# Turn on the agent in production for 24x7 monitoring. NewRelic testing shows
-# an average performance impact of < 5 ms per transaction, you you can leave this on
-# all the time without incurring any user-visible performance degredation.
-production:
- <<: *default_settings
- enabled: true
-
-# many applications have a staging environment which behaves identically to production.
-# Support for that environment is provided here. By default, the staging environment has
-# the agent turned on.
-staging:
- <<: *default_settings
- enabled: true
- app_name: My Application (Staging)
@@ -1,37 +0,0 @@
-Copyright (c) 2008 New Relic, Inc. All rights reserved.
-
-Certain inventions disclosed in this file may be claimed within
-patents owned or patent applications filed by New Relic, Inc. or third
-parties.
-
-Subject to the terms of this notice, New Relic grants you a
-nonexclusive, nontransferable license, without the right to
-sublicense, to (a) install and execute one copy of these files on any
-number of workstations owned or controlled by you and (b) distribute
-verbatim copies of these files to third parties. As a condition to the
-foregoing grant, you must provide this notice along with each copy you
-distribute and you must not remove, alter, or obscure this notice. All
-other use, reproduction, modification, distribution, or other
-exploitation of these files is strictly prohibited, except as may be set
-forth in a separate written license agreement between you and New
-Relic. The terms of any such license agreement will control over this
-notice. The license stated above will be automatically terminated and
-revoked if you exceed its scope or violate any of the terms of this
-notice.
-
-This License does not grant permission to use the trade names,
-trademarks, service marks, or product names of New Relic, except as
-required for reasonable and customary use in describing the origin of
-this file and reproducing the content of this notice. You may not
-mark or brand this file with any trade name, trademarks, service
-marks, or product names other than the original brand (if any)
-provided by New Relic.
-
-Unless otherwise expressly agreed by New Relic in a separate written
-license agreement, these files are provided AS IS, WITHOUT WARRANTY OF
-ANY KIND, including without any implied warranties of MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE, TITLE, or NON-INFRINGEMENT. As a
-condition to your use of these files, you are solely responsible for
-such use. New Relic will have no liability to you for direct,
-indirect, consequential, incidental, special, or punitive damages or
-for lost profits or data.
@@ -1,136 +0,0 @@
-= New Relic RPM
-
-* http://www.newrelic.com
-
-New Relic RPM is a Ruby performance management system, developed by
-New Relic, Inc. RPM provides you with deep information about the
-performance of your Ruby on Rails or Merb application as it runs in
-production. The New Relic Agent is distributed as a either a Rails
-plugin or a Gem, both hosted on RubyForge.
-
-The New Relic Agent runs in one of two modes:
-
-* Developer Mode : Adds a web interface mapped to /newrelic to your
- application for showing detailed performance metrics on a page by
- page basis.
-
-* Production Mode : Low overhead instrumentation that captures
- detailed information on your application running in production and
- transmits them to rpm.newrelic.com where you can monitor them in
- real time.
-
-=== Developer Mode
-
-Developer 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 developer mode, RPM will track the performance of
-every http request serviced by your application, and store in memory
-this information for the last 100 http transactions.
-
-When running in Developer Mode, the RPM will also add a few pages to
-your application that allow you to analyze this performance
-information. (Don't worry - those pages are not added to your
-application's routes when you run in production mode.)
-
-To view this performance information, including detailed SQL statement
-analysis, open '/newrelic' in your web application. For instance if
-you are running mongrel or thin on port 3000, enter the following into
-your browser:
-
-http://localhost:3000/newrelic
-
-=== Production Mode
-
-To monitor your applications in production, create an account at
-http://newrelic.com/get-RPM.html
-
-When your application runs in the production environment, the New
-Relic agent runs in production mode. It connects to the New Relic RPM
-service and sends deep performance data to the RPM service for your
-analysis. To view this data, login to http://rpm.newrelic.com.
-
-NOTE: You must have a valid account and license key to view this data
-online. When you sign up for an account at www.newrelic.com, you will
-be provided with a license key, as well as a default configuration
-file for New Relic RPM. You can either paste your license key into
-your existing configuration file, config/newrelic.yml, or you can
-replace that config file with the one included in your welcome email.
-
-== Installation
-
-RPM requires an agent be installed in the application as either a
-Rails plug-in or a gem. Both are available on RubyForge--instructions
-below.
-
-=== Git your RPM on!
-
-The agent is also available on Github under newrelic/rpm. As of March,
-2009, we keep the latest release on the master, the edge on a working
-branch, and previous releases with tags. Fork away!
-
-=== Requirements:
-
-Ruby 1.8.6
-Rails 1.2.6 or above
-Merb 1.0 or above
-
-=== Rails Plug-In Installation
-
- script/plugin install http://newrelic.rubyforge.org/svn/newrelic_rpm
-
-=== Gem Installation
-
- sudo gem install newrelic_rpm
-
-For Rails, edit environment.rb and add to the initalizer block:
-
- config.gem "newrelic_rpm"
-
-The Developer Mode is unavailable when using the gem on Rails versions
-prior to 2.0.
-
-== Merb Support
-
-To monitor a merb app install the newrelic_rpm gem and add
-
- dependency 'newrelic_rpm'
-
-to your init.rb file.
-
-Current features implemented:
-
- * Standard monitoring, overview pages
- * Error capturing
- * Full Active Record instrumentation, including SQL explains
- * Very limited Data Mapper instrumentation
- * Transaction Traces are implemented but will not be very useful
- with Data Mapper until more work is done with the Data Mapper
- instrumentation
-
-Still under development:
-
- * Developer Mode
- * Data Mapper bindings
-
-Also some of the instrumentation has been implemented with method
-chaining, a mechanism that truly goes against the merb way. This was
-necessary in some cases where the API’s were not yet available or
-understood well enough to use. Converting these to hook methods using
-the Merb public API is a work in progress.
-
-== Support
-
-Reach out to us--and to fellow RPM users--at
-http://support.newrelic.com. There you'll find documentation, FAQs,
-and forums where you can submit suggestions and discuss RPM with New
-Relic staff and other users.
-
-Find a bug? E-mail support@newrelic.com, or post it to
-support.newrelic.com.
-
-For other support channels, see http://www.newrelic.com/support.
-
-Thank you, and may your application scale to infinity plus one.
-
-Lew Cirne, Founder and CEO
-New Relic, Inc.
@@ -1,40 +0,0 @@
-require 'rubygems'
-require 'rake/gempackagetask'
-require 'lib/new_relic/version.rb'
-
-GEM_NAME = "newrelic_rpm"
-GEM_VERSION = NewRelic::VERSION::STRING
-AUTHOR = "Bill Kayser"
-EMAIL = "bkayser@newrelic.com"
-HOMEPAGE = "http://www.newrelic.com"
-SUMMARY = "New Relic Ruby Performance Monitoring Agent"
-
-spec = Gem::Specification.new do |s|
- s.rubyforge_project = 'newrelic'
- s.name = GEM_NAME
- s.version = GEM_VERSION
- s.platform = Gem::Platform::RUBY
- s.has_rdoc = true
- s.extra_rdoc_files = ["README", "LICENSE"]
- s.summary = SUMMARY
- s.description = s.summary
- s.author = AUTHOR
- s.email = EMAIL
- s.homepage = HOMEPAGE
- s.require_path = 'lib'
- s.files = %w(install.rb LICENSE README newrelic.yml Rakefile) + Dir.glob("{lib,bin,recipes,test,ui}/**/*")
- s.bindir = "bin" # Use these for applications.
- s.executables = ["newrelic_cmd"]
- s.default_executable = "newrelic_cmd"
-end
-
-Rake::GemPackageTask.new(spec) do |pkg|
- pkg.gem_spec = spec
-end
-
-desc "Create a gemspec file"
-task :gemspec do
- File.open("#{GEM_NAME}.gemspec", "w") do |file|
- file.puts spec.to_ruby
- end
-end
@@ -1,4 +0,0 @@
-#!/usr/bin/env ruby
-# executes one of the commands in the new_relic/commands directory
-# pass the name of the command as an argument
-require File.dirname(__FILE__) + '/../lib/new_relic/commands/new_relic_commands'
@@ -1,30 +0,0 @@
-# This is the initialization for the RPM Rails plugin
-require 'new_relic/config'
-
-# If you are having problems seeing data, be sure and check the
-# newrelic_agent log files.
-#
-# If you can't find any log files and you don't see anything in your
-# application log files, try uncommenting these lines to verify
-# the plugin is being loaded, then contact support@newrelic.com
-# if you are unable to resolve the issue.
-# STDOUT.puts "RPM detected environment: #{NewRelic::Config.instance.local_env}, RAILS_ENV: #{RAILS_ENV}"
-
-# Initializer for the NewRelic Agent
-
-begin
- # JRuby's glassfish plugin is trying to run the Initializer twice,
- # which isn't a good thing so we ignore subsequent invocations here.
- if ! defined?(::NEWRELIC_STARTED)
- ::NEWRELIC_STARTED = "#{caller.join("\n")}"
- NewRelic::Config.instance.start_plugin (defined?(config) ? config : nil)
- else
- NewRelic::Config.instance.log.debug "Attempt to initialize the plugin twice!"
- NewRelic::Config.instance.log.debug "Original call: \n#{::NEWRELIC_STARTED}"
- NewRelic::Config.instance.log.debug "Here we are now: \n#{caller.join("\n")}"
- end
-rescue => e
- NewRelic::Config.instance.log! "Error initializing New Relic plugin (#{e})", :error
- NewRelic::Config.instance.log! e.backtrace.join("\n"), :error
- NewRelic::Config.instance.log! "Agent is disabled."
-end
Oops, something went wrong.

0 comments on commit c6ffb34

Please sign in to comment.