Amit Jain created OAK-12369:
-------------------------------

             Summary: Allow QueryRecorder to optionally log unmasked query 
parameter values
                 Key: OAK-12369
                 URL: https://issues.apache.org/jira/browse/OAK-12369
             Project: Jackrabbit Oak
          Issue Type: Improvement
          Components: query
            Reporter: Amit Jain


[QueryRecorder|https://github.com/apache/jackrabbit-oak/blob/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/stats/QueryRecorder.java]
 masks all literal values from a query before logging it to queryrecorder.log — 
numbers become 1, quoted string literals become 'x'/"x", and XPath paths are 
truncated. 

 Add an option to disable this masking, behind a feature toggle or a system 
prop, disabled by default. When enabled, QueryRecorder should log queries with 
their real parameter values instead of masking them. The existing count-based 
dedup/logging sould be preserved.

  Optionally, support restricting this unmasked logging to only queries 
matching a configurable set of patterns again coming from a system property.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to