opentelemetry-instrumentation-pg 0.25.1 → 0.25.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
  SHA256:
3
- metadata.gz: d828ad6a0400bd997f99de77aeb6507bfc82d6ae4b0ca9744e166030bd23edee
4
- data.tar.gz: 37e5eecb2567bfee13896d67e443a4f7f43ad02fc8864ce925f72e694fd3b924
3
+ metadata.gz: 335e95a3d13bd0673bd0680eee281c190171758c49bf2479cfbec678ed273116
4
+ data.tar.gz: b3f6e32334acb7c3b59d1ec3efc1e29b3acd4ea36b1e65026058eb6896e0c943
5
5
  SHA512:
6
- metadata.gz: 4d9cf4613d90e9afeb0baedf84dc190168384490e8fab4cd36cdc4fbbe9a4754d2494a6f3293217ac7263c6973c277ba35f1b9ef3b629abf4a6709eb06380c4a
7
- data.tar.gz: 5a2e6d37525c31c24e3868498e238d834bffd6abeeb91816816d82290dbf9d5ef5c2cfd08fe5b49f9a7245f2462b104b0171b7b6a2589e27e15b641063d29f63
6
+ metadata.gz: b45086184bd0fdbb1860f5f3848f47495bd804168d938d87a28acd9eac74a8982c4b0a322ae8cd722061f8ef1c8467e35d5919dd2935da3c59ceae86b06502a0
7
+ data.tar.gz: debd2eadab1de57d2b42e5ab11e18742f4dfe1c160d02c8787d846ef29dd7a8b9edf547a1befcdf4c1c23e471fd8404756a2e8621b432d345374db6c1a76ff6d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release History: opentelemetry-instrumentation-pg
2
2
 
3
+ ### v0.25.3 / 2023-07-29
4
+
5
+ * FIXED: Pass block explicitly in `define_method` calls for PG instrumentation query methods
6
+
7
+ ### v0.25.2 / 2023-06-05
8
+
9
+ * FIXED: Base config options
10
+
3
11
  ### v0.25.1 / 2023-06-01
4
12
 
5
13
  * FIXED: Regex non-match with obfuscation limit (issue #486)
@@ -14,10 +14,14 @@ module OpenTelemetry
14
14
  # Module to prepend to PG::Connection for instrumentation
15
15
  module Connection # rubocop:disable Metrics/ModuleLength
16
16
  PG::Constants::EXEC_ISH_METHODS.each do |method|
17
- define_method method do |*args|
17
+ define_method method do |*args, &block|
18
18
  span_name, attrs = span_attrs(:query, *args)
19
19
  tracer.in_span(span_name, attributes: attrs, kind: :client) do
20
- super(*args)
20
+ if block
21
+ block.call(super(*args))
22
+ else
23
+ super(*args)
24
+ end
21
25
  end
22
26
  end
23
27
  end
@@ -32,10 +36,14 @@ module OpenTelemetry
32
36
  end
33
37
 
34
38
  PG::Constants::EXEC_PREPARED_ISH_METHODS.each do |method|
35
- define_method method do |*args|
39
+ define_method method do |*args, &block|
36
40
  span_name, attrs = span_attrs(:execute, *args)
37
41
  tracer.in_span(span_name, attributes: attrs, kind: :client) do
38
- super(*args)
42
+ if block
43
+ block.call(super(*args))
44
+ else
45
+ super(*args)
46
+ end
39
47
  end
40
48
  end
41
49
  end
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module PG
10
- VERSION = '0.25.1'
10
+ VERSION = '0.25.3'
11
11
  end
12
12
  end
13
13
  end
@@ -44,5 +44,5 @@ module OpenTelemetry
44
44
  end
45
45
  end
46
46
 
47
- require_relative './pg/instrumentation'
48
- require_relative './pg/version'
47
+ require_relative 'pg/instrumentation'
48
+ require_relative 'pg/version'
@@ -19,4 +19,4 @@ module OpenTelemetry
19
19
  end
20
20
  end
21
21
 
22
- require_relative './instrumentation/pg'
22
+ require_relative 'instrumentation/pg'
@@ -4,4 +4,4 @@
4
4
  #
5
5
  # SPDX-License-Identifier: Apache-2.0
6
6
 
7
- require_relative './opentelemetry/instrumentation'
7
+ require_relative 'opentelemetry/instrumentation'
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.1
4
+ version: 0.25.3
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-06-01 00:00:00.000000000 Z
11
+ date: 2023-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.22.0
33
+ version: 0.22.1
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.22.0
40
+ version: 0.22.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: activerecord
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -170,14 +170,14 @@ dependencies:
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 1.50.2
173
+ version: 1.54.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.50.2
180
+ version: 1.54.1
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: simplecov
183
183
  requirement: !ruby/object:Gem::Requirement
@@ -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.1/file/CHANGELOG.md
246
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-pg/0.25.3/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.1
249
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-pg/0.25.3
250
250
  post_install_message:
251
251
  rdoc_options: []
252
252
  require_paths: