File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
common/src/main/kotlin/spp/probe Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -230,10 +230,15 @@ object ProbeConfiguration {
230
230
},
231
231
getJsonObject(" authentication" )?.let {
232
232
val clientId = it.getString(" client_id" )
233
+ .takeIf { it != null && it.isNotBlank() }
233
234
val clientSecret = it.getString(" client_secret" )
235
+ .takeIf { it != null && it.isNotBlank() }
234
236
val tenantId = it.getString(" tenant_id" )
237
+ .takeIf { it != null && it.isNotBlank() }
235
238
val environment = spp.getJsonObject(" application" )?.getString(" environment" )
239
+ .takeIf { it != null && it.isNotBlank() }
236
240
val version = spp.getJsonObject(" application" )?.getString(" version" )
241
+ .takeIf { it != null && it.isNotBlank() }
237
242
arrayOf(" skywalking.agent.authentication" , " $clientId :$clientSecret :$tenantId :$environment :$version " )
238
243
}
239
244
).filterNotNull().toMutableSet()
You can’t perform that action at this time.
0 commit comments