appsignal 0.8.1.beta.1 → 0.8.1.beta.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDFlZGY5MmI0ZDU3ZjRkNWViMzI2YTk4M2IyYjcxNmIxM2QwOTg2Yg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Y2UyYTY2NDg4MTA2NDk0NDcxYjdiNDZmYWUwMDIxMmNjNmYyNjIxNg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDZhYTdkYjYyN2I2NGI2MzRkOTc2NzdiNjdiMmFkYzY4ZWNjMTA1NjMwYmI1
|
10
|
+
ZWE1NDBlMzdhZGY2NDI1OTVmNzA4YWI4MmEzNjI2YjM1YWI2NzIyYzc1ZmMx
|
11
|
+
N2I1YTk3MjY1MDNjYjE2MmRmZDYwZWU1N2M2ZjYyZWRiNjhjODY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YWZmOTczYzQ4OWUwNzI1ZWJkMWIxZDExMmNkYTg3YjBhNjdiZDdlM2MwOGVj
|
14
|
+
MTdhZGE2OWI4ZjJkZDNmNDI2Mjg5MWFjNDUyMjhkZGNmNmExNjZjMzZlNGYz
|
15
|
+
YjA1YTk0MDI5ZWFhZjJlMzgyMmYwMjk1MzFiNGFiMDE3NGI2YTU=
|
data/lib/appsignal/version.rb
CHANGED
@@ -24,7 +24,7 @@ describe Appsignal::Transaction::Formatter do
|
|
24
24
|
:action => "BlogPostsController#show",
|
25
25
|
:db_runtime => 500,
|
26
26
|
:duration => be_within(0.01).of(100.0),
|
27
|
-
:end =>
|
27
|
+
:end => 1389783600.1,
|
28
28
|
:environment => {},
|
29
29
|
:kind => "http_request",
|
30
30
|
:path => "/blog",
|
@@ -32,7 +32,7 @@ describe Appsignal::Transaction::Formatter do
|
|
32
32
|
:request_method => "GET",
|
33
33
|
:session_data => {},
|
34
34
|
:status => "200",
|
35
|
-
:time =>
|
35
|
+
:time => 1389783600.0,
|
36
36
|
:view_runtime => 500
|
37
37
|
} }
|
38
38
|
its([:failed]) { should be_false }
|
@@ -97,8 +97,8 @@ describe Appsignal::Transaction::Formatter do
|
|
97
97
|
its(:first) { should == {
|
98
98
|
:name => "query.mongoid",
|
99
99
|
:duration => be_within(0.01).of(100.0),
|
100
|
-
:time =>
|
101
|
-
:end =>
|
100
|
+
:time => 1389783600.0,
|
101
|
+
:end => 1389783600.1,
|
102
102
|
:payload => {
|
103
103
|
:path => "/blog",
|
104
104
|
:action => "show",
|
@@ -123,7 +123,7 @@ describe Appsignal::Transaction::Formatter do
|
|
123
123
|
its([:log_entry]) { should == {
|
124
124
|
:action => "BackgroundJob#perform",
|
125
125
|
:duration => be_within(0.01).of(100.0),
|
126
|
-
:end =>
|
126
|
+
:end => 1389783600.1,
|
127
127
|
:queue_duration => 10.0,
|
128
128
|
:priority => 1,
|
129
129
|
:attempts => 0,
|
@@ -132,7 +132,7 @@ describe Appsignal::Transaction::Formatter do
|
|
132
132
|
:kind => "background_job",
|
133
133
|
:path => "/foo",
|
134
134
|
:session_data => {},
|
135
|
-
:time =>
|
135
|
+
:time => 1389783600.0,
|
136
136
|
} }
|
137
137
|
its([:failed]) { should be_false }
|
138
138
|
|
@@ -349,13 +349,13 @@ describe Appsignal::Transaction do
|
|
349
349
|
context "when queue start is set" do
|
350
350
|
let(:payload) { create_background_payload }
|
351
351
|
|
352
|
-
it { should ==
|
352
|
+
it { should == 1389783590.0 }
|
353
353
|
end
|
354
354
|
end
|
355
355
|
|
356
356
|
describe "#set_http_queue_start" do
|
357
|
-
let(:slightly_earlier_time) { fixed_time - 10
|
358
|
-
let(:
|
357
|
+
let(:slightly_earlier_time) { fixed_time - 10 }
|
358
|
+
let(:slightly_earlier_time_in_ms) { slightly_earlier_time.to_i }
|
359
359
|
before { transaction.set_http_queue_start }
|
360
360
|
subject { transaction.queue_start }
|
361
361
|
|
@@ -372,9 +372,9 @@ describe Appsignal::Transaction do
|
|
372
372
|
end
|
373
373
|
|
374
374
|
context "with the HTTP_X_REQUEST_START header set" do
|
375
|
-
let(:env) { {'HTTP_X_REQUEST_START' => "t=#{
|
375
|
+
let(:env) { {'HTTP_X_REQUEST_START' => "t=#{slightly_earlier_time_in_ms}"} }
|
376
376
|
|
377
|
-
it { should ==
|
377
|
+
it { should == 1389783590.0 }
|
378
378
|
|
379
379
|
context "with unparsable content" do
|
380
380
|
let(:env) { {'HTTP_X_REQUEST_START' => 'something'} }
|
@@ -383,15 +383,15 @@ describe Appsignal::Transaction do
|
|
383
383
|
end
|
384
384
|
|
385
385
|
context "with some cruft" do
|
386
|
-
let(:env) { {'HTTP_X_REQUEST_START' => "t=#{
|
386
|
+
let(:env) { {'HTTP_X_REQUEST_START' => "t=#{slightly_earlier_time_in_ms}aaaa"} }
|
387
387
|
|
388
|
-
it { should ==
|
388
|
+
it { should == 1389783590.0 }
|
389
389
|
end
|
390
390
|
|
391
391
|
context "with the alternate HTTP_X_QUEUE_START header set" do
|
392
|
-
let(:env) { {'HTTP_X_QUEUE_START' => "t=#{
|
392
|
+
let(:env) { {'HTTP_X_QUEUE_START' => "t=#{slightly_earlier_time_in_ms}"} }
|
393
393
|
|
394
|
-
it { should ==
|
394
|
+
it { should == 1389783590.0 }
|
395
395
|
end
|
396
396
|
end
|
397
397
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module TransactionHelpers
|
2
2
|
def fixed_time
|
3
|
-
@fixed_time ||= Time.
|
3
|
+
@fixed_time ||= Time.new(2014, 01, 15, 12, 0).to_f
|
4
4
|
end
|
5
5
|
|
6
6
|
def uploaded_file
|
@@ -33,7 +33,7 @@ module TransactionHelpers
|
|
33
33
|
def regular_transaction_with_x_request_start
|
34
34
|
appsignal_transaction(
|
35
35
|
:process_action_event => notification_event,
|
36
|
-
'HTTP_X_REQUEST_START' => "t=#{(
|
36
|
+
'HTTP_X_REQUEST_START' => "t=#{(fixed_time - 40.0).to_i}"
|
37
37
|
)
|
38
38
|
end
|
39
39
|
|