opentelemetry-instrumentation-pg 0.25.3 → 0.26.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
2
  SHA256:
3
- metadata.gz: 335e95a3d13bd0673bd0680eee281c190171758c49bf2479cfbec678ed273116
4
- data.tar.gz: b3f6e32334acb7c3b59d1ec3efc1e29b3acd4ea36b1e65026058eb6896e0c943
3
+ metadata.gz: 399267fa1f2c8f3206b97b7896f1631d26b4c561d9e7981b225e17ee71d9e028
4
+ data.tar.gz: ae172b55cd0b320c98baad746078ded1807400e02d16a04ecaa59018ae27fada
5
5
  SHA512:
6
- metadata.gz: b45086184bd0fdbb1860f5f3848f47495bd804168d938d87a28acd9eac74a8982c4b0a322ae8cd722061f8ef1c8467e35d5919dd2935da3c59ceae86b06502a0
7
- data.tar.gz: debd2eadab1de57d2b42e5ab11e18742f4dfe1c160d02c8787d846ef29dd7a8b9edf547a1befcdf4c1c23e471fd8404756a2e8621b432d345374db6c1a76ff6d
6
+ metadata.gz: a2c3d21103e6a462bca6f11703c9534536ee90bdea021341456a1e940b8cefd52ff7e416db0a3bbc32e198886e2c2ac8a411dc9ae65d195fa589f054ee7b6602
7
+ data.tar.gz: e40016fcb937d5807cddc5029abf6b49bee50e4244df916e2e93e554f15c7c849ac5a703bed4efc60c56843b5d66b672dc731f8c5166f5418107e7070166c6f4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Release History: opentelemetry-instrumentation-pg
2
2
 
3
+ ### v0.26.1 / 2023-11-23
4
+
5
+ * CHANGED: Applied Rubocop Performance Recommendations [#727](https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/727)
6
+
7
+ ### v0.26.0 / 2023-10-16
8
+
9
+ * BREAKING CHANGE: Obfuscation for mysql2, dalli and postgresql as default option for db_statement
10
+
11
+ * ADDED: Obfuscation for mysql2, dalli and postgresql as default option for db_statement
12
+
3
13
  ### v0.25.3 / 2023-07-29
4
14
 
5
15
  * FIXED: Pass block explicitly in `define_method` calls for PG instrumentation query methods
data/README.md CHANGED
@@ -50,9 +50,9 @@ OpenTelemetry::SDK.configure do |c|
50
50
  # will be included on all spans from this instrumentation:
51
51
  peer_service: 'postgres:readonly',
52
52
 
53
- # By default, this instrumentation includes the executed SQL as the `db.statement`
53
+ # By default, this instrumentation obfuscate/sanitize the executed SQL as the `db.statement`
54
54
  # semantic attribute. Optionally, you may disable the inclusion of this attribute entirely by
55
- # setting this option to :omit or sanitize the attribute by setting to :obfuscate
55
+ # setting this option to :omit or disbale sanitization the attribute by setting to :include
56
56
  db_statement: :include,
57
57
  }
58
58
  end
@@ -25,7 +25,7 @@ module OpenTelemetry
25
25
  end
26
26
 
27
27
  option :peer_service, default: nil, validate: :string
28
- option :db_statement, default: :include, validate: %I[omit include obfuscate]
28
+ option :db_statement, default: :obfuscate, validate: %I[omit include obfuscate]
29
29
  option :obfuscation_limit, default: 2000, validate: :integer
30
30
 
31
31
  private
@@ -162,7 +162,7 @@ module OpenTelemetry
162
162
  # string when there is only one. Some older versions of libpq allow
163
163
  # multiple without any way to discern which is presently connected.
164
164
  addr = conninfo_hash[:hostaddr]
165
- return addr unless addr&.include?(',')
165
+ addr unless addr&.include?(',')
166
166
  end
167
167
 
168
168
  def transport_attrs
@@ -190,7 +190,7 @@ module OpenTelemetry
190
190
  # As a fallback, we can use the port of the parsed connection
191
191
  # string when there is exactly one.
192
192
  p = conninfo_hash[:port]
193
- return p.to_i unless p.nil? || p.empty? || p.include?(',')
193
+ p.to_i unless p.nil? || p.empty? || p.include?(',')
194
194
  end
195
195
  end
196
196
  end
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module PG
10
- VERSION = '0.25.3'
10
+ VERSION = '0.26.1'
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.25.3
4
+ version: 0.26.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-29 00:00:00.000000000 Z
11
+ date: 2023-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 2.2.0
61
+ version: '2.5'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 2.2.0
68
+ version: '2.5'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -170,56 +170,56 @@ dependencies:
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 1.54.1
173
+ version: 1.56.1
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: 1.54.1
180
+ version: 1.56.1
181
181
  - !ruby/object:Gem::Dependency
182
- name: simplecov
182
+ name: rubocop-performance
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: 0.17.1
187
+ version: 1.19.1
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: 0.17.1
194
+ version: 1.19.1
195
195
  - !ruby/object:Gem::Dependency
196
- name: yard
196
+ name: simplecov
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
199
  - - "~>"
200
200
  - !ruby/object:Gem::Version
201
- version: '0.9'
201
+ version: 0.17.1
202
202
  type: :development
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - "~>"
207
207
  - !ruby/object:Gem::Version
208
- version: '0.9'
208
+ version: 0.17.1
209
209
  - !ruby/object:Gem::Dependency
210
- name: yard-doctest
210
+ name: yard
211
211
  requirement: !ruby/object:Gem::Requirement
212
212
  requirements:
213
213
  - - "~>"
214
214
  - !ruby/object:Gem::Version
215
- version: 0.1.6
215
+ version: '0.9'
216
216
  type: :development
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
220
  - - "~>"
221
221
  - !ruby/object:Gem::Version
222
- version: 0.1.6
222
+ version: '0.9'
223
223
  description: PG (PostgreSQL) instrumentation for the OpenTelemetry framework
224
224
  email:
225
225
  - cncf-opentelemetry-contributors@lists.cncf.io
@@ -243,10 +243,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
243
243
  licenses:
244
244
  - Apache-2.0
245
245
  metadata:
246
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-pg/0.25.3/file/CHANGELOG.md
246
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-pg/0.26.1/file/CHANGELOG.md
247
247
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/pg
248
248
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
249
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-pg/0.25.3
249
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-pg/0.26.1
250
250
  post_install_message:
251
251
  rdoc_options: []
252
252
  require_paths: