opentelemetry-helpers-sql-obfuscation 0.4.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 +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +1 -1
- data/lib/opentelemetry/helpers/sql_obfuscation/version.rb +1 -1
- data/lib/opentelemetry/helpers/sql_obfuscation.rb +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a72f3fc9e038b07ab4b107949bc0dbe0fc427b335a8014872f77a23f3fc07aa
|
4
|
+
data.tar.gz: ce94524d998ed39f0e3e0d068a3af45e9be3cc2e2a80f79d3b47d3504c21993f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d82a71d7d753b7e5d6efacb6fa4b17e9c9d80acf1309abab0be9078e64dce7b86b748cbe7534079e5956e34a772bec917493fde8f36571c236723b8702636ff4
|
7
|
+
data.tar.gz: cedbf5db344c4dc5aaca0d8e0151a1b3d38e544d50e8e61375ebbe39af58ebc870e8ee135dbb03e424a25dad0651efa9249951d6ca8282d9829852a6b0e0584f
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -8,7 +8,7 @@ All future development, bug fixes, and feature releases will occur in the new ge
|
|
8
8
|
|
9
9
|
## OpenTelemetry Instrumentation Helpers: SQL Obfuscation
|
10
10
|
|
11
|
-
This Ruby gem contains logic to obfuscate SQL. It's intended for use by
|
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.
|
12
12
|
|
13
13
|
The logic is largely drawn from the [New Relic Ruby agent's SQL Obfuscation Helpers module][new-relic-obfuscation-helpers].
|
14
14
|
|
@@ -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
|
100
|
-
# the first matched pair from the SQL statement will be returned, with an appended truncation message. If
|
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
|
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.
|
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-10-
|
11
|
+
date: 2025-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opentelemetry-common
|
@@ -44,10 +44,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
|
|
44
44
|
licenses:
|
45
45
|
- Apache-2.0
|
46
46
|
metadata:
|
47
|
-
changelog_uri: https://rubydoc.info/gems/opentelemetry-helpers-sql-obfuscation/0.
|
47
|
+
changelog_uri: https://rubydoc.info/gems/opentelemetry-helpers-sql-obfuscation/0.5.0/file/CHANGELOG.md
|
48
48
|
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/helpers/sql-obfuscation
|
49
49
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
|
50
|
-
documentation_uri: https://rubydoc.info/gems/opentelemetry-helpers-sql-obfuscation/0.
|
50
|
+
documentation_uri: https://rubydoc.info/gems/opentelemetry-helpers-sql-obfuscation/0.5.0
|
51
51
|
post_install_message: ''
|
52
52
|
rdoc_options: []
|
53
53
|
require_paths:
|
@@ -56,14 +56,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
56
56
|
requirements:
|
57
57
|
- - ">="
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version: '3.
|
59
|
+
version: '3.2'
|
60
60
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
61
61
|
requirements:
|
62
62
|
- - ">="
|
63
63
|
- !ruby/object:Gem::Version
|
64
64
|
version: '0'
|
65
65
|
requirements: []
|
66
|
-
rubygems_version: 3.
|
66
|
+
rubygems_version: 3.4.19
|
67
67
|
signing_key:
|
68
68
|
specification_version: 4
|
69
69
|
summary: This gem is deprecated and no longer maintained. It has been replaced by
|