traces 0.12.0 → 0.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +1 -2
- data/lib/traces/backend.rb +16 -10
- data/lib/traces/provider.rb +1 -1
- data/lib/traces/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e413f837413b357d84594db5b48e6be8d5033db0896c042a0806ec1f6b6e493
|
4
|
+
data.tar.gz: fa2aed0ec28362aaf84983d13da4ae1e55738728b7f86045cf919b93599c23bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85f20fe132bf1a07bb0d9633ce2793776ab1e7fe56cc3320b0db3b400b9f6723faf9a4a6c7b781e0dc4d5b210af8bcd24cfa4846ef02ce285edb93b2ed25bf94
|
7
|
+
data.tar.gz: 360152f3404776023b846b42dbced2ed16e533add3072d57e21c6c49cb590f3b2fcffb66daf313c09984760b9f64e87e495b888c166cb43a9968a7e55076548c
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
/����X8}I4���6�����/��JU��VMxV�r}E��{���h�Xa�V<|D>�&��r�U����X��m�(��6�h��>7���-ie��;�^}A�$��厧[����*W����Z�Ɂ-04�}۬����N�랭�e�7(�<�a4UZ��r��-�.w�$�~�)�����m�!�Bt:���|�+M�����J n�p�B ��pd4�ؿ.�v��jq��1Eq�̝$ҵ��m��#�-#WYTE9��"��5�K���Lͥ�3f�@ܶݻU}���
|
1
|
+
Ix˲z^����m�d���*Tح�GR,�O� �*�����.�ر��N[�2.3-��}Rp���OґO�T��!���
|
data/lib/traces/backend.rb
CHANGED
@@ -6,18 +6,24 @@
|
|
6
6
|
require 'console/event/failure'
|
7
7
|
|
8
8
|
module Traces
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
9
|
+
module Backend
|
10
|
+
# Require a specific trace backend.
|
11
|
+
def self.require_backend(env = ENV)
|
12
|
+
if backend = env['TRACES_BACKEND']
|
13
|
+
begin
|
14
|
+
require(backend)
|
15
|
+
rescue LoadError => error
|
16
|
+
::Console::Event::Failure.for(error).emit(self, "Unable to load traces backend!", backend: backend, severity: :warn)
|
17
|
+
|
18
|
+
return false
|
19
|
+
end
|
20
|
+
|
21
|
+
Traces.extend(Backend::Interface)
|
22
|
+
|
23
|
+
return true
|
16
24
|
end
|
17
|
-
|
18
|
-
Traces.extend(Backend::Interface)
|
19
25
|
end
|
20
26
|
end
|
21
27
|
end
|
22
28
|
|
23
|
-
Traces.require_backend
|
29
|
+
Traces::Backend.require_backend
|
data/lib/traces/provider.rb
CHANGED
data/lib/traces/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|