raygun-apm-rails 0.1.10 → 0.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c41c8f9e40432affa4902fb233dbb2502b555f19c2b9a8501312081ba9137f9c
4
- data.tar.gz: 58f42b7c18092d5ff8548556fd3ebab55d19c27ecdd0a06a62d054314581babe
3
+ metadata.gz: 3e83c0d7b1594e131f9cea114fbb80ffa98e1057232cc3c50ffcacad7d47cf4b
4
+ data.tar.gz: 3d2a8030c87933798bc3525cdf6fb4274611208d06b47007d6d7e04e406d5841
5
5
  SHA512:
6
- metadata.gz: 8deb51a488503a7ff1e5a7dccea7304642780f7721dd9c8c72892b0272af4fda0620298582823af5cc0590167c4a01ff51b1bdc95816941849e3988e99f3238d
7
- data.tar.gz: f3def1fa8f93eef0292d56d82704cc38bfb931d8f9a6d658a3b1b9670e0a3375f44d9d0a7a2a5913c04c9c561137c58fc9b415a2df36ab3c50316f0bcdc1743b
6
+ metadata.gz: 3cc3503b747983b891ed2490fe1b3e20f75465c0dd940d12a4d2d26f73f323c330333116216579fa57b2da15f200993e114f578c79f92258f3f8e1b5a481c516
7
+ data.tar.gz: b05c8af3ccdc740d759d96d7b238c4125920d011571e2c273d31779a8b42402c28d84a244eec153a51cb05f8d92dae9527be6994d9eb78083636d88fc34c8f73
@@ -17,10 +17,9 @@ Distributed as a Rails wrapper to inject the precompiled native profiler gem.
17
17
 
18
18
  The profiler only supports CRuby, also known as Matz's Ruby Interpreter (MRI).
19
19
 
20
- * 2.4.x (End of life upstream release that does not receive backports anymore)
21
20
  * 2.5.x
22
21
  * 2.6.x
23
- * 2.7.x (Preview release, still officially unreleased, but supported)
22
+ * 2.7.x
24
23
 
25
24
  {Contact us}[https://raygun.com/about/contact] to support other Ruby versions.
26
25
 
@@ -7,10 +7,8 @@ module Raygun
7
7
 
8
8
  # from https://api.rubyonrails.org/ , to automate
9
9
  BLACKLIST = %w{
10
- #<Class:
11
- #<Module:
12
- #<ActiveRecord:
13
- #<ActiveModel:
10
+ #<ActiveRecord
11
+ #<ActiveModel
14
12
  Benchmark
15
13
  BigDecimal
16
14
  Concurrent
@@ -51,21 +49,15 @@ module Raygun
51
49
  ActionDispatch
52
50
  ActiveSupport
53
51
  ActionView
54
- ApplicationHelper
55
52
  SQLite3
56
53
  Mysql2
57
54
  Erubi
58
- ApplicationController
59
55
  RequestStore
60
56
  WEBrick
61
57
  Puma
62
58
  PG
63
59
  EnabledModule
64
60
  }
65
-
66
- BOUNDARY = %w{
67
- +RequestStore::Middleware::call
68
- }
69
61
  end
70
62
  end
71
63
  end
@@ -66,7 +66,7 @@ module Raygun
66
66
  event[:status] = notification.payload[:status]
67
67
  # XXX constant milliseconds to microseconds
68
68
  event[:duration] = notification.duration * 1000
69
- event[:timestamp] = Time.now.to_f * 1000000
69
+ event[:timestamp] = notification.time.to_f * 1000000
70
70
  event[:tid] = @tracer.get_thread_id(Thread.current)
71
71
  @tracer.emit(event)
72
72
  rescue => e
@@ -100,7 +100,7 @@ module Raygun
100
100
 
101
101
  # XXX constant milliseconds to microseconds
102
102
  event[:duration] = notification.duration * 1000
103
- event[:timestamp] = Time.now.to_f * 1000000
103
+ event[:timestamp] = notification.time.to_f * 1000000
104
104
  event[:tid] = @tracer.get_thread_id(Thread.current)
105
105
  @tracer.emit(event)
106
106
  rescue => e
@@ -6,8 +6,7 @@ module Raygun
6
6
  require "raygun/apm"
7
7
  require "raygun/apm/rails/middleware"
8
8
  Raygun::Apm::Blacklist.extend_with Raygun::Apm::Rails::BLACKLIST
9
- Raygun::Apm::Blacklist.extend_with Raygun::Apm::Rails::BOUNDARY
10
- app.middleware.insert_before Rack::Sendfile, Raygun::Apm::Rails::Middleware
9
+ app.middleware.insert Raygun::Apm::Rails::Middleware
11
10
  # Explictly enable instrumenting HTTP until a good control API is figured out
12
11
  require "raygun/apm/hooks/net_http"
13
12
  end
@@ -1,7 +1,7 @@
1
1
  module Raygun
2
2
  module Apm
3
3
  module Rails
4
- VERSION = "0.1.10"
4
+ VERSION = "0.1.15"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raygun-apm-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erkki Eilonen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-22 00:00:00.000000000 Z
11
+ date: 2020-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: raygun-apm
@@ -84,7 +84,6 @@ files:
84
84
  - lib/raygun/apm/rails/middleware.rb
85
85
  - lib/raygun/apm/rails/railtie.rb
86
86
  - lib/raygun/apm/rails/version.rb
87
- - raygun-apm-rails-0.1.0.gem
88
87
  - raygun-apm-rails.gemspec
89
88
  homepage:
90
89
  licenses: []
@@ -104,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
103
  - !ruby/object:Gem::Version
105
104
  version: '0'
106
105
  requirements: []
107
- rubygems_version: 3.0.3
106
+ rubygems_version: 3.0.6
108
107
  signing_key:
109
108
  specification_version: 4
110
109
  summary: Raygun application performance monitoring for Rails