opentelemetry-instrumentation-pg 0.25.2 → 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: a1657a2304d23151ca16abe37e4c10ac189c84d05146f9a9d8802ba164d44598
4
- data.tar.gz: 39b4c371b11b030f09b1054c04da290b0b4f051f138c9ad0e5b43117f77c44d0
3
+ metadata.gz: 335e95a3d13bd0673bd0680eee281c190171758c49bf2479cfbec678ed273116
4
+ data.tar.gz: b3f6e32334acb7c3b59d1ec3efc1e29b3acd4ea36b1e65026058eb6896e0c943
5
5
  SHA512:
6
- metadata.gz: 8c1bcba9e93214b3537856a094846fd93aac95bca4772849e4a42dae335d2102b444db14a7148f34545a1554c1ec12776854d5d4ca5c245f8ac4190c23a1a346
7
- data.tar.gz: a09b3230505a4e9b4994e035cdc978a8f782a253bdad3c4accffa9ef8619f4f2147a7119d4763c3051dca855f0522f5a2830bb0e9646f48f20fa3b0b06ae79ca
6
+ metadata.gz: b45086184bd0fdbb1860f5f3848f47495bd804168d938d87a28acd9eac74a8982c4b0a322ae8cd722061f8ef1c8467e35d5919dd2935da3c59ceae86b06502a0
7
+ data.tar.gz: debd2eadab1de57d2b42e5ab11e18742f4dfe1c160d02c8787d846ef29dd7a8b9edf547a1befcdf4c1c23e471fd8404756a2e8621b432d345374db6c1a76ff6d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.25.2 / 2023-06-05
4
8
 
5
9
  * FIXED: Base config options
@@ -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.2'
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.2
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-05 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
@@ -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.2/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.2
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: