appsignal 0.6.4 → 0.6.5

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
- NTcwZjA0MDRjYTRkNTkxOGI1MDJmNjc0YmNkYzdjNGZlYjgzODgyYw==
4
+ MmExMjg1NjdlMjdlZGQ5MWViMGUwYjI3ZDc5OTViYTgyNTcwYWExZQ==
5
5
  data.tar.gz: !binary |-
6
- MzU4ZGExMGQ3NjdhYTMxNDdjNmUyMmUyYjg2MjU2YWYzZGQ4YmEzMA==
6
+ YmYzOTA3NmQ0NDRiMDEzNjVlMmNiZTFhN2U2M2VjODhmODRmNzY3Ng==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZWIwMmI4YjU2NDEzOWExNTVlMTM2YWRlYjU4MDEwMjZiMDMyODgwYTEwNWM5
10
- MzJiYTA3YjE1YzgyZDgyZTJlZTFjZWM0YTIyMDFmMGY3NTVhMzU5OTQ4YmJj
11
- YTMxMzU4M2M5ZDBlY2E4OTk4ZTQyMjU1MDM5ZDMwMmZkMmRjZWU=
9
+ NjcwNDg1NmU2MDc1NGEwNTc5ZmM5ZjQwNDI5Njk1M2Y0NWNhOTVlY2FkMDBl
10
+ NDkwZDYwZGE1NDBhNGU3MjBmNDI2NjBiMjk3NGM0OGFjNWJiM2VkNGNmNjkx
11
+ OTE5ZGJjZjYxMTI4ZGFkYjNiN2U1ODJjYzFiYzRlYWZmOGRhNDI=
12
12
  data.tar.gz: !binary |-
13
- ZGE2NTU5ZjY1NGM5ZTFkMDgzMjJiZDJiZGJkYTA4NzhhYTU2MjVhNDNmNTIy
14
- YmUzYzFlNWMzZmZjM2JjYzQ1YjNhMGJhNDc1MzlkM2I4NmVjZjYwMmMwZjcx
15
- ZmYxZWVlNWQ4ZTM5OWVkNTRkNGQzYTM0NmQ4MjBkOGI5YjVhNDY=
13
+ OWI3NTI4NWEwZWI5MzhhODM1OTQ3NGMwZDM1YTU2NTk3ZjQyZDEyNDIyNTcw
14
+ N2I3OGYyMDM0Y2FmOGU1Y2VmMGZjZGM4MzVmOGVhNGI1NzUyZjhiYjYzYTEz
15
+ NzIzYzQwYzc3ZGFmYzNhMmNlZDAxNTk4Yzg0NGE5OGU0MTNmMDg=
@@ -1,3 +1,6 @@
1
+ # 0.6.5
2
+ * Fix bug where fast requests are tracked with wrong action
3
+
1
4
  # 0.6.4
2
5
  * More comprehensive debug logging
3
6
 
@@ -12,6 +12,7 @@ module Appsignal
12
12
  end
13
13
 
14
14
  def to_hash
15
+
15
16
  merge_process_action_event_with_log_entry! if process_action_event
16
17
  if exception?
17
18
  add_exception_to_hash!
@@ -41,8 +42,10 @@ module Appsignal
41
42
  hash[:log_entry].merge!(process_action_event.to_appsignal_hash)
42
43
  hash[:log_entry].tap do |o|
43
44
  o.merge!(o.delete(:payload))
44
- o[:action] = "#{o.delete(:controller)}##{o.delete(:action)}"
45
+ o.delete(:action)
46
+ o.delete(:controller)
45
47
  o.delete(:name)
48
+ o[:action] = action
46
49
  end
47
50
  end
48
51
 
@@ -38,8 +38,10 @@ module Appsignal
38
38
  Net::HTTP::Post.new(uri.request_uri).tap do |request|
39
39
  request['Content-Type'] = CONTENT_TYPE
40
40
  request['Content-Encoding'] = CONTENT_ENCODING
41
- request.body = Zlib::Deflate.
42
- deflate(Appsignal.json.encode(payload), Zlib::BEST_SPEED)
41
+ request.body = Zlib::Deflate.deflate(
42
+ Appsignal.json.encode(payload),
43
+ Zlib::BEST_SPEED
44
+ )
43
45
  end
44
46
  end
45
47
 
@@ -1,3 +1,3 @@
1
1
  module Appsignal
2
- VERSION = '0.6.4'
2
+ VERSION = '0.6.5'
3
3
  end
@@ -12,6 +12,7 @@ describe Appsignal::TransactionFormatter do
12
12
 
13
13
  context "with a regular request" do
14
14
  let(:transaction) { regular_transaction }
15
+ before { transaction.truncate! }
15
16
 
16
17
  its(:keys) { should =~ [:request_id, :log_entry, :failed] }
17
18
  its([:request_id]) { should == '1' }
@@ -1,5 +1,4 @@
1
1
  module TransactionHelpers
2
-
3
2
  def fixed_time
4
3
  @fixed_time ||= Time.at(978364860.0)
5
4
  end
@@ -64,5 +63,4 @@ module TransactionHelpers
64
63
  events.each { |event| o.add_event(event) }
65
64
  end
66
65
  end
67
-
68
66
  end
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.6.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Beekman
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-09-26 00:00:00.000000000 Z
15
+ date: 2013-09-27 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rails