Skip to content

Commit

Permalink
Add support for 'auto' value in DD_PROFILING_ENABLED
Browse files Browse the repository at this point in the history
  • Loading branch information
jbachorik committed Jul 1, 2024
1 parent cdecb42 commit 8346505
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,13 @@ private static boolean isFeatureEnabled(AgentFeature feature) {
// true unless it's explicitly set to "false"
return !("false".equalsIgnoreCase(featureEnabled) || "0".equals(featureEnabled));
} else {
if (feature == AgentFeature.PROFILING) {
// We need this hack because profiling in SSI can receive 'auto' value in
// the enablement config
if ("auto".equalsIgnoreCase(featureEnabled)) {
return true;
}
}
// false unless it's explicitly set to "true"
return Boolean.parseBoolean(featureEnabled) || "1".equals(featureEnabled);
}
Expand Down

0 comments on commit 8346505

Please sign in to comment.