opentelemetry-instrumentation-trilogy 0.53.0 → 0.54.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: e1714d43b908e2ef4f6af27fd1d92376e509ceed407df30ca7380028bba61b45
4
- data.tar.gz: 1ee3f0f262b413e6b6a149cd2f99f01e2fdfd5c2f39b7a4897779b3366b1b3f4
3
+ metadata.gz: 4932e3113d2bb9a5e8df80ee5496f0dcca34de17b8f5a1aac5233953cd4fd292
4
+ data.tar.gz: 56471b24b26a886ab01937ed3f790705ae2130c8bab98952131de6868daad83c
5
5
  SHA512:
6
- metadata.gz: 4730f45bf6c73dbd32f370229ab46d452a12f2ac8459e79bf15b83f8d99aeee4bae9243723e60522f2821c68f5a1d76363ba736923abd42832706534417d32f7
7
- data.tar.gz: d0d8f471da5f50d9f4139c6fe31973d255a2f399add2d55e84ebe514ad3f688144491e3b58711e1a3c880142511c92c5648d83bd7ab95028b0c1accb2c767704
6
+ metadata.gz: 66215a5c1bf88db8fdfe6cf65ba6dd3bec73eede9afe5923c0e031ff4067e0c627d5a4ef3de8897fa1fa44b7ee6bad1dc97558169342db8d21001c2893e4757f
7
+ data.tar.gz: 1d0eda4aa160896c6c1ff33cdc64102e5b5c8df186286b3a731e2cb23b12c9d45b454d0e643f78b7d8766e0ad2da7470b192c0f789247ee1675d81f96dcc00c6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-instrumentation-trilogy
2
2
 
3
+ ### v0.54.0 / 2023-05-25
4
+
5
+ * ADDED: Add Obfuscation Limit Option to Trilogy
6
+
3
7
  ### v0.53.0 / 2023-04-17
4
8
 
5
9
  * BREAKING CHANGE: Drop support for EoL Ruby 2.7
@@ -25,6 +25,7 @@ module OpenTelemetry
25
25
  option :peer_service, default: nil, validate: :string
26
26
  option :db_statement, default: :obfuscate, validate: %I[omit include obfuscate]
27
27
  option :span_name, default: :statement_type, validate: %I[statement_type db_name db_operation_and_name]
28
+ option :obfuscation_limit, default: 2000, validate: :integer
28
29
 
29
30
  private
30
31
 
@@ -84,8 +84,9 @@ module OpenTelemetry
84
84
  end
85
85
 
86
86
  def obfuscate_sql(sql)
87
- if sql.size > 2000
88
- 'SQL query too large to remove sensitive data ...'
87
+ if sql.size > config[:obfuscation_limit]
88
+ truncated_sql = sql[..sql.index(FULL_SQL_REGEXP) - 1]
89
+ truncated_sql + "...\nSQL truncated (> #{config[:obfuscation_limit]} characters)"
89
90
  else
90
91
  obfuscated = OpenTelemetry::Common::Utilities.utf8_encode(sql, binary: true)
91
92
  obfuscated = obfuscated.gsub(FULL_SQL_REGEXP, '?')
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Trilogy
10
- VERSION = '0.53.0'
10
+ VERSION = '0.54.0'
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-trilogy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.53.0
4
+ version: 0.54.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-04-17 00:00:00.000000000 Z
11
+ date: 2023-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -184,14 +184,14 @@ dependencies:
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: 1.48.1
187
+ version: 1.50.2
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.48.1
194
+ version: 1.50.2
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: simplecov
197
197
  requirement: !ruby/object:Gem::Requirement
@@ -275,10 +275,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
275
275
  licenses:
276
276
  - Apache-2.0
277
277
  metadata:
278
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-trilogy/0.53.0/file/CHANGELOG.md
278
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-trilogy/0.54.0/file/CHANGELOG.md
279
279
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/trilogy
280
280
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
281
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-trilogy/0.53.0
281
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-trilogy/0.54.0
282
282
  post_install_message:
283
283
  rdoc_options: []
284
284
  require_paths: