-
Notifications
You must be signed in to change notification settings - Fork 0
/
agent.log
48 lines (47 loc) · 3.25 KB
/
agent.log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
public static String getFederatedWildcardMetricsPrefix(TransactionFlowItemIdentifier callerEntityId,
TransactionFlowItemIdentifier calleeEntityId, boolean forTier) {
// Upstream side
if (calleeEntityId.getEntityType() == EntityType.FEDERATED_ACCOUNT) {
return BusinessTransactionEntity.BT_METRIC_CATEGORY_PREFIX +
KAppServerConstants.MYSQL_WILDCHARD_CHAR +
PerformanceCounter.METRIC_PATH_SEPARATOR_CHAR + COMPONENT_CATEGORY_NAME +
PerformanceCounter.CATEGORY_INSTANCE_SEPARATOR_CHAR + callerEntityId +
PerformanceCounter.METRIC_PATH_SEPARATOR_CHAR + EXIT_CALL_CATEGORY_NAME +
PerformanceCounter.CATEGORY_INSTANCE_SEPARATOR_CHAR +
KAppServerConstants.MYSQL_WILDCHARD_CHAR +
PerformanceCounter.METRIC_PATH_SEPARATOR_CHAR + EXIT_CALL_TO_CATEGORY_NAME +
PerformanceCounter.CATEGORY_INSTANCE_SEPARATOR_CHAR + calleeEntityId +
PerformanceCounter.METRIC_PATH_SEPARATOR;
}
// Downstream
if(forTier) {
return BusinessTransactionEntity.BT_METRIC_CATEGORY_PREFIX +
KAppServerConstants.MYSQL_WILDCHARD_CHAR +
PerformanceCounter.METRIC_PATH_SEPARATOR_CHAR + COMPONENT_CATEGORY_NAME +
PerformanceCounter.CATEGORY_INSTANCE_SEPARATOR_CHAR + calleeEntityId +
PerformanceCounter.METRIC_PATH_SEPARATOR_CHAR + EXIT_CALL_CATEGORY_NAME +
PerformanceCounter.CATEGORY_INSTANCE_SEPARATOR_CHAR +
KAppServerConstants.MYSQL_WILDCHARD_CHAR +
PerformanceCounter.METRIC_PATH_SEPARATOR_CHAR + EXIT_CALL_FROM_CATEGORY_NAME +
PerformanceCounter.CATEGORY_INSTANCE_SEPARATOR_CHAR + callerEntityId +
PerformanceCounter.METRIC_PATH_SEPARATOR;
} else {
return BusinessTransactionEntity.BT_METRIC_CATEGORY_PREFIX +
KAppServerConstants.MYSQL_WILDCHARD_CHAR +
PerformanceCounter.METRIC_PATH_SEPARATOR_CHAR + COMPONENT_CATEGORY_NAME +
PerformanceCounter.CATEGORY_INSTANCE_SEPARATOR_CHAR + calleeEntityId +
PerformanceCounter.METRIC_PATH_SEPARATOR_CHAR + EXIT_CALL_CATEGORY_NAME +
PerformanceCounter.CATEGORY_INSTANCE_SEPARATOR_CHAR +
KAppServerConstants.MYSQL_WILDCHARD_CHAR +
PerformanceCounter.METRIC_PATH_SEPARATOR_CHAR + EXIT_CALL_FROM_CATEGORY_NAME +
PerformanceCounter.CATEGORY_INSTANCE_SEPARATOR_CHAR +
TransactionFlowItemIdentifier.FEDERATED_APPLICATION_PREFIX +
PerformanceCounter.CATEGORY_INSTANCE_SEPARATOR_CHAR + callerEntityId +
PerformanceCounter.METRIC_PATH_SEPARATOR_CHAR + EXIT_CALL_FROM_CATEGORY_NAME +
PerformanceCounter.CATEGORY_INSTANCE_SEPARATOR_CHAR +
TransactionFlowItemIdentifier.FEDERATED_COMPONENT_PREFIX +
PerformanceCounter.CATEGORY_INSTANCE_SEPARATOR_CHAR +
KAppServerConstants.MYSQL_WILDCHARD_CHAR+
PerformanceCounter.METRIC_PATH_SEPARATOR;
}
}