opentelemetry-instrumentation-pg 0.25.3 → 0.26.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: b1f0cce766de33102b30042a14d65f2e9fd00e0e9bcdc82702cd5b747c146c27
|
4
|
+
data.tar.gz: b2e4ecbad38a5556a7ded3508d44bc0bd18d19078d1df9c5ad8efa29e6ab68b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b131fc9b5c97da003fecf7252f33dd7ee87e07b7e88974031b6e789f7c5afe29621b76138ce78101d32437c31f50b6c3c0e8c91906155a74d918feebd6fdb8af
|
7
|
+
data.tar.gz: d50b7becf091842b581d56aee6d3466eaa51516306f15f120033e2859e1cc5537fc19604100d6b1a7567be1f5cecd34fd0a0f177f1fc396694be013af502f1d5
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Release History: opentelemetry-instrumentation-pg
|
2
2
|
|
3
|
+
### v0.26.0 / 2023-10-16
|
4
|
+
|
5
|
+
* BREAKING CHANGE: Obfuscation for mysql2, dalli and postgresql as default option for db_statement
|
6
|
+
|
7
|
+
* ADDED: Obfuscation for mysql2, dalli and postgresql as default option for db_statement
|
8
|
+
|
3
9
|
### v0.25.3 / 2023-07-29
|
4
10
|
|
5
11
|
* 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
|
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
|
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: :
|
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
|
-
|
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
|
-
|
193
|
+
p.to_i unless p.nil? || p.empty? || p.include?(',')
|
194
194
|
end
|
195
195
|
end
|
196
196
|
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.
|
4
|
+
version: 0.26.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: 2023-
|
11
|
+
date: 2023-10-16 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.
|
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.
|
68
|
+
version: '2.5'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: bundler
|
71
71
|
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.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.
|
180
|
+
version: 1.56.1
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: simplecov
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -206,20 +206,6 @@ dependencies:
|
|
206
206
|
- - "~>"
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: '0.9'
|
209
|
-
- !ruby/object:Gem::Dependency
|
210
|
-
name: yard-doctest
|
211
|
-
requirement: !ruby/object:Gem::Requirement
|
212
|
-
requirements:
|
213
|
-
- - "~>"
|
214
|
-
- !ruby/object:Gem::Version
|
215
|
-
version: 0.1.6
|
216
|
-
type: :development
|
217
|
-
prerelease: false
|
218
|
-
version_requirements: !ruby/object:Gem::Requirement
|
219
|
-
requirements:
|
220
|
-
- - "~>"
|
221
|
-
- !ruby/object:Gem::Version
|
222
|
-
version: 0.1.6
|
223
209
|
description: PG (PostgreSQL) instrumentation for the OpenTelemetry framework
|
224
210
|
email:
|
225
211
|
- cncf-opentelemetry-contributors@lists.cncf.io
|
@@ -243,10 +229,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
|
|
243
229
|
licenses:
|
244
230
|
- Apache-2.0
|
245
231
|
metadata:
|
246
|
-
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-pg/0.
|
232
|
+
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-pg/0.26.0/file/CHANGELOG.md
|
247
233
|
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/pg
|
248
234
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
|
249
|
-
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-pg/0.
|
235
|
+
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-pg/0.26.0
|
250
236
|
post_install_message:
|
251
237
|
rdoc_options: []
|
252
238
|
require_paths:
|