logjam_agent 0.9.1 → 0.9.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
- ZDhjMTU4YjU0MGMxMzVkN2JjNzhiOTU0ZjhhYjRkZTljY2ZkZTM5Mg==
4
+ ZDYzMWNjYjFmNzcxZTcxZTE4NGM2MzFlZDMyMDFjMzBmNjk1MGI4NQ==
5
5
  data.tar.gz: !binary |-
6
- MWE0YzJiZWE3YjE3YjI4MzZiOTY5OGYyODExZWFkOWI0NWM0ZDBjNw==
6
+ ZmU5ZTUwYTFjODkxYzgxZDZhMDkyNzY3YTNlYjZjNGEyZDlhNmRiMA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MDc1ZmQyZTdlZjRkNjFmMjhlMzQ2NWQ0MGJjM2E3YWVhMGEzYjZiMTEzOWI0
10
- NzQ5YjExMWRhMTQxOWY5MmM4ODllN2EwOWIxMjQyNjAwODk5MmJhMWJiOWRh
11
- M2RiZGRmMTEyMmE0M2U3ZWY0Zjk5ODg2ZjlmYzRlOWEwOTg5NjA=
9
+ ZWY1OGE4NGU2MzMyZjM2YWM4NmFmOWZjZjA3OTQwMjZiOGMzY2FmNzM3MjVl
10
+ MzJiYWRkMmFjMTJlNjZiMWZkYmJmYTc3MzBhYzNjNzNmNDBiNGQ5NjU2YWQw
11
+ NTRiNDU5OTk4ZjY1ZjhmY2ZkZmYxMDVjYTMxMTc3MjE0NTgzOGI=
12
12
  data.tar.gz: !binary |-
13
- ZTRjMGUzMjFjN2M5ODVmNTczYzJjMmQ3Y2UyNzA4NjY3YjhjMTI5ODA4ZjMz
14
- ODJkNzIwNjAzMjRlZGQ4YjE4ODZhODQ1ZGQwYmM0OTQ5YjcyZWViZjdjYWJk
15
- YjVlNWRkMWRmOTZhZWYwYjhiYjEzMjhlNDlkNTQ4ODY5ZDg1NGI=
13
+ ZDM2NWQwYjIxMTRkNTJkM2E0MGFiNjNmOTFkMmJhMmQ3ZTI0NWQ4NmY4M2Ex
14
+ Zjk0OGM5YzBjZWEyM2YzYTE4YTZkY2IyMWMxYjAyZTQ2YmRjNjhjZWQzNThh
15
+ NmYxN2ZjMWI0MTY3ODRmOTc3MWJmZTU5NjU5OGQwZDkwYWZhNzk=
data/README.md CHANGED
@@ -11,50 +11,54 @@ Currently two alternate mechanisms are available for data transport: AMQP or Zer
11
11
 
12
12
  For AMQP, add
13
13
 
14
- gem "logjam_agent"
15
- gem "bunny"
16
-
14
+ ```ruby
15
+ gem "logjam_agent"
16
+ gem "bunny"
17
+ ```
17
18
  For ZeroMQ, add
18
19
 
19
- gem "logjam_agent"
20
- gem "ffi-rzmq"
20
+ ```ruby
21
+ gem "logjam_agent"
22
+ gem "ffi-rzmq"
23
+ ```
21
24
 
22
25
  to your Gemfile.
23
26
 
24
- Add an initializer
25
- config/initializers/logjam_agent.rb
26
- to your app and configure class LogjamAgent.
27
+ Add an initializer `config/initializers/logjam_agent.rb` to your app
28
+ and configure class `LogjamAgent`.
27
29
 
28
- ````ruby
29
- module LogjamAgent
30
- # Configure the application name (required). Must not contain dots of hyphens.
31
- self.application_name = "myapp"
30
+ ```ruby
31
+ module LogjamAgent
32
+ # Configure the application name (required). Must not contain dots or hyphens.
33
+ self.application_name = "myapp"
32
34
 
33
- # Configure the environment name (optional). Defaults to Rails.env.
34
- # self.environment_name = Rails.env
35
+ # Configure the environment name (optional). Defaults to Rails.env.
36
+ # self.environment_name = Rails.env
35
37
 
36
- # Configure request data forwarder for ZeroMQ.
37
- add_forwarder(:zmq, :host => "logjam.instance.at.your.org", :port => 9605)
38
+ # Configure request data forwarder for ZeroMQ.
39
+ add_forwarder(:zmq, :host => "logjam.instance.at.your.org", :port => 9605)
38
40
 
39
- # Configure request data forwarder for ZeroMQ.
40
- # add_forwarder(:amqp, :host => "message.broker.at.your.org"))
41
+ # Configure request data forwarder for ZeroMQ.
42
+ # add_forwarder(:amqp, :host => "message.broker.at.your.org"))
41
43
 
42
- # Configure ip obfuscation. Defaults to no obfuscation.
43
- self.obfuscate_ips = true
44
+ # Configure ip obfuscation. Defaults to no obfuscation.
45
+ self.obfuscate_ips = true
44
46
 
45
- # Configure cookie obfuscation. Defaults to [/_session\z/].
46
- # self.obfuscated_cookies = [/_session\z/]
47
- end
48
- ````
47
+ # Configure cookie obfuscation. Defaults to [/_session\z/].
48
+ # self.obfuscated_cookies = [/_session\z/]
49
+ end
50
+ ```
49
51
 
50
52
  ## Troubleshooting
51
53
 
52
54
  If the agent experiences problems when sending data, it will log information to a file named
53
- `logjam_agent_error_log` which you can find under `Rails.root/log`.
55
+ `logjam_agent_error.log` which you can find under `Rails.root/log`.
54
56
 
55
57
  This behavior is customizable via a module level call back method:
56
58
 
57
- LogjamAgent.error_handler = lambda {|exception| ... }
59
+ ```ruby
60
+ LogjamAgent.error_handler = lambda {|exception| ... }
61
+ ```
58
62
 
59
63
  # License
60
64
 
@@ -134,7 +134,7 @@ module LogjamAgent
134
134
  end
135
135
  end
136
136
 
137
- if cookie = headers[COOKIE]
137
+ if (cookie = headers[COOKIE]) && LogjamAgent.obfuscated_cookies.present?
138
138
  headers[COOKIE] = cookie.gsub(PAIR_RE) do |_|
139
139
  LogjamAgent.cookie_obfuscator.filter([[$1, $2]]).first.join("=")
140
140
  end
@@ -1,3 +1,3 @@
1
1
  module LogjamAgent
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logjam_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Kaes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-29 00:00:00.000000000 Z
11
+ date: 2013-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement