rails-instrumentation 0.1.2 → 0.1.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c73509d8b89bdd42bf0514a8467f39c58fae4c3
|
4
|
+
data.tar.gz: f905b7bae9a16822b2dc0bff33575a2cc3c5dcb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9dd51626f13ed43254b0007dcedd040ee198f324e0ab97ead7d8fa4212f88535498a5d734c4ce1f69e49fb3e8d21a115b012a352a3f633042f6000c52e854639
|
7
|
+
data.tar.gz: b6f7746cf46ccf9690652e65e60c6d8ea3f6d8a4c52764ad28369edb5ea5565ef365f1f11f7752aeb3501fd289e4fa9352a64be53ace4a42b8021d1050d4418c
|
@@ -18,8 +18,10 @@ module Rails
|
|
18
18
|
|
19
19
|
class << self
|
20
20
|
def sql(event)
|
21
|
+
raw = event.payload[:sql]
|
22
|
+
statement = raw.respond_to?(:to_str) ? raw : raw.to_s
|
21
23
|
tags = span_tags(
|
22
|
-
'db.statement' =>
|
24
|
+
'db.statement' => statement[0, 1024],
|
23
25
|
'name' => event.payload[:name],
|
24
26
|
'connection_id' => event.payload[:connection_id],
|
25
27
|
'binds' => event.payload[:binds],
|
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
|
23
23
|
spec.add_dependency 'opentracing', '~> 0.3'
|
24
24
|
spec.add_development_dependency 'appraisal', '~> 2.2'
|
25
|
-
spec.add_development_dependency 'bundler', '
|
25
|
+
spec.add_development_dependency 'bundler', '>= 1.17'
|
26
26
|
spec.add_development_dependency 'opentracing_test_tracer', '~> 0.1'
|
27
27
|
spec.add_development_dependency 'rails', '~> 5.2.2'
|
28
28
|
spec.add_development_dependency 'rake', '~> 10.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-instrumentation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ashwin Chandrasekar
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opentracing
|
@@ -42,14 +42,14 @@ dependencies:
|
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '1.17'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.17'
|
55
55
|
- !ruby/object:Gem::Dependency
|