vx-instrumentation 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vx/instrumentation.rb +5 -0
- data/lib/vx/instrumentation/stderr.rb +13 -0
- data/lib/vx/instrumentation/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb50fba2c5ce5b6781180d226e50c9492cd9dc29
|
4
|
+
data.tar.gz: bbb9c4616bff1b15b656c14b7196a852107c74c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64f695cac110a4e115f9bcf2f35befe17a9f56248e776b1d93dd7c094e3df71dc3c1565dca4bacceca18a0bae9bbfd7384598dbbf5b1a948a48fe50d13ade9ae
|
7
|
+
data.tar.gz: 386871fe6f9d668edf0e2075f761424fa3bea67fada6c199b8f8393bdfb642a45a7c17dbdca936d7c96f2bd186b40a126c1fab1dc8ee7d50ad5440f70fb95596
|
data/lib/vx/instrumentation.rb
CHANGED
@@ -3,11 +3,13 @@ require 'thread'
|
|
3
3
|
require File.expand_path("../instrumentation/version", __FILE__)
|
4
4
|
require File.expand_path("../instrumentation/logger", __FILE__)
|
5
5
|
require File.expand_path("../instrumentation/airbrake", __FILE__)
|
6
|
+
require File.expand_path("../instrumentation/stderr", __FILE__)
|
6
7
|
|
7
8
|
module Vx
|
8
9
|
module Instrumentation
|
9
10
|
|
10
11
|
extend Airbrake
|
12
|
+
extend Stderr
|
11
13
|
|
12
14
|
DATE_FORMAT = '%Y-%m-%dT%H:%M:%S.%N%z'
|
13
15
|
THREAD_KEY = 'vx_instrumentation_keys'
|
@@ -50,6 +52,9 @@ module Vx
|
|
50
52
|
message: ex.message.to_s,
|
51
53
|
backtrace: (ex.backtrace || []).map(&:to_s).join("\n"),
|
52
54
|
}
|
55
|
+
|
56
|
+
notify_stderr(ex)
|
57
|
+
|
53
58
|
Vx::Instrumentation::Logger.logger.error(payload)
|
54
59
|
notify_airbrake(ex, env)
|
55
60
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vx-instrumentation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Galinsky
|
@@ -83,6 +83,7 @@ files:
|
|
83
83
|
- lib/vx/instrumentation.rb
|
84
84
|
- lib/vx/instrumentation/airbrake.rb
|
85
85
|
- lib/vx/instrumentation/logger.rb
|
86
|
+
- lib/vx/instrumentation/stderr.rb
|
86
87
|
- lib/vx/instrumentation/version.rb
|
87
88
|
- spec/lib/instrumentation_spec.rb
|
88
89
|
- spec/lib/logger_spec.rb
|