activerecord-opentracing 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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4b36b1d90be4d3527637f7513f9e0fae519ca50790ced50ca46a0ba82da70dc6
|
4
|
+
data.tar.gz: '09c74ce0a92769d537c8569ca39cccfc90d4d86d34807d47c79110b38d0d8ba4'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cdb542fbdfa6ca66c8b45be8184fb55f23c53f04e9da6eae824e6fe0c118ffde8b1a53bc908b53bedd7d677511c6cee55545a86ed92717c72c0379541da60db
|
7
|
+
data.tar.gz: 6427b24bdf74062e49f8e22ae8a305fbc62ff139f035bc33f9771a4252ef11cba5c4fca372c45ee2e65460875c831fccc7e53316911481ad8542118d60f7468d
|
@@ -17,18 +17,18 @@ module ActiveRecord
|
|
17
17
|
payload[:name] || DEFAULT_OPERATION_NAME,
|
18
18
|
start_time: start,
|
19
19
|
tags: {
|
20
|
-
component
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
20
|
+
'component' => COMPONENT_NAME,
|
21
|
+
'span.kind' => SPAN_KIND,
|
22
|
+
'db.instance' => db_instance,
|
23
|
+
'db.cached' => payload.fetch(:cached, false),
|
24
|
+
'db.statement' => payload.fetch(:sql).squish,
|
25
|
+
'db.type' => DB_TYPE,
|
26
|
+
'peer.address' => db_address
|
27
27
|
}
|
28
28
|
)
|
29
29
|
|
30
30
|
if (exception = payload[:exception_object])
|
31
|
-
span.set_tag(
|
31
|
+
span.set_tag('error', true)
|
32
32
|
span.log_kv(
|
33
33
|
event: 'error',
|
34
34
|
:'error.kind' => exception.class.to_s,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-opentracing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SaleMove TechMovers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -177,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
177
177
|
version: '0'
|
178
178
|
requirements: []
|
179
179
|
rubyforge_project:
|
180
|
-
rubygems_version: 2.6
|
180
|
+
rubygems_version: 2.7.6
|
181
181
|
signing_key:
|
182
182
|
specification_version: 4
|
183
183
|
summary: ActiveRecord OpenTracing intrumenter
|