opentelemetry-instrumentation-pg 0.19.1 → 0.21.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: c17d678538a40a8e89380dfd35e69c42ca123214469f2b9f1d0acfff40b56053
|
4
|
+
data.tar.gz: 2cb6540eee8ce5308f2403a22f84e11262f4db768face759a1459960795822e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2aff8b3172336c6835fe619fc008ec9eaa3ec1a8d80adec949b199fc8dd21364a6ffd97d4410f3bc4dfa009820c519b9ce0e5ba69ffe5a267bc4bfa203046017
|
7
|
+
data.tar.gz: 5dcef18383237d99a30f6769cf9f49b34794eb7acca720fbb5fc56b8164b22506c3d1891e09b584554b5a5414ca2788e0568d7b8c05f6cafee76a985a4c7c08e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,20 @@
|
|
1
1
|
# Release History: opentelemetry-instrumentation-pg
|
2
2
|
|
3
|
+
### v0.21.0 / 2022-06-09
|
4
|
+
|
5
|
+
* Upgrading Base dependency version
|
6
|
+
* FIXED: Broken test file requirements
|
7
|
+
|
8
|
+
### v0.20.0 / 2022-05-02
|
9
|
+
|
10
|
+
* ADDED: Validate Using Enums
|
11
|
+
* FIXED: Update pg instrumentation to handle non primitive argument
|
12
|
+
* FIXED: RubyGems Fallback
|
13
|
+
|
14
|
+
### v0.19.2 / 2021-12-02
|
15
|
+
|
16
|
+
* (No significant changes)
|
17
|
+
|
3
18
|
### v0.19.1 / 2021-09-29
|
4
19
|
|
5
20
|
* (No significant changes)
|
@@ -37,16 +37,20 @@ module OpenTelemetry
|
|
37
37
|
end
|
38
38
|
|
39
39
|
compatible do
|
40
|
-
|
40
|
+
gem_version > Gem::Version.new(MINIMUM_VERSION)
|
41
41
|
end
|
42
42
|
|
43
43
|
option :peer_service, default: nil, validate: :string
|
44
44
|
option :enable_sql_obfuscation, default: false, validate: :boolean
|
45
45
|
option :enable_statement_attribute, default: true, validate: :boolean
|
46
|
-
option :db_statement, default: :include, validate:
|
46
|
+
option :db_statement, default: :include, validate: %I[omit include obfuscate]
|
47
47
|
|
48
48
|
private
|
49
49
|
|
50
|
+
def gem_version
|
51
|
+
Gem::Version.new(::PG::VERSION)
|
52
|
+
end
|
53
|
+
|
50
54
|
def require_dependencies
|
51
55
|
require_relative 'patches/connection'
|
52
56
|
end
|
@@ -69,12 +69,12 @@ module OpenTelemetry
|
|
69
69
|
def span_attrs(kind, *args) # rubocop:disable Metrics/AbcSize
|
70
70
|
if kind == :query
|
71
71
|
operation = extract_operation(args[0])
|
72
|
-
sql = obfuscate_sql(args[0])
|
72
|
+
sql = obfuscate_sql(args[0]).to_s
|
73
73
|
else
|
74
74
|
statement_name = args[0]
|
75
75
|
|
76
76
|
if kind == :prepare
|
77
|
-
sql = obfuscate_sql(args[1])
|
77
|
+
sql = obfuscate_sql(args[1]).to_s
|
78
78
|
lru_cache[statement_name] = sql
|
79
79
|
operation = 'PREPARE'
|
80
80
|
else
|
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.21.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: 2022-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opentelemetry-api
|
@@ -30,14 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.21.0
|
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.
|
40
|
+
version: 0.21.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: activerecord
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: appraisal
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,14 +100,28 @@ dependencies:
|
|
86
100
|
requirements:
|
87
101
|
- - "~>"
|
88
102
|
- !ruby/object:Gem::Version
|
89
|
-
version: '1.
|
103
|
+
version: '1.1'
|
90
104
|
type: :development
|
91
105
|
prerelease: false
|
92
106
|
version_requirements: !ruby/object:Gem::Requirement
|
93
107
|
requirements:
|
94
108
|
- - "~>"
|
95
109
|
- !ruby/object:Gem::Version
|
96
|
-
version: '1.
|
110
|
+
version: '1.1'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: opentelemetry-test-helpers
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
97
125
|
- !ruby/object:Gem::Dependency
|
98
126
|
name: pg
|
99
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -215,10 +243,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
|
|
215
243
|
licenses:
|
216
244
|
- Apache-2.0
|
217
245
|
metadata:
|
218
|
-
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-pg/v0.
|
246
|
+
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-pg/v0.21.0/file.CHANGELOG.html
|
219
247
|
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/instrumentation/pg
|
220
248
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
|
221
|
-
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-pg/v0.
|
249
|
+
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-pg/v0.21.0
|
222
250
|
post_install_message:
|
223
251
|
rdoc_options: []
|
224
252
|
require_paths:
|
@@ -227,7 +255,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
227
255
|
requirements:
|
228
256
|
- - ">="
|
229
257
|
- !ruby/object:Gem::Version
|
230
|
-
version: 2.
|
258
|
+
version: 2.6.0
|
231
259
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
232
260
|
requirements:
|
233
261
|
- - ">="
|