Skip to content

Commit dc61df4

Browse files
committed
responding to PR comments
1 parent a15efd0 commit dc61df4

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

dd-java-agent/src/main/java6/datadog/trace/bootstrap/AgentPreCheck.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ private static boolean compatible() {
9090
}
9191

9292
// Reachable for testing
93+
// System.getenv usage is necessary since class is designed to be Java 6 compatible, while
94+
// Environment component is for Java 8+
95+
// System.getenv usage is necessary since class is designed to be Java 6 compatible, while
96+
// Environment component is for Java 8+
9397
@SuppressForbidden
9498
static boolean compatible(String javaVersion, String javaHome, PrintStream output) {
9599
int majorJavaVersion = parseJavaMajorVersion(javaVersion);

utils/config-utils/src/main/java/datadog/trace/api/telemetry/ConfigInversionMetricCollectorProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ private ConfigInversionMetricCollectorProvider() {}
1212

1313
public static ConfigInversionMetricCollector get() {
1414
if (INSTANCE == null) {
15-
log.error(
15+
log.debug(
1616
"ConfigInversionMetricCollector has not been registered. Defaulting to NoOp implementation.");
1717
// Return NoOp implementation for build tasks like instrumentJava that run before
1818
// implementation is registered

utils/config-utils/src/main/java/datadog/trace/config/inversion/ConfigHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public static String env(String key) {
8585
return get().getEnvironmentVariable(key);
8686
}
8787

88-
private Map<String, String> getEnvironmentVariables() {
88+
public Map<String, String> getEnvironmentVariables() {
8989
if (configs != null) {
9090
return configs;
9191
}
@@ -129,7 +129,7 @@ private Map<String, String> getEnvironmentVariables() {
129129
return configs;
130130
}
131131

132-
private String getEnvironmentVariable(String name) {
132+
public String getEnvironmentVariable(String name) {
133133
if (configs != null && configs.containsKey(name)) {
134134
return configs.get(name);
135135
}

0 commit comments

Comments
 (0)