opentelemetry-instrumentation-pg 0.22.3 → 0.23.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e23146922971bd7f68d16184b1c4b65125cc0bbae634fb92a19eef6dbbdbd2c2
|
4
|
+
data.tar.gz: f073627a94ac5e69df6c4315a2f0542c2b7d3534a392d37ebfbdbc3e8c86626d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e8cb6546f07d994770031506f960bf567d3726c8d74f374dbdd126825bc5e24340ec564a88e0802805266eda2c9216b5a4e576acaa97bc4f3518e3ab50fff1a
|
7
|
+
data.tar.gz: a5a053eaeaf5bd0b702063b72ebe2757750027744cd2c33901719641285709a1e4cfd6bc32cf256b7d59c7545031dc8b276de1af4a5772299a34c30a135c8ed5
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release History: opentelemetry-instrumentation-pg
|
2
2
|
|
3
|
+
### v0.23.0 / 2023-01-14
|
4
|
+
|
5
|
+
* BREAKING CHANGE: Removed deprecated instrumentation options
|
6
|
+
|
7
|
+
* ADDED: Removed deprecated instrumentation options
|
8
|
+
* FIXED: Reduce Hash Allocations in PG Instrumentation
|
9
|
+
* DOCS: Fix gem homepage
|
10
|
+
* DOCS: More gem documentation fixes
|
11
|
+
|
3
12
|
### v0.22.3 / 2022-12-06
|
4
13
|
|
5
14
|
* FIXED: Use attributes from the active PG connection
|
@@ -11,23 +11,7 @@ module OpenTelemetry
|
|
11
11
|
class Instrumentation < OpenTelemetry::Instrumentation::Base
|
12
12
|
MINIMUM_VERSION = Gem::Version.new('1.1.0')
|
13
13
|
|
14
|
-
install do |
|
15
|
-
if config[:enable_sql_obfuscation]
|
16
|
-
config[:db_statement] = :obfuscate
|
17
|
-
OpenTelemetry.logger.warn(
|
18
|
-
'Instrumentation pg configuration option enable_sql_obfuscation has been deprecated,' \
|
19
|
-
'use db_statement option instead'
|
20
|
-
)
|
21
|
-
end
|
22
|
-
|
23
|
-
unless config[:enable_statement_attribute]
|
24
|
-
config[:db_statement] = :omit
|
25
|
-
OpenTelemetry.logger.warn(
|
26
|
-
'Instrumentation pg configuration option enable_statement_attribute has been deprecated,' \
|
27
|
-
'use db_statement option instead'
|
28
|
-
)
|
29
|
-
end
|
30
|
-
|
14
|
+
install do |_config|
|
31
15
|
require_dependencies
|
32
16
|
patch_client
|
33
17
|
end
|
@@ -41,8 +25,6 @@ module OpenTelemetry
|
|
41
25
|
end
|
42
26
|
|
43
27
|
option :peer_service, default: nil, validate: :string
|
44
|
-
option :enable_sql_obfuscation, default: false, validate: :boolean
|
45
|
-
option :enable_statement_attribute, default: true, validate: :boolean
|
46
28
|
option :db_statement, default: :include, validate: %I[omit include obfuscate]
|
47
29
|
|
48
30
|
private
|
@@ -86,7 +86,7 @@ module OpenTelemetry
|
|
86
86
|
attrs = { 'db.operation' => validated_operation(operation), 'db.postgresql.prepared_statement_name' => statement_name }
|
87
87
|
attrs['db.statement'] = sql unless config[:db_statement] == :omit
|
88
88
|
attrs.merge!(OpenTelemetry::Instrumentation::PG.attributes)
|
89
|
-
attrs.
|
89
|
+
attrs.compact!
|
90
90
|
|
91
91
|
[span_name(operation), client_attributes.merge(attrs)]
|
92
92
|
end
|
@@ -131,7 +131,9 @@ module OpenTelemetry
|
|
131
131
|
}
|
132
132
|
attributes['peer.service'] = config[:peer_service] if config[:peer_service]
|
133
133
|
|
134
|
-
attributes.merge(transport_attrs)
|
134
|
+
attributes.merge!(transport_attrs)
|
135
|
+
attributes.compact!
|
136
|
+
attributes
|
135
137
|
end
|
136
138
|
|
137
139
|
def transport_addr
|
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.
|
4
|
+
version: 0.23.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:
|
11
|
+
date: 2023-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opentelemetry-api
|
@@ -70,16 +70,16 @@ dependencies:
|
|
70
70
|
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '2.4'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '2.4'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: minitest
|
85
85
|
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.41.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.41.1
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: simplecov
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -239,14 +239,14 @@ files:
|
|
239
239
|
- lib/opentelemetry/instrumentation/pg/lru_cache.rb
|
240
240
|
- lib/opentelemetry/instrumentation/pg/patches/connection.rb
|
241
241
|
- lib/opentelemetry/instrumentation/pg/version.rb
|
242
|
-
homepage: https://github.com/open-telemetry/opentelemetry-contrib
|
242
|
+
homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
|
243
243
|
licenses:
|
244
244
|
- Apache-2.0
|
245
245
|
metadata:
|
246
|
-
changelog_uri: https://
|
246
|
+
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-pg/0.23.0/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://
|
249
|
+
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-pg/0.23.0
|
250
250
|
post_install_message:
|
251
251
|
rdoc_options: []
|
252
252
|
require_paths:
|