appsignal 0.8.1.beta.1 → 0.8.1.beta.2

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDVkNjBlODY5OTYzNTYwOWFiNzkzYjY3NzY1NTJhNjZkYmNmNDVmOQ==
4
+ NDFlZGY5MmI0ZDU3ZjRkNWViMzI2YTk4M2IyYjcxNmIxM2QwOTg2Yg==
5
5
  data.tar.gz: !binary |-
6
- OWZjNGJiYjY2MzAwNDE2ZDk4NjY2MGU5OWJlMDJjODExNDRhMTAxNw==
6
+ Y2UyYTY2NDg4MTA2NDk0NDcxYjdiNDZmYWUwMDIxMmNjNmYyNjIxNg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MDE4N2EyYjE0MzE5M2Y3NWI1NTk0N2YxMTM0YmMzMzk3ZjY2Mzc4MTRmZTEy
10
- NWMyM2E1ZjYwZmU3OWJlNjQwYTE5OTU2MGI4NmQ0MTA0YTExNTQ4YzJlZmQy
11
- ZmI1NGY0M2JiNjU3ODA0OGNmYjU3NmEwZjkzMTAwYjgwMzc3Yjg=
9
+ NDZhYTdkYjYyN2I2NGI2MzRkOTc2NzdiNjdiMmFkYzY4ZWNjMTA1NjMwYmI1
10
+ ZWE1NDBlMzdhZGY2NDI1OTVmNzA4YWI4MmEzNjI2YjM1YWI2NzIyYzc1ZmMx
11
+ N2I1YTk3MjY1MDNjYjE2MmRmZDYwZWU1N2M2ZjYyZWRiNjhjODY=
12
12
  data.tar.gz: !binary |-
13
- Njc3ZmU3N2Y1Yjc2MWQzZDdmYzBmYjI0NmM5NzA3OGIzNTdkM2Y2ZGZjOTM3
14
- MWYzMjJlYmYzMjAwMTc2OTc4MWYyMjQ0Y2RiNzg4ZGQwZDYyMTk0NzhiMTY0
15
- MzYwMTE0OWM3MWE4NGIyNDAwYzRjMzJiN2NkYzE1ZWVkZDczNzA=
13
+ YWZmOTczYzQ4OWUwNzI1ZWJkMWIxZDExMmNkYTg3YjBhNjdiZDdlM2MwOGVj
14
+ MTdhZGE2OWI4ZjJkZDNmNDI2Mjg5MWFjNDUyMjhkZGNmNmExNjZjMzZlNGYz
15
+ YjA1YTk0MDI5ZWFhZjJlMzgyMmYwMjk1MzFiNGFiMDE3NGI2YTU=
@@ -137,7 +137,7 @@ module Appsignal
137
137
  Appsignal.logger.debug("Setting http queue start: #{env_var}")
138
138
  value = env_var.tr('^0-9', '')
139
139
  unless value.empty?
140
- @queue_start = value.to_f / 1000
140
+ @queue_start = value.to_f
141
141
  end
142
142
  end
143
143
  end
@@ -1,3 +1,3 @@
1
1
  module Appsignal
2
- VERSION = '0.8.1.beta.1'
2
+ VERSION = '0.8.1.beta.2'
3
3
  end
@@ -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 => 978364860.1,
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 => 978364860.0,
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 => 978364860.0,
101
- :end => 978364860.1,
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 => 978364860.1,
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 => 978364860.0,
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 == 978364850.0 }
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.0 }
358
- let(:slightly_earlier_time_in_msec) { (slightly_earlier_time.to_f * 1000).to_i }
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=#{slightly_earlier_time_in_msec}"} }
375
+ let(:env) { {'HTTP_X_REQUEST_START' => "t=#{slightly_earlier_time_in_ms}"} }
376
376
 
377
- it { should == 978364850.0 }
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=#{slightly_earlier_time_in_msec}aaaa"} }
386
+ let(:env) { {'HTTP_X_REQUEST_START' => "t=#{slightly_earlier_time_in_ms}aaaa"} }
387
387
 
388
- it { should == 978364850.0 }
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=#{slightly_earlier_time_in_msec}"} }
392
+ let(:env) { {'HTTP_X_QUEUE_START' => "t=#{slightly_earlier_time_in_ms}"} }
393
393
 
394
- it { should == 978364850.0 }
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.at(978364860.0)
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=#{((fixed_time.to_f - 40.0) * 1000).to_i}"
36
+ 'HTTP_X_REQUEST_START' => "t=#{(fixed_time - 40.0).to_i}"
37
37
  )
38
38
  end
39
39
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appsignal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1.beta.1
4
+ version: 0.8.1.beta.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Beekman