File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
control/src/main/kotlin/spp/probe Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -117,13 +117,25 @@ object ProbeConfiguration {
117
117
get() {
118
118
val settings = toProperties(rawProperties).stream()
119
119
.filter { it[0 ].startsWith(" skywalking." ) }
120
- .collect(Collectors .toList())
120
+ .collect(Collectors .toList()).toMutableList()
121
+ getSkyWalkingDefaults()
122
+ .filter { default -> settings.stream().noneMatch { it[0 ] == default[0 ] } }
123
+ .forEach { settings.add(it) }
121
124
if (settings.stream().noneMatch { it[0 ] == " skywalking.agent.service_name" } ||
122
125
settings.stream().noneMatch { it[0 ] == " skywalking.collector.backend_service" }) {
123
126
throw RuntimeException (" Missing Apache SkyWalking setup configuration" )
124
127
}
125
128
return settings
126
129
}
130
+
131
+ private fun getSkyWalkingDefaults (): MutableSet <Array <String >> {
132
+ return mutableSetOf (
133
+ arrayOf(" skywalking.agent.is_cache_enhanced_class" , " true" ),
134
+ arrayOf(" skywalking.agent.class_cache_mode" , " FILE" ),
135
+ arrayOf(" skywalking.plugin.toolkit.log.transmit_formatted" , " false" )
136
+ )
137
+ }
138
+
127
139
val sppSettings: List <Array <String >>
128
140
get() = toProperties(rawProperties).stream()
129
141
.filter { it[0 ].startsWith(" spp." ) }
Original file line number Diff line number Diff line change 1
1
kotlin.code.style =official
2
2
3
3
probeGroup =spp.probe
4
- projectVersion =0.4.2
4
+ projectVersion =0.4.3
5
5
6
6
vertxVersion =4.2.4
7
7
You can’t perform that action at this time.
0 commit comments