Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,16 @@ public static void initRpIntegration(Path agentPath) {
if (RpAttachType.INTEGRATED_AUTO.equals(RpAttachType.getRpAttachType())) {
appSvcRpIntegratedAuto = true;
}
} else if (!Strings.isNullOrEmpty(
System.getenv("APPLICATIONINSIGHTS_SPRINGCLOUD_SERVICE_ID"))) {
// Spring Cloud needs to be checked before AKS since it runs on AKS
PropertyHelper.setRpIntegrationChar('s');
setRpAttachType(agentPath, "springcloud.codeless");
} else if (!Strings.isNullOrEmpty(System.getenv("AKS_ARM_NAMESPACE_ID"))) {
// AKS_ARM_NAMESPACE_ID is an env var available in AKS only and it's also used as the AKS
// attach rate numerator
PropertyHelper.setRpIntegrationChar('k');
setRpAttachType(agentPath, "aks.codeless");
} else if (!Strings.isNullOrEmpty(
System.getenv("APPLICATIONINSIGHTS_SPRINGCLOUD_SERVICE_ID"))) {
PropertyHelper.setRpIntegrationChar('s');
setRpAttachType(agentPath, "springcloud.codeless");
} else {
RpAttachType.setRpAttachType(RpAttachType.STANDALONE_AUTO); // default
}
Expand Down
Loading