airbrake-ruby 3.0.0.rc.2 → 3.0.0.rc.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/airbrake-ruby/route_sender.rb +4 -2
- data/lib/airbrake-ruby/version.rb +1 -1
- data/spec/route_sender_spec.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0965a1a57e79af2ae1e07efbbb7c95ed295ff5c5'
|
4
|
+
data.tar.gz: f4ec1d4f408cbf1748ed57d2bd407454e5be3702
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4122439f62ddc77106018546702a14fc9fe3c79b5682267d039044c8d37f9bd3aaafb385ad13c61032cf1b90c02cb40429f31223c915bef16eba5483bd7bcfa2
|
7
|
+
data.tar.gz: 0d74dcff6b9b28b117316dd6fdf46bbb54cfc09df3e06bf0254e884a85ce266d57a1a514f70aadc9fe80f00d6acc52afdf931d9b1573f58370d5f972f189eca6
|
@@ -56,8 +56,10 @@ module Airbrake
|
|
56
56
|
# @param [Integer] count The number of requests
|
57
57
|
# @param [Float] sum The sum of request duration in milliseconds
|
58
58
|
# @param [Float] sumsq The squared sum of request duration in milliseconds
|
59
|
-
# @param [TDigest::TDigest] tdigest
|
60
|
-
def initialize(
|
59
|
+
# @param [TDigest::TDigest] tdigest By default, the compression is 20
|
60
|
+
def initialize(
|
61
|
+
count: 0, sum: 0.0, sumsq: 0.0, tdigest: TDigest::TDigest.new(0.05)
|
62
|
+
)
|
61
63
|
super(count, sum, sumsq, tdigest)
|
62
64
|
end
|
63
65
|
|
data/spec/route_sender_spec.rb
CHANGED
@@ -48,10 +48,10 @@ RSpec.describe Airbrake::RouteSender do
|
|
48
48
|
{"routes":\[
|
49
49
|
{"method":"GET","route":"/foo","statusCode":200,
|
50
50
|
"time":"2018-01-01T00:00:00\+00:00","count":1,"sum":24.0,
|
51
|
-
"sumsq":576.0,"tDigest":"
|
51
|
+
"sumsq":576.0,"tDigest":"AAAAAkA0AAAAAAAAAAAAAUHAAAAB"},
|
52
52
|
{"method":"GET","route":"/foo","statusCode":200,
|
53
53
|
"time":"2018-01-01T00:01:00\+00:00","count":1,"sum":10.0,
|
54
|
-
"sumsq":100.0,"tDigest":"
|
54
|
+
"sumsq":100.0,"tDigest":"AAAAAkA0AAAAAAAAAAAAAUEgAAAB"}\]}
|
55
55
|
\z|x
|
56
56
|
)
|
57
57
|
).to have_been_made
|
@@ -67,10 +67,10 @@ RSpec.describe Airbrake::RouteSender do
|
|
67
67
|
{"routes":\[
|
68
68
|
{"method":"GET","route":"/foo","statusCode":200,
|
69
69
|
"time":"2018-01-01T00:00:00\+00:00","count":1,"sum":24.0,
|
70
|
-
"sumsq":576.0,"tDigest":"
|
70
|
+
"sumsq":576.0,"tDigest":"AAAAAkA0AAAAAAAAAAAAAUHAAAAB"},
|
71
71
|
{"method":"POST","route":"/foo","statusCode":200,
|
72
72
|
"time":"2018-01-01T00:00:00\+00:00","count":1,"sum":10.0,
|
73
|
-
"sumsq":100.0,"tDigest":"
|
73
|
+
"sumsq":100.0,"tDigest":"AAAAAkA0AAAAAAAAAAAAAUEgAAAB"}\]}
|
74
74
|
\z|x
|
75
75
|
)
|
76
76
|
).to have_been_made
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: airbrake-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0.rc.
|
4
|
+
version: 3.0.0.rc.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Airbrake Technologies, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tdigest
|