opentelemetry-instrumentation-trilogy 0.55.0 → 0.55.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: a562e640a2941ea333b6fefd0f6c275252e7fb5bffd9327e0ea891c5e67c3195
4
- data.tar.gz: aa7f7c24b523d7b6e4be3227bfab739d76ee17df8d8542611b6056cb0adb8e08
3
+ metadata.gz: 8cc568f9e1a5d6a330ffddee8c6888fac1c7b1c84433a003cf68673d654e6008
4
+ data.tar.gz: ccfa730942e2472d8ad4978ed229d6b1fc44a597ac74331bfe1e17be28fcd4a1
5
5
  SHA512:
6
- metadata.gz: 968b789fe4cfe9fb5f721feebc97c3681fc16cdf5d10ef4cc5db0614c797d52be05ada1e3552be26097291c8361f3ddd04316dfdd06ece9ad3d22e44f2ba1a5e
7
- data.tar.gz: afad929f2c05d074afbbf54df28389b998f7fe3632932e8729929eddb73bb25ecbe4d14bc54a676cef45bee203b34a8751b14e396f319d09f54e27cb320ff2ab
6
+ metadata.gz: e92928d645e72804e3dfc5d10069856585f0d48badf6a8dd2ecabf2c471012222b33d70bc16d247adeee6d0c98196ab53bda948e36aafd23ec898b5fd202050a
7
+ data.tar.gz: 72f70ea92bf8f58c0cf767898362724ba6e9c1d73adcdec2a2ffb0ce0f84c6540880b8a9e359e43b06797514b5789f7b0d8db9f98df107ce5db0a655acde46b0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-instrumentation-trilogy
2
2
 
3
+ ### v0.55.1 / 2023-06-01
4
+
5
+ * FIXED: Regex non-match with obfuscation limit (issue #486)
6
+
3
7
  ### v0.55.0 / 2023-05-31
4
8
 
5
9
  * BREAKING CHANGE: Add database name for trilogy traces
@@ -86,8 +86,12 @@ module OpenTelemetry
86
86
 
87
87
  def obfuscate_sql(sql)
88
88
  if sql.size > config[:obfuscation_limit]
89
- truncated_sql = sql[..sql.index(FULL_SQL_REGEXP) - 1]
90
- truncated_sql + "...\nSQL truncated (> #{config[:obfuscation_limit]} characters)"
89
+ first_match_index = sql.index(FULL_SQL_REGEXP)
90
+ truncation_message = "SQL truncated (> #{config[:obfuscation_limit]} characters)"
91
+ return truncation_message unless first_match_index
92
+
93
+ truncated_sql = sql[..first_match_index - 1]
94
+ "#{truncated_sql}...\n#{truncation_message}"
91
95
  else
92
96
  obfuscated = OpenTelemetry::Common::Utilities.utf8_encode(sql, binary: true)
93
97
  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.55.0'
10
+ VERSION = '0.55.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-trilogy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.55.0
4
+ version: 0.55.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: 2023-05-31 00:00:00.000000000 Z
11
+ date: 2023-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -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.55.0/file/CHANGELOG.md
278
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-trilogy/0.55.1/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.55.0
281
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-trilogy/0.55.1
282
282
  post_install_message:
283
283
  rdoc_options: []
284
284
  require_paths: