Skip to content

Commit

Permalink
Add attach type to sdkVersion (#39883)
Browse files Browse the repository at this point in the history
  • Loading branch information
heyams authored Apr 24, 2024
1 parent dc92c6c commit 602ccd6
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,21 @@ public static String getRpIntegrationSdkNamePrefix() {
logger.warn("could not detect os: {}", System.getProperty("os.name"));
sdkNamePrefix.append("u");
}

sdkNamePrefix.append(getRpAttachTypeChar());
sdkNamePrefix.append("_");
return sdkNamePrefix.toString();
}

private static char getRpAttachTypeChar() {
if (RpAttachType.getRpAttachType() == RpAttachType.INTEGRATED_AUTO) {
return 'i';
} else if (RpAttachType.getRpAttachType() == RpAttachType.STANDALONE_AUTO) {
return 'a';
}
return 'm'; // Manual (This is the default when RP integration is not used)
}

private static class SdkPropertyValues {
private static final String SDK_VERSION_NUMBER;
private static volatile String sdkVersionString;
Expand Down

0 comments on commit 602ccd6

Please sign in to comment.