opentelemetry-instrumentation-pg 0.28.0 → 0.29.1

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: cd590dfd1d522e383d0ddfa5cebfe6aed7eff09c632bc883d757542e1bc13cbd
4
- data.tar.gz: 1e92bbd9721812c0a84dee04d65e8a309e43f0f7339dde999043314e82c9c4ba
3
+ metadata.gz: 97b67a5ec08535581e63e54f58c641046c9671f7ac5200062a6bfc855bd5bcd0
4
+ data.tar.gz: a781eff7765c6b0fe36a5f43ff0ba7b1ad2c8ddc194d27ddbbd05dab44cfa69c
5
5
  SHA512:
6
- metadata.gz: 7c35f30669b2d8061047eb99b968b7d5483ea074b31d1715e0606b201aebf51d88038ee1db72ad72e7e2ead657e4adcf5f8f4b6e340196964aecd09625e2492e
7
- data.tar.gz: 9de710fac153a36bae0f105b9ba4db66c8db5d25861679fa6849eb61006d3d53d50b05712594f8a1d182dbc5df5f3b1cde5dca87eb5ce6def46ce6dfe57bb187
6
+ metadata.gz: 625cd901f2a62593a14a43bb60cc16107c55792214766b1675417e15c0f9ddcec568d733bb96e7ee288a4563504114b3e5ba21bb155a22d29770072cb55ecd1b
7
+ data.tar.gz: 7ceecbfb83b0146e3c6eff205ab0553caf9011f3f8cd94cf81985e14f559137fac9996ddcc94c989d386a7e7ab7ce18046dfa88c1b977dccc5bf5eef5ff697da
data/CHANGELOG.md CHANGED
@@ -1,122 +1,129 @@
1
1
  # Release History: opentelemetry-instrumentation-pg
2
2
 
3
+ ### v0.29.1 / 2024-11-26
4
+
5
+ * FIXED: Get correct table name if table name is quoted
6
+
7
+ ### v0.29.0 / 2024-09-12
8
+
9
+ - BREAKING CHANGE: Return message when sql is over the obfuscation limit. Fixes a bug where sql statements with prepended comments that hit the obfuscation limit would be sent raw.
10
+
3
11
  ### v0.28.0 / 2024-08-15
4
12
 
5
- * ADDED: Collect pg db.collection_name attribute
6
- * FIXED: Update versions to be tested (includes drop support for pg 1.2)
13
+ - ADDED: Collect pg db.collection_name attribute
14
+ - FIXED: Update versions to be tested (includes drop support for pg 1.2)
7
15
 
8
16
  ### v0.27.4 / 2024-07-23
9
17
 
10
- * DOCS: Add cspell to CI
18
+ - DOCS: Add cspell to CI
11
19
 
12
20
  ### v0.27.3 / 2024-05-11
13
21
 
14
- * ADDED: Support prepend SQL comment for PG instrumentation
22
+ - ADDED: Support prepend SQL comment for PG instrumentation
15
23
 
16
24
  ### v0.27.2 / 2024-04-30
17
25
 
18
- * FIXED: Bundler conflict warnings
26
+ - FIXED: Bundler conflict warnings
19
27
 
20
28
  ### v0.27.1 / 2024-02-08
21
29
 
22
- * FIXED: Add missing requires for sql-helpers to mysql, pg, and trilogy instrumentation
30
+ - FIXED: Add missing requires for sql-helpers to mysql, pg, and trilogy instrumentation
23
31
 
24
32
  ### v0.27.0 / 2024-02-08
25
33
 
26
- * BREAKING CHANGE: Move shared sql behavior to helper gems
27
-
34
+ - BREAKING CHANGE: Move shared sql behavior to helper gems
28
35
 
29
36
  ### v0.26.1 / 2023-11-23
30
37
 
31
- * CHANGED: Applied Rubocop Performance Recommendations [#727](https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/727)
38
+ - CHANGED: Applied Rubocop Performance Recommendations [#727](https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/727)
32
39
 
33
40
  ### v0.26.0 / 2023-10-16
34
41
 
35
- * BREAKING CHANGE: Obfuscation for mysql2, dalli and postgresql as default option for db_statement
42
+ - BREAKING CHANGE: Obfuscation for mysql2, dalli and postgresql as default option for db_statement
36
43
 
37
- * ADDED: Obfuscation for mysql2, dalli and postgresql as default option for db_statement
44
+ - ADDED: Obfuscation for mysql2, dalli and postgresql as default option for db_statement
38
45
 
39
46
  ### v0.25.3 / 2023-07-29
40
47
 
41
- * FIXED: Pass block explicitly in `define_method` calls for PG instrumentation query methods
48
+ - FIXED: Pass block explicitly in `define_method` calls for PG instrumentation query methods
42
49
 
43
50
  ### v0.25.2 / 2023-06-05
44
51
 
45
- * FIXED: Base config options
52
+ - FIXED: Base config options
46
53
 
47
54
  ### v0.25.1 / 2023-06-01
48
55
 
49
- * FIXED: Regex non-match with obfuscation limit (issue #486)
56
+ - FIXED: Regex non-match with obfuscation limit (issue #486)
50
57
 
51
58
  ### v0.25.0 / 2023-05-25
52
59
 
53
- * ADDED: Add config[:obfuscation_limit] to pg and mysql2
60
+ - ADDED: Add config[:obfuscation_limit] to pg and mysql2
54
61
 
55
62
  ### v0.24.0 / 2023-04-17
56
63
 
57
- * BREAKING CHANGE: Drop support for EoL Ruby 2.7
64
+ - BREAKING CHANGE: Drop support for EoL Ruby 2.7
58
65
 
59
- * ADDED: Drop support for EoL Ruby 2.7
66
+ - ADDED: Drop support for EoL Ruby 2.7
60
67
 
61
68
  ### v0.23.0 / 2023-01-14
62
69
 
63
- * BREAKING CHANGE: Removed deprecated instrumentation options
70
+ - BREAKING CHANGE: Removed deprecated instrumentation options
64
71
 
65
- * ADDED: Removed deprecated instrumentation options
66
- * FIXED: Reduce Hash Allocations in PG Instrumentation
67
- * DOCS: Fix gem homepage
68
- * DOCS: More gem documentation fixes
72
+ - ADDED: Removed deprecated instrumentation options
73
+ - FIXED: Reduce Hash Allocations in PG Instrumentation
74
+ - DOCS: Fix gem homepage
75
+ - DOCS: More gem documentation fixes
69
76
 
70
77
  ### v0.22.3 / 2022-12-06
71
78
 
72
- * FIXED: Use attributes from the active PG connection
79
+ - FIXED: Use attributes from the active PG connection
73
80
 
74
81
  ### v0.22.2 / 2022-11-10
75
82
 
76
- * FIXED: Safeguard against host being nil
83
+ - FIXED: Safeguard against host being nil
77
84
 
78
85
  ### v0.22.1 / 2022-10-27
79
86
 
80
- * FIXED: Only take the first item in a comma-separated list for pg attrs
87
+ - FIXED: Only take the first item in a comma-separated list for pg attrs
81
88
 
82
89
  ### v0.22.0 / 2022-10-04
83
90
 
84
- * ADDED: Add `with_attributes` context propagation for PG instrumentation
91
+ - ADDED: Add `with_attributes` context propagation for PG instrumentation
85
92
 
86
93
  ### v0.21.0 / 2022-06-09
87
94
 
88
- * Upgrading Base dependency version
89
- * FIXED: Broken test file requirements
95
+ - Upgrading Base dependency version
96
+ - FIXED: Broken test file requirements
90
97
 
91
98
  ### v0.20.0 / 2022-05-02
92
99
 
93
- * ADDED: Validate Using Enums
94
- * FIXED: Update pg instrumentation to handle non primitive argument
95
- * FIXED: RubyGems Fallback
100
+ - ADDED: Validate Using Enums
101
+ - FIXED: Update pg instrumentation to handle non primitive argument
102
+ - FIXED: RubyGems Fallback
96
103
 
97
104
  ### v0.19.2 / 2021-12-02
98
105
 
99
- * (No significant changes)
106
+ - (No significant changes)
100
107
 
101
108
  ### v0.19.1 / 2021-09-29
102
109
 
103
- * (No significant changes)
110
+ - (No significant changes)
104
111
 
105
112
  ### v0.19.0 / 2021-08-12
106
113
 
107
- * ADDED: Add db_statement toggle for postgres
108
- * DOCS: Update docs to rely more on environment variable configuration
114
+ - ADDED: Add db_statement toggle for postgres
115
+ - DOCS: Update docs to rely more on environment variable configuration
109
116
 
110
117
  ### v0.18.1 / 2021-06-23
111
118
 
112
- * (No significant changes)
119
+ - (No significant changes)
113
120
 
114
121
  ### v0.18.0 / 2021-05-21
115
122
 
116
- * ADDED: Updated API dependency for 1.0.0.rc1
117
- * ADDED: Add option to postgres instrumentation to disable db.statement
123
+ - ADDED: Updated API dependency for 1.0.0.rc1
124
+ - ADDED: Add option to postgres instrumentation to disable db.statement
118
125
 
119
126
  ### v0.17.1 / 2021-04-23
120
127
 
121
- * Initial release.
122
- * ADDED: Initial postgresql instrumentation
128
+ - Initial release.
129
+ - ADDED: Initial postgresql instrumentation
@@ -15,7 +15,7 @@ module OpenTelemetry
15
15
  # Module to prepend to PG::Connection for instrumentation
16
16
  module Connection # rubocop:disable Metrics/ModuleLength
17
17
  # Capture the first word (including letters, digits, underscores, & '.', ) that follows common table commands
18
- TABLE_NAME = /\b(?:FROM|INTO|UPDATE|CREATE\s+TABLE(?:\s+IF\s+NOT\s+EXISTS)?|DROP\s+TABLE(?:\s+IF\s+EXISTS)?|ALTER\s+TABLE(?:\s+IF\s+EXISTS)?)\s+([\w\.]+)/i
18
+ TABLE_NAME = /\b(?:FROM|INTO|UPDATE|CREATE\s+TABLE(?:\s+IF\s+NOT\s+EXISTS)?|DROP\s+TABLE(?:\s+IF\s+EXISTS)?|ALTER\s+TABLE(?:\s+IF\s+EXISTS)?)\s+["]?([\w\.]+)["]?/i
19
19
 
20
20
  PG::Constants::EXEC_ISH_METHODS.each do |method|
21
21
  define_method method do |*args, &block|
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module PG
10
- VERSION = '0.28.0'
10
+ VERSION = '0.29.1'
11
11
  end
12
12
  end
13
13
  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.28.0
4
+ version: 0.29.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-15 00:00:00.000000000 Z
11
+ date: 2024-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -170,28 +170,28 @@ dependencies:
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 1.65.0
173
+ version: 1.68.0
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.65.0
180
+ version: 1.68.0
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: rubocop-performance
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: '1.20'
187
+ version: 1.23.0
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: '1.20'
194
+ version: 1.23.0
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: simplecov
197
197
  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.28.0/file/CHANGELOG.md
246
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-pg/0.29.1/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.28.0
249
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-pg/0.29.1
250
250
  post_install_message:
251
251
  rdoc_options: []
252
252
  require_paths: