We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c56c2b commit 996a541Copy full SHA for 996a541
agent/runtime-attach/src/main/java/com/microsoft/applicationinsights/attach/ApplicationInsights.java
@@ -55,9 +55,10 @@ public static void attach() {
55
System.setProperty(RUNTIME_ATTACHED_ENABLED_PROPERTY, "true");
56
57
try {
58
- Optional<String> jsonConfig = findJsonConfigFromClasspath();
+ // check from file system first so user can override the classpath file
59
+ Optional<String> jsonConfig = findJsonConfigFromFileSystem();
60
if (!jsonConfig.isPresent()) {
- jsonConfig = findJsonConfigFromFileSystem();
61
+ jsonConfig = findJsonConfigFromClasspath();
62
}
63
if (jsonConfig.isPresent()) {
64
System.setProperty(RUNTIME_ATTACHED_JSON_PROPERTY, jsonConfig.get());
0 commit comments