Skip to content

Commit

Permalink
Ruby 1.9.2 would not load several of the instrumentation due to the p…
Browse files Browse the repository at this point in the history
…ath not being expanded.

10/12/10 20:43:22 -0400 Gibbs.local (4621)] ERROR : Error loading instrumentation file '/Users/tjsingleton/.rvm/gems/ruby-1.9.2-p0@crunch/gems/newrelic_rpm-2.13.2/lib/new_relic/control/../agent/instrumentation/active_record_instrumentation.rb': can't convert Pathname into String
  • Loading branch information
TJ Singleton authored and jaggederest committed Oct 13, 2010
1 parent e3ac66b commit 0a28a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/new_relic/control/instrumentation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def _install_instrumentation

# Instrumentation for the key code points inside rails for monitoring by NewRelic.
# note this file is loaded only if the newrelic agent is enabled (through config/newrelic.yml)
instrumentation_path = File.join(File.dirname(__FILE__), '..', 'agent','instrumentation')
instrumentation_path = File.expand_path(File.join(File.dirname(__FILE__), '..', 'agent','instrumentation'))
@instrumentation_files <<
File.join(instrumentation_path, '*.rb') <<
File.join(instrumentation_path, app.to_s, '*.rb')
Expand Down

0 comments on commit 0a28a72

Please sign in to comment.