opentelemetry-instrumentation-pg 0.19.1 → 0.21.0

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
  SHA256:
3
- metadata.gz: 713150c48f2e5b9bbee47cc4f44dd65065468c5e30167edbcb7eae1c03b0d72d
4
- data.tar.gz: 6e398fc92bf8c4bf5f7d082ed7fce5ce205e9b709d454b03485db9548ab9d09e
3
+ metadata.gz: c17d678538a40a8e89380dfd35e69c42ca123214469f2b9f1d0acfff40b56053
4
+ data.tar.gz: 2cb6540eee8ce5308f2403a22f84e11262f4db768face759a1459960795822e0
5
5
  SHA512:
6
- metadata.gz: 722eac0ec7fed3069e1d2bdc898fb5f76d0ee50b11a4ac5107ebc75460763dfd10464cef85ee80dcf40b43f9fc5b254d218a3105ce43bc78fe5c373acca5edb8
7
- data.tar.gz: bad89f1ece440cf3955b5a5e3378b0e25a592a5633d59e5d690d0a1f91c214ae2a582dce0b92c1faacf7cf0e7292614c60222160e92788e132c09196784a5811
6
+ metadata.gz: 2aff8b3172336c6835fe619fc008ec9eaa3ec1a8d80adec949b199fc8dd21364a6ffd97d4410f3bc4dfa009820c519b9ce0e5ba69ffe5a267bc4bfa203046017
7
+ data.tar.gz: 5dcef18383237d99a30f6769cf9f49b34794eb7acca720fbb5fc56b8164b22506c3d1891e09b584554b5a5414ca2788e0568d7b8c05f6cafee76a985a4c7c08e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Release History: opentelemetry-instrumentation-pg
2
2
 
3
+ ### v0.21.0 / 2022-06-09
4
+
5
+ * Upgrading Base dependency version
6
+ * FIXED: Broken test file requirements
7
+
8
+ ### v0.20.0 / 2022-05-02
9
+
10
+ * ADDED: Validate Using Enums
11
+ * FIXED: Update pg instrumentation to handle non primitive argument
12
+ * FIXED: RubyGems Fallback
13
+
14
+ ### v0.19.2 / 2021-12-02
15
+
16
+ * (No significant changes)
17
+
3
18
  ### v0.19.1 / 2021-09-29
4
19
 
5
20
  * (No significant changes)
@@ -37,16 +37,20 @@ module OpenTelemetry
37
37
  end
38
38
 
39
39
  compatible do
40
- Gem.loaded_specs['pg'].version > Gem::Version.new(MINIMUM_VERSION)
40
+ gem_version > Gem::Version.new(MINIMUM_VERSION)
41
41
  end
42
42
 
43
43
  option :peer_service, default: nil, validate: :string
44
44
  option :enable_sql_obfuscation, default: false, validate: :boolean
45
45
  option :enable_statement_attribute, default: true, validate: :boolean
46
- option :db_statement, default: :include, validate: ->(opt) { %I[omit include obfuscate].include?(opt) }
46
+ option :db_statement, default: :include, validate: %I[omit include obfuscate]
47
47
 
48
48
  private
49
49
 
50
+ def gem_version
51
+ Gem::Version.new(::PG::VERSION)
52
+ end
53
+
50
54
  def require_dependencies
51
55
  require_relative 'patches/connection'
52
56
  end
@@ -69,12 +69,12 @@ module OpenTelemetry
69
69
  def span_attrs(kind, *args) # rubocop:disable Metrics/AbcSize
70
70
  if kind == :query
71
71
  operation = extract_operation(args[0])
72
- sql = obfuscate_sql(args[0])
72
+ sql = obfuscate_sql(args[0]).to_s
73
73
  else
74
74
  statement_name = args[0]
75
75
 
76
76
  if kind == :prepare
77
- sql = obfuscate_sql(args[1])
77
+ sql = obfuscate_sql(args[1]).to_s
78
78
  lru_cache[statement_name] = sql
79
79
  operation = 'PREPARE'
80
80
  else
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module PG
10
- VERSION = '0.19.1'
10
+ VERSION = '0.21.0'
11
11
  end
12
12
  end
13
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentelemetry-instrumentation-pg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.1
4
+ version: 0.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-30 00:00:00.000000000 Z
11
+ date: 2022-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -30,14 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.18.3
33
+ version: 0.21.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.18.3
40
+ version: 0.21.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: activerecord
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: appraisal
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +100,28 @@ dependencies:
86
100
  requirements:
87
101
  - - "~>"
88
102
  - !ruby/object:Gem::Version
89
- version: '1.0'
103
+ version: '1.1'
90
104
  type: :development
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
108
  - - "~>"
95
109
  - !ruby/object:Gem::Version
96
- version: '1.0'
110
+ version: '1.1'
111
+ - !ruby/object:Gem::Dependency
112
+ name: opentelemetry-test-helpers
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
97
125
  - !ruby/object:Gem::Dependency
98
126
  name: pg
99
127
  requirement: !ruby/object:Gem::Requirement
@@ -215,10 +243,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
215
243
  licenses:
216
244
  - Apache-2.0
217
245
  metadata:
218
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-pg/v0.19.1/file.CHANGELOG.html
246
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-pg/v0.21.0/file.CHANGELOG.html
219
247
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/instrumentation/pg
220
248
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
221
- documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-pg/v0.19.1
249
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-pg/v0.21.0
222
250
  post_install_message:
223
251
  rdoc_options: []
224
252
  require_paths:
@@ -227,7 +255,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
227
255
  requirements:
228
256
  - - ">="
229
257
  - !ruby/object:Gem::Version
230
- version: 2.5.0
258
+ version: 2.6.0
231
259
  required_rubygems_version: !ruby/object:Gem::Requirement
232
260
  requirements:
233
261
  - - ">="