appsignal 0.8.13 → 0.8.14

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d56f0e2c7ba6fbe1d96a774a8815a1380c58ef4a
4
- data.tar.gz: 2fa915ae48dfab0388a99b1add175ec25922fcbf
3
+ metadata.gz: 5788be6b8d6c1a8fc8212a6bb1a9ded51848ddbf
4
+ data.tar.gz: dc08f114adc8b0f80d8fb8f50cd24ee4955f487a
5
5
  SHA512:
6
- metadata.gz: 6cb9285900da9c130e403b80bbdad656072b315ee4e04e469357a74d09e5008aedb4bda6966d3a7c44c8136a0eb8876583a788efe69970248647101ca785872a
7
- data.tar.gz: d53de5f4a411ba6a663952a0b4d5a59f958550b918088dc90f56e398df9dcf3657b807d51f806e8de37967c4db8d1b8fa367574a1914b9592cc6dea26a2f3ec8
6
+ metadata.gz: 302639852d5022985509eb93c47359ed50692fea43e45d43edb823ab8890c7d2903ea6926702833ece9ce7b98642b1359fe37d016f3f1e959a7c8e49f01d51ba
7
+ data.tar.gz: 61859592272958a21d17e6c3969715d453295d210e5c689dab61daeec52a939ad4b7a35948e512514d0dada1e67ba3747739dd4d0d2f5feb2108e4817679fa0e
@@ -1,3 +1,7 @@
1
+ # 0.8.14
2
+ * Few tweaks in logging
3
+ * Clarify Appsignal::Transaction.complete! code
4
+
1
5
  # 0.8.13
2
6
  * Random sleep time before first transmission of queue
3
7
 
data/README.md CHANGED
@@ -40,7 +40,7 @@ class MiddlewareTemplate
40
40
  end
41
41
  end
42
42
 
43
- Appsignal.postprocessing_middleware.add MiddlewareTemplate
43
+ Appsignal.post_processing_middleware.add MiddlewareTemplate
44
44
  ```
45
45
 
46
46
  #### Remove boring payloads
@@ -34,13 +34,14 @@ module Appsignal
34
34
  end
35
35
 
36
36
  def restart_thread
37
+ Appsignal.logger.debug 'Restarting agent thread'
37
38
  stop_thread
38
39
  start_thread
39
40
  end
40
41
 
41
42
  def stop_thread
42
43
  if @thread && @thread.alive?
43
- Appsignal.logger.debug 'Killing agent thread'
44
+ Appsignal.logger.debug 'Stopping agent thread'
44
45
  Thread.kill(@thread)
45
46
  end
46
47
  end
@@ -63,7 +64,6 @@ module Appsignal
63
64
 
64
65
  def enqueue(transaction)
65
66
  forked! if @pid != Process.pid
66
- Appsignal.logger.debug('Enqueueing transaction')
67
67
  aggregator.add(transaction)
68
68
  end
69
69
 
@@ -115,17 +115,18 @@
115
115
  end
116
116
 
117
117
  def complete!
118
- Appsignal.logger.debug("Completing transaction: #{@request_id}")
119
118
  Thread.current[:appsignal_transaction_id] = nil
120
- current_transaction = Appsignal.transactions.delete(@request_id)
119
+ Appsignal.transactions.delete(@request_id)
121
120
  if process_action_event || exception?
122
121
  if Appsignal::Pipe.current
122
+ Appsignal.logger.debug("Writing transaction to pipe: #{@request_id}")
123
123
  Appsignal::Pipe.current.write(self)
124
124
  else
125
- Appsignal.enqueue(current_transaction)
125
+ Appsignal.logger.debug("Enqueueing transaction: #{@request_id}")
126
+ Appsignal.enqueue(self)
126
127
  end
127
128
  else
128
- Appsignal.logger.debug("No process_action_event or exception: #{@request_id}")
129
+ Appsignal.logger.debug("Not processing transaction: #{@request_id}")
129
130
  end
130
131
  end
131
132
 
@@ -1,3 +1,3 @@
1
1
  module Appsignal
2
- VERSION = '0.8.13'
2
+ VERSION = '0.8.14'
3
3
  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.8.13
4
+ version: 0.8.14
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: 2014-05-26 00:00:00.000000000 Z
15
+ date: 2014-06-02 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: activesupport