reevoo_app_monitor 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0d4488b68e07d2fb7d83150a4da60b0709fdd9b6
4
- data.tar.gz: 39ef1f29fdcf9302e3c8de1424521cee0a034286
3
+ metadata.gz: 39eb9336c26842deea6f7ac2d4cc99b6fb0603e3
4
+ data.tar.gz: 0963403bb8e0f372c9066581b7258d4fe1777908
5
5
  SHA512:
6
- metadata.gz: 54a3659a2b607cbdb2ff9611356c4e0f0d3a8924a4ec622e9f2552ac70db64a49116af08a94d4591910c7a5e93a24771431e1f9eadf97540152f7c6ff9cc7a4f
7
- data.tar.gz: e5c3931d595f0f0299c6809a6697215f2cf8e70d300cc367ad1cab61a1f80d7b8054e6f626c566a6fb4e6e4a93c000991c296af94350993edfda5c81ab316497
6
+ metadata.gz: 35ce7491b291b101b7660459744290b40ca70893d1d9b59f873c13944f661b8a11e7454461210e11ccc3d92d5ac504c4481ba309c2525e087028a5ea2f80f276
7
+ data.tar.gz: 491b231c766f14909f9d18b623903408de09bd7947164f7ee6dd0c97efc2998bc959999ac4e345eefe8c7d43123b7091b9ac438eb8a9b669bd2b8f248bb9de3f
data/README.md CHANGED
@@ -24,12 +24,16 @@ module TestApp
24
24
  def self.app_monitor
25
25
  @app_monitor ||= ReevooAppMonitor.new(
26
26
  app_name: "foo_app",
27
- root_dir: Rack::Directory.new("").root
27
+ root_dir: Rack::Directory.new("").root,
28
28
  device: STDOUT,
29
29
  raven_conf: {
30
- dsn: "https://00c73aa8f93f4hbwjehb4r20af10afb@app.getsentry.com/502146"
30
+ dsn: "https://your_get_setnry_key@app.getsentry.com/application_id"
31
+ },
32
+ statsd_conf: {
33
+ host: ENV.fetch('STATSD_HOST'),
34
+ port: ENV.fetch('STATSD_PORT'),
31
35
  }
32
- ) if production?
36
+ )
33
37
  end
34
38
 
35
39
  def self.logger
@@ -37,7 +41,7 @@ module TestApp
37
41
  end
38
42
 
39
43
  def self.stats
40
- production? ? app_monitor.stats : ReevooAppMonitor.nil_service
44
+ production? ? app_monitor.stats : app_monitor.nil_service
41
45
  end
42
46
  end
43
47
  ```
@@ -51,7 +55,7 @@ ReevooAppMonitor.new(
51
55
  device: STDOUT, # default is file log in log/logstasher.log
52
56
  integrations: [:logstasher, :statsd, :raven], # you can turn off individual integrations
53
57
  raven_conf: {
54
- dsn: "https://00c73aa8f93f4hbwjehb4r20af10afb@app.getsentry.com/502146"
58
+ dsn: "https://your_get_setnry_key@app.getsentry.com/application_id"
55
59
  },
56
60
  statsd_conf: { # in most cases you should be fine with default localhost:8125
57
61
  host: "my-host",
@@ -1,5 +1,6 @@
1
1
  require "reevoo_app_monitor/version"
2
2
  require "reevoo_app_monitor/logger"
3
+ require "reevoo_app_monitor/nil_service"
3
4
  require "logstasher"
4
5
  require "statsd"
5
6
  require "raven/base"
@@ -1,3 +1,3 @@
1
1
  class ReevooAppMonitor
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reevoo_app_monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Malkov