Skip to content

Commit

Permalink
Add instrumentation on more call sites
Browse files Browse the repository at this point in the history
  • Loading branch information
akang31 committed Jan 17, 2024
1 parent 45feec7 commit 6e4de99
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,9 @@ public Object getPropertyUninstrumented(String key) {
private Object getProperty(String key, boolean instrument)
{
if (overrideProperties.containsKey(key)) {
if (instrument) {
recordUsage(key);
}
return overrideProperties.getProperty(key);
}
Configuration firstMatchingConfiguration = null;
Expand Down Expand Up @@ -922,12 +925,13 @@ public Configuration getSource(String key)
* @param config the configuration to query
* @param key the key of the property
*/
private static void appendListProperty(List<Object> dest, Configuration config,
private void appendListProperty(List<Object> dest, Configuration config,
String key)
{
Object value = config.getProperty(key);
if (value != null)
{
recordUsage(key);
if (value instanceof Collection)
{
Collection<?> col = (Collection<?>) value;
Expand Down

0 comments on commit 6e4de99

Please sign in to comment.