Skip to content

Commit

Permalink
Report on startup - not on first request.
Browse files Browse the repository at this point in the history
  • Loading branch information
caryfitzhugh committed Nov 26, 2012
1 parent 07dbe28 commit 8786141
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/truestack_rails.rb
Expand Up @@ -24,13 +24,14 @@ class Railtie < ::Rails::Railtie

TruestackClient.configure do |c|
c.logger = config.logger
c.app_version = "Rails#{Rails::VERSION::STRING}:TsRails-#{TruestackRails::VERSION}"
c.app_version = "Rails#{Rails::VERSION::STRING}:TSRails-#{TruestackRails::VERSION}"
end

case (::Rails.version.to_f * 10.0).to_i / 10.0
when 3.2
TruestackRails::Railtie32.instrument!
TruestackRails::Railtie32.subscribe!
TruestackRails::Host.report_once!
else
raise "Truestack does not support this version of Rails"
end
Expand Down
3 changes: 1 addition & 2 deletions lib/truestack_rails/railtie_3_2.rb
Expand Up @@ -116,10 +116,9 @@ def _truestack_request_logging_around_filter
yield
rescue Exception, RuntimeError => e
exception = e
ensure
TruestackRails::Host.report_once!
end
end

if exception
if @_ts_exception_data
publish_data = @_ts_exception_data.merge({
Expand Down
2 changes: 1 addition & 1 deletion lib/truestack_rails/version.rb
@@ -1,3 +1,3 @@
module TruestackRails
VERSION = "0.0.198"
VERSION = "0.0.199"
end

0 comments on commit 8786141

Please sign in to comment.