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 +4 -4
- data/README.rdoc +1 -2
- data/lib/raygun/apm/rails.rb +2 -10
- data/lib/raygun/apm/rails/middleware.rb +2 -2
- data/lib/raygun/apm/rails/railtie.rb +1 -2
- data/lib/raygun/apm/rails/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e83c0d7b1594e131f9cea114fbb80ffa98e1057232cc3c50ffcacad7d47cf4b
|
4
|
+
data.tar.gz: 3d2a8030c87933798bc3525cdf6fb4274611208d06b47007d6d7e04e406d5841
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cc3503b747983b891ed2490fe1b3e20f75465c0dd940d12a4d2d26f73f323c330333116216579fa57b2da15f200993e114f578c79f92258f3f8e1b5a481c516
|
7
|
+
data.tar.gz: b05c8af3ccdc740d759d96d7b238c4125920d011571e2c273d31779a8b42402c28d84a244eec153a51cb05f8d92dae9527be6994d9eb78083636d88fc34c8f73
|
data/README.rdoc
CHANGED
@@ -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
|
22
|
+
* 2.7.x
|
24
23
|
|
25
24
|
{Contact us}[https://raygun.com/about/contact] to support other Ruby versions.
|
26
25
|
|
data/lib/raygun/apm/rails.rb
CHANGED
@@ -7,10 +7,8 @@ module Raygun
|
|
7
7
|
|
8
8
|
# from https://api.rubyonrails.org/ , to automate
|
9
9
|
BLACKLIST = %w{
|
10
|
-
#<
|
11
|
-
#<
|
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] =
|
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] =
|
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
|
-
|
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
|
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.
|
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:
|
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.
|
106
|
+
rubygems_version: 3.0.6
|
108
107
|
signing_key:
|
109
108
|
specification_version: 4
|
110
109
|
summary: Raygun application performance monitoring for Rails
|