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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/opentelemetry/instrumentation/pg/patches/connection.rb +12 -4
- data/lib/opentelemetry/instrumentation/pg/version.rb +1 -1
- data/lib/opentelemetry/instrumentation/pg.rb +2 -2
- data/lib/opentelemetry/instrumentation.rb +1 -1
- data/lib/opentelemetry-instrumentation-pg.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 335e95a3d13bd0673bd0680eee281c190171758c49bf2479cfbec678ed273116
|
4
|
+
data.tar.gz: b3f6e32334acb7c3b59d1ec3efc1e29b3acd4ea36b1e65026058eb6896e0c943
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
42
|
+
if block
|
43
|
+
block.call(super(*args))
|
44
|
+
else
|
45
|
+
super(*args)
|
46
|
+
end
|
39
47
|
end
|
40
48
|
end
|
41
49
|
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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:
|