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: 8551104747da24e8bfa6d6dbc2358c0191862fed
4
- data.tar.gz: f41da46c02ae8c48875b643606051d441bf0047c
3
+ metadata.gz: 3c73509d8b89bdd42bf0514a8467f39c58fae4c3
4
+ data.tar.gz: f905b7bae9a16822b2dc0bff33575a2cc3c5dcb5
5
5
  SHA512:
6
- metadata.gz: 448bc729d36f9612721c77c57d53da429520f62d3005d44b70c28d5f5d78a19caf33bf2551f2558395f6e773371beef4d4bca7b4d3c5616d14f1daa8613b8f40
7
- data.tar.gz: 17b16dae5dcf85e2e0ca6bea7eba7103365eb8157544ab795f325b3f9f9d28ebcbf3992da6f2ce4767c73eedd788c9b42fe552e7a0b2b6001ec4f34f6c3a5f54
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' => event.payload[:sql],
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],
@@ -1,5 +1,5 @@
1
1
  module Rails
2
2
  module Instrumentation
3
- VERSION = '0.1.2'.freeze
3
+ VERSION = '0.1.3'.freeze
4
4
  end
5
5
  end
@@ -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', '~> 1.17'
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.2
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-08-08 00:00:00.000000000 Z
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