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 0751254 commit 34c9026Copy full SHA for 34c9026
control/src/main/kotlin/spp/probe/ProbeConfiguration.kt
@@ -35,6 +35,18 @@ object ProbeConfiguration {
35
rawProperties = mapper.readValue(FileInputStream(localFile), MutableMap::class.java)
36
as Map<String, Map<String, Any>>?
37
}
38
+
39
+ localFile = File(
40
+ File(
41
+ Class.forName(
42
+ "org.apache.skywalking.apm.agent.core.plugin.loader.AgentClassLoader"
43
+ ).protectionDomain.codeSource.location.file
44
+ ).parentFile, "config" + File.separatorChar + "spp-probe.yml"
45
+ )
46
+ if (localFile.exists()) {
47
+ rawProperties = mapper.readValue(FileInputStream(localFile), MutableMap::class.java)
48
+ as Map<String, Map<String, Any>>?
49
+ }
50
} else {
51
//ran through intellij?
52
localFile = File(
0 commit comments