Skip to content

Commit db037c4

Browse files
committed
review
1 parent fa68074 commit db037c4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

internal-api/src/main/java/datadog/trace/api/ProcessTags.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ private static void fillJeeTags(SortedMap<String, String> tags) {
5555
fillWebsphereTags(tags);
5656
}
5757

58-
private static void insertSysPropIfPresent(
58+
private static void insertTagFromSysPropIfPresent(
5959
Map<String, String> tags, String propKey, String tagKey) {
6060
String value = maybeGetSystemProperty(propKey);
6161
if (value != null) {
@@ -71,7 +71,7 @@ private static String maybeGetSystemProperty(String propKey) {
7171
return null;
7272
}
7373

74-
private static boolean insertEnvIfPresent(
74+
private static boolean insertTagFromEnvIfPresent(
7575
Map<String, String> tags, String envKey, String tagKey) {
7676
try {
7777
String value = envGetter.apply(envKey);
@@ -128,16 +128,16 @@ private static void fillBaseTags(Map<String, String> tags) {
128128
private static boolean fillJbossTags(Map<String, String> tags) {
129129
if (insertLastPathSegmentIfPresent(
130130
tags, maybeGetSystemProperty("jboss.home.dir"), "jboss.home")) {
131-
insertSysPropIfPresent(tags, "jboss.server.name", SERVER_NAME);
131+
insertTagFromSysPropIfPresent(tags, "jboss.server.name", SERVER_NAME);
132132
tags.put("jboss.mode", hasSystemProperty("[Standalone]") ? "standalone" : "domain");
133133
return true;
134134
}
135135
return false;
136136
}
137137

138138
private static boolean fillWebsphereTags(Map<String, String> tags) {
139-
if (insertEnvIfPresent(tags, "WAS_CELL", CLUSTER_NAME)) {
140-
insertEnvIfPresent(tags, "SERVER_NAME", SERVER_NAME);
139+
if (insertTagFromEnvIfPresent(tags, "WAS_CELL", CLUSTER_NAME)) {
140+
insertTagFromEnvIfPresent(tags, "SERVER_NAME", SERVER_NAME);
141141
return true;
142142
}
143143
return false;

0 commit comments

Comments
 (0)