Skip to content

Commit

Permalink
Fixed last_callstacking_exception timestamp.
Browse files Browse the repository at this point in the history
  • Loading branch information
aantix committed Nov 25, 2023
1 parent ddf099d commit 1737f9e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 24 deletions.
6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

32 changes: 17 additions & 15 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
callstacking-rails (0.1.36)
callstacking-rails (0.1.38)
faraday (>= 1.10.3)
faraday-follow_redirects
rails (>= 4)
Expand Down Expand Up @@ -74,19 +74,21 @@ GEM
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
base64 (0.2.0)
builder (3.2.4)
concurrent-ruby (1.2.2)
crass (1.0.6)
date (3.3.3)
date (3.3.4)
erubi (1.12.0)
faraday (2.7.6)
faraday (2.7.12)
base64
faraday-net_http (>= 2.0, < 3.1)
ruby2_keywords (>= 0.0.4)
faraday-follow_redirects (0.3.0)
faraday (>= 1, < 3)
faraday-net_http (3.0.2)
globalid (1.1.0)
activesupport (>= 5.0)
globalid (1.2.1)
activesupport (>= 6.1)
i18n (1.12.0)
concurrent-ruby (~> 1.0)
loofah (2.20.0)
Expand All @@ -99,22 +101,22 @@ GEM
net-smtp
marcel (1.0.2)
method_source (1.0.0)
mini_mime (1.1.2)
mini_mime (1.1.5)
minitest (5.18.0)
minitest-silence (0.2.4)
minitest (~> 5.12)
mocha (2.0.2)
ruby2_keywords (>= 0.0.5)
net-imap (0.3.6)
net-imap (0.4.6)
date
net-protocol
net-pop (0.1.2)
net-protocol
net-protocol (0.2.1)
net-protocol (0.2.2)
timeout
net-smtp (0.3.3)
net-smtp (0.4.0)
net-protocol
nio4r (2.5.9)
nio4r (2.6.1)
nokogiri (1.14.2-arm64-darwin)
racc (~> 1.4)
racc (1.6.2)
Expand Down Expand Up @@ -147,7 +149,7 @@ GEM
rake (>= 12.2)
thor (~> 1.0)
zeitwerk (~> 2.5)
rake (13.0.6)
rake (13.1.0)
ruby2_keywords (0.0.5)
sprockets (4.2.0)
concurrent-ruby (~> 1.0)
Expand All @@ -157,14 +159,14 @@ GEM
activesupport (>= 5.2)
sprockets (>= 3.0.0)
sqlite3 (1.6.2-arm64-darwin)
thor (1.2.2)
timeout (0.3.2)
thor (1.3.0)
timeout (0.4.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
websocket-driver (0.7.5)
websocket-driver (0.7.6)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
zeitwerk (2.6.8)
zeitwerk (2.6.12)

PLATFORMS
arm64-darwin-21
Expand Down
4 changes: 2 additions & 2 deletions lib/callstacking/rails/helpers/instrument_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ module InstrumentHelper
extend ActiveSupport::Concern
def callstacking_setup
exception = nil
@last_callstacking_sample = TIme.utc.now
@last_callstacking_sample = Time.now.utc
Callstacking::Rails::Engine.start_tracing(self)

yield
rescue Exception => e
@last_callstacking_exception = Time.utc.now
@last_callstacking_exception = Time.now.utc
exception = e
raise e
ensure
Expand Down
2 changes: 1 addition & 1 deletion lib/callstacking/rails/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Callstacking
module Rails
VERSION = "0.1.37"
VERSION = "0.1.38"
end
end

0 comments on commit 1737f9e

Please sign in to comment.