You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.
When a property within the JSON is masked, these operations are performed:
The incoming payload in the json-logger component is deserialized from InputStream into a JSON object.
A deep copy of the JSON object is created.
The masking is applied by recursively iterating over the deep copy.
Issue:
There is an implicit recursive iteration in steps 1 and 2, and an explicit iteration in step 3.
Fix:
Use a custom deserializer for converting the incoming payload of the InputStream type to a JSON object. During the tokenization/detokenization, apply the mask in place and thereby eliminating the need for steps 2 and 3 resulting in a performance gain of up to a factor of 3.
The text was updated successfully, but these errors were encountered:
Current set of operations:
When a property within the JSON is masked, these operations are performed:
InputStream
into a JSON object.Issue:
There is an implicit recursive iteration in steps 1 and 2, and an explicit iteration in step 3.
Fix:
Use a custom deserializer for converting the incoming payload of the
InputStream
type to a JSON object. During the tokenization/detokenization, apply the mask in place and thereby eliminating the need for steps 2 and 3 resulting in a performance gain of up to a factor of 3.The text was updated successfully, but these errors were encountered: