opentelemetry-helpers-sql-obfuscation 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66253cab5a508b91ad8dabe570f87e1c959e0dba5e198b37f77ec459ffd4df9a
4
- data.tar.gz: 575897a6df6ab90e9933f2433a3a1139752d2d8d9d1a098ccdd4ecd4b01a8ceb
3
+ metadata.gz: 5a72f3fc9e038b07ab4b107949bc0dbe0fc427b335a8014872f77a23f3fc07aa
4
+ data.tar.gz: ce94524d998ed39f0e3e0d068a3af45e9be3cc2e2a80f79d3b47d3504c21993f
5
5
  SHA512:
6
- metadata.gz: 2e8f30b749b2ed676b64a276ce4d6fba0270f7dbd2c7a4030c3846b260e921b2051257f6bcd16aa9d83bdea6cee500c955b3349f1ae786e228a96d1916e89f87
7
- data.tar.gz: 73f1ea1f4b31ad4d8c2ab3d2e5134e0439954c7cebfdcb4d351ac75b4b9b8e7a86afa69389efcfea73067ca918dd76775906924140b74da6d1f4697e28471f40
6
+ metadata.gz: d82a71d7d753b7e5d6efacb6fa4b17e9c9d80acf1309abab0be9078e64dce7b86b748cbe7534079e5956e34a772bec917493fde8f36571c236723b8702636ff4
7
+ data.tar.gz: cedbf5db344c4dc5aaca0d8e0151a1b3d38e544d50e8e61375ebbe39af58ebc870e8ee135dbb03e424a25dad0651efa9249951d6ca8282d9829852a6b0e0584f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Release History: opentelemetry-helpers-sql-obfuscation
2
2
 
3
+ ### v0.5.0 / 2025-10-22
4
+
5
+ * BREAKING CHANGE: Min Ruby Version 3.2
6
+
7
+ * ADDED: Min Ruby Version 3.2
8
+
9
+ ### v0.4.0 / 2025-10-08
10
+
11
+ ## Deprecation Notice
12
+
13
+ * **DEPRECATED:** This gem, `opentelemetry-helpers-sql-obfuscation`, has been replaced by `opentelemetry-helpers-sql-processor`. This is the final release and serves as a transitional package.
14
+ * **ACTION REQUIRED:** No action is needed unless you use this gem directly. If you use this gem directly, update your `Gemfile` to use `gem 'opentelemetry-helpers-sql-processor'` instead.
15
+ * **SUPPORT ENDING:** `opentelemetry-helpers-sql-obfuscation` will no longer receive updates.
16
+
3
17
  ### v0.3.0 / 2025-01-16
4
18
 
5
19
  * BREAKING CHANGE: Set minimum supported version to Ruby 3.1
data/README.md CHANGED
@@ -1,6 +1,14 @@
1
- # OpenTelemetry Instrumentation Helpers: SQL Obfuscation
1
+ # Deprecation Notice
2
2
 
3
- This Ruby gem contains logic to obfuscate SQL. It's intended for use by by gem authors instrumenting SQL adapter libraries, such as mysql2, pg, and trilogy.
3
+ **This gem (`opentelemetry-helpers-sql-obfuscation`) is deprecated and no longer maintained.**
4
+
5
+ It has been replaced by **`opentelemetry-helpers-sql-processor`**.
6
+
7
+ All future development, bug fixes, and feature releases will occur in the new gem.
8
+
9
+ ## OpenTelemetry Instrumentation Helpers: SQL Obfuscation
10
+
11
+ This Ruby gem contains logic to obfuscate SQL. It's intended for use by gem authors instrumenting SQL adapter libraries, such as mysql2, pg, and trilogy.
4
12
 
5
13
  The logic is largely drawn from the [New Relic Ruby agent's SQL Obfuscation Helpers module][new-relic-obfuscation-helpers].
6
14
 
@@ -18,7 +26,7 @@ Add the gem to your instrumentation's Gemfile:
18
26
  ```ruby
19
27
  # Gemfile
20
28
 
21
- group :test, :development do
29
+ group :test do
22
30
  gem 'opentelemetry-helpers-sql-obfuscation', path: '../../helpers/sql-obfuscation'
23
31
  end
24
32
  ```
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Helpers
9
9
  module SqlObfuscation
10
- VERSION = '0.3.0'
10
+ VERSION = '0.5.0'
11
11
  end
12
12
  end
13
13
  end
@@ -96,8 +96,8 @@ module OpenTelemetry
96
96
  # @param sql [String] The SQL to obfuscate.
97
97
  # @param obfuscation_limit [optional Integer] the length at which the SQL string will not be obfuscated
98
98
  # @param adapter [optional Symbol] the type of database adapter calling the method. `:default`, `:mysql` and `:postgres` are supported.
99
- # @return [String] The SQL query string where the values are replaced with "?". When the sql statement exceeds the obufscation limit
100
- # the first matched pair from the SQL statement will be returned, with an appended truncation message. If trunaction is unsuccessful,
99
+ # @return [String] The SQL query string where the values are replaced with "?". When the sql statement exceeds the obfuscation limit
100
+ # the first matched pair from the SQL statement will be returned, with an appended truncation message. If truncation is unsuccessful,
101
101
  # a string describing the error will be returned.
102
102
  #
103
103
  # @api public
@@ -5,3 +5,7 @@
5
5
  # SPDX-License-Identifier: Apache-2.0
6
6
 
7
7
  require_relative 'opentelemetry/helpers'
8
+
9
+ OpenTelemetry.logger.warn <<~WARNING
10
+ [DEPRECATION] The 'opentelemetry-helpers-sql-obfuscation' gem has been renamed to 'opentelemetry-helpers-sql-processor'. No action is needed unless you use this gem directly.
11
+ WARNING
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentelemetry-helpers-sql-obfuscation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.5.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: 2025-01-16 00:00:00.000000000 Z
11
+ date: 2025-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-common
@@ -24,119 +24,8 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.21'
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '2.4'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '2.4'
41
- - !ruby/object:Gem::Dependency
42
- name: minitest
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '5.0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '5.0'
55
- - !ruby/object:Gem::Dependency
56
- name: opentelemetry-test-helpers
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '0.3'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '0.3'
69
- - !ruby/object:Gem::Dependency
70
- name: rake
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '13.0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '13.0'
83
- - !ruby/object:Gem::Dependency
84
- name: rubocop
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: 1.69.1
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: 1.69.1
97
- - !ruby/object:Gem::Dependency
98
- name: rubocop-performance
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: 1.23.0
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: 1.23.0
111
- - !ruby/object:Gem::Dependency
112
- name: yard
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: '0.9'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: '0.9'
125
- - !ruby/object:Gem::Dependency
126
- name: yard-doctest
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: 0.1.6
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: 0.1.6
139
- description: SQL Obfuscation Instrumentation Helpers for the OpenTelemetry framework
27
+ description: This gem is deprecated and no longer maintained. It has been replaced
28
+ by opentelemetry-helpers-sql-processor.
140
29
  email:
141
30
  - cncf-opentelemetry-contributors@lists.cncf.io
142
31
  executables: []
@@ -155,10 +44,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
155
44
  licenses:
156
45
  - Apache-2.0
157
46
  metadata:
158
- changelog_uri: https://rubydoc.info/gems/opentelemetry-helpers-sql-obfuscation/0.3.0/file/CHANGELOG.md
47
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-helpers-sql-obfuscation/0.5.0/file/CHANGELOG.md
159
48
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/helpers/sql-obfuscation
160
49
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
161
- documentation_uri: https://rubydoc.info/gems/opentelemetry-helpers-sql-obfuscation/0.3.0
50
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-helpers-sql-obfuscation/0.5.0
162
51
  post_install_message: ''
163
52
  rdoc_options: []
164
53
  require_paths:
@@ -167,15 +56,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
167
56
  requirements:
168
57
  - - ">="
169
58
  - !ruby/object:Gem::Version
170
- version: '3.1'
59
+ version: '3.2'
171
60
  required_rubygems_version: !ruby/object:Gem::Requirement
172
61
  requirements:
173
62
  - - ">="
174
63
  - !ruby/object:Gem::Version
175
64
  version: '0'
176
65
  requirements: []
177
- rubygems_version: 3.3.27
66
+ rubygems_version: 3.4.19
178
67
  signing_key:
179
68
  specification_version: 4
180
- summary: SQL Obfuscation Instrumentation Helpers for the OpenTelemetry framework
69
+ summary: This gem is deprecated and no longer maintained. It has been replaced by
70
+ opentelemetry-helpers-sql-processor.
181
71
  test_files: []