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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4932e3113d2bb9a5e8df80ee5496f0dcca34de17b8f5a1aac5233953cd4fd292
|
4
|
+
data.tar.gz: 56471b24b26a886ab01937ed3f790705ae2130c8bab98952131de6868daad83c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66215a5c1bf88db8fdfe6cf65ba6dd3bec73eede9afe5923c0e031ff4067e0c627d5a4ef3de8897fa1fa44b7ee6bad1dc97558169342db8d21001c2893e4757f
|
7
|
+
data.tar.gz: 1d0eda4aa160896c6c1ff33cdc64102e5b5c8df186286b3a731e2cb23b12c9d45b454d0e643f78b7d8766e0ad2da7470b192c0f789247ee1675d81f96dcc00c6
|
data/CHANGELOG.md
CHANGED
@@ -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 >
|
88
|
-
|
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, '?')
|
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
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:
|