Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
SkyWalking
提交
7a415470
S
SkyWalking
项目概览
apache
/
SkyWalking
上一次同步 1 年多
通知
302
Star
21345
Fork
6091
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SkyWalking
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7a415470
编写于
1月 02, 2018
作者:
P
peng-yongsheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename the method in InstanceCacheService class from get to getApplicationId.
上级
c15bfc71
变更
18
显示空白变更内容
内联
并排
Showing
18 changed file
with
39 addition
and
22 deletion
+39
-22
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/AlarmAssertWorker.java
...tor/analysis/alarm/provider/worker/AlarmAssertWorker.java
+0
-1
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/ApplicationReferenceMetricAggregationWorker.java
...lication/ApplicationReferenceMetricAggregationWorker.java
+2
-2
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/service/ServiceReferenceMetricSpanListener.java
...er/worker/service/ServiceReferenceMetricSpanListener.java
+15
-1
apm-collector/apm-collector-analysis/analysis-register/register-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/register/provider/service/InstanceIDService.java
...analysis/register/provider/service/InstanceIDService.java
+1
-1
apm-collector/apm-collector-analysis/analysis-segment-parser/segment-parser-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/segment/parser/provider/parser/standardization/ReferenceIdExchanger.java
...provider/parser/standardization/ReferenceIdExchanger.java
+4
-4
apm-collector/apm-collector-cache/collector-cache-define/src/main/java/org/apache/skywalking/apm/collector/cache/CacheModule.java
...rg/apache/skywalking/apm/collector/cache/CacheModule.java
+0
-1
apm-collector/apm-collector-cache/collector-cache-define/src/main/java/org/apache/skywalking/apm/collector/cache/service/InstanceCacheService.java
...ing/apm/collector/cache/service/InstanceCacheService.java
+1
-1
apm-collector/apm-collector-cache/collector-cache-guava-provider/src/main/java/org/apache/skywalking/apm/collector/cache/guava/service/InstanceCacheGuavaService.java
...lector/cache/guava/service/InstanceCacheGuavaService.java
+1
-1
apm-collector/apm-collector-core/src/main/java/org/apache/skywalking/apm/collector/core/util/NumberFormatUtils.java
...skywalking/apm/collector/core/util/NumberFormatUtils.java
+0
-1
apm-collector/apm-collector-core/src/test/java/org/apache/skywalking/apm/collector/core/util/NumberFormatUtilsTest.java
...alking/apm/collector/core/util/NumberFormatUtilsTest.java
+6
-0
apm-collector/apm-collector-ui/collector-ui-jetty-provider/src/main/java/org/apache/skywalking/apm/collector/ui/jetty/handler/application/ApplicationsGetHandler.java
.../ui/jetty/handler/application/ApplicationsGetHandler.java
+1
-1
apm-collector/apm-collector-ui/collector-ui-jetty-provider/src/main/java/org/apache/skywalking/apm/collector/ui/jetty/handler/instancehealth/InstanceHealthGetHandler.java
...etty/handler/instancehealth/InstanceHealthGetHandler.java
+1
-1
apm-collector/apm-collector-ui/collector-ui-jetty-provider/src/main/java/org/apache/skywalking/apm/collector/ui/jetty/handler/instancemetric/InstanceMetricGetOneTimeBucketHandler.java
...instancemetric/InstanceMetricGetOneTimeBucketHandler.java
+1
-1
apm-collector/apm-collector-ui/collector-ui-jetty-provider/src/main/java/org/apache/skywalking/apm/collector/ui/jetty/handler/instancemetric/InstanceMetricGetRangeTimeBucketHandler.java
...stancemetric/InstanceMetricGetRangeTimeBucketHandler.java
+1
-1
apm-collector/apm-collector-ui/collector-ui-jetty-provider/src/main/java/org/apache/skywalking/apm/collector/ui/jetty/handler/instancemetric/InstanceOsInfoGetHandler.java
...etty/handler/instancemetric/InstanceOsInfoGetHandler.java
+1
-1
apm-collector/apm-collector-ui/collector-ui-jetty-provider/src/main/java/org/apache/skywalking/apm/collector/ui/jetty/handler/servicetree/EntryServiceGetHandler.java
.../ui/jetty/handler/servicetree/EntryServiceGetHandler.java
+1
-1
apm-collector/apm-collector-ui/collector-ui-jetty-provider/src/main/java/org/apache/skywalking/apm/collector/ui/jetty/handler/servicetree/ServiceTreeGetByIdHandler.java
.../jetty/handler/servicetree/ServiceTreeGetByIdHandler.java
+1
-1
apm-collector/apm-collector-ui/collector-ui-jetty-provider/src/main/java/org/apache/skywalking/apm/collector/ui/service/TraceStackService.java
...kywalking/apm/collector/ui/service/TraceStackService.java
+2
-2
未找到文件。
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/AlarmAssertWorker.java
浏览文件 @
7a415470
...
...
@@ -92,7 +92,6 @@ public abstract class AlarmAssertWorker<INPUT extends Data & Metric, OUTPUT exte
Long
transactionSuccessDurationSum
=
inputMetric
.
getTransactionDurationSum
()
-
inputMetric
.
getTransactionErrorDurationSum
();
Long
transactionSuccessCalls
=
inputMetric
.
getTransactionCalls
()
-
inputMetric
.
getTransactionErrorCalls
();
Double
averageResponseTime
=
Double
.
valueOf
(
transactionSuccessDurationSum
)
/
Double
.
valueOf
(
transactionSuccessCalls
);
averageResponseTime
=
NumberFormatUtils
.
rateNumberFormat
(
averageResponseTime
);
if
(
inputMetric
.
getSourceValue
().
equals
(
MetricSource
.
Callee
.
getValue
()))
{
...
...
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/ApplicationReferenceMetricAggregationWorker.java
浏览文件 @
7a415470
...
...
@@ -50,8 +50,8 @@ public class ApplicationReferenceMetricAggregationWorker extends AggregationWork
}
@Override
protected
ApplicationReferenceMetric
transform
(
InstanceReferenceMetric
instanceReferenceMetric
)
{
Integer
frontApplicationId
=
instanceCacheService
.
get
(
instanceReferenceMetric
.
getFrontInstanceId
());
Integer
behindApplicationId
=
instanceCacheService
.
get
(
instanceReferenceMetric
.
getBehindInstanceId
());
Integer
frontApplicationId
=
instanceCacheService
.
get
ApplicationId
(
instanceReferenceMetric
.
getFrontInstanceId
());
Integer
behindApplicationId
=
instanceCacheService
.
get
ApplicationId
(
instanceReferenceMetric
.
getBehindInstanceId
());
String
id
=
instanceReferenceMetric
.
getTimeBucket
()
+
Const
.
ID_SPLIT
+
frontApplicationId
+
Const
.
ID_SPLIT
+
behindApplicationId
;
...
...
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/service/ServiceReferenceMetricSpanListener.java
浏览文件 @
7a415470
...
...
@@ -29,6 +29,8 @@ import org.apache.skywalking.apm.collector.analysis.segment.parser.define.listen
import
org.apache.skywalking.apm.collector.analysis.segment.parser.define.listener.FirstSpanListener
;
import
org.apache.skywalking.apm.collector.analysis.segment.parser.define.listener.SpanListener
;
import
org.apache.skywalking.apm.collector.analysis.segment.parser.define.listener.SpanListenerFactory
;
import
org.apache.skywalking.apm.collector.cache.CacheModule
;
import
org.apache.skywalking.apm.collector.cache.service.InstanceCacheService
;
import
org.apache.skywalking.apm.collector.core.graph.Graph
;
import
org.apache.skywalking.apm.collector.core.graph.GraphManager
;
import
org.apache.skywalking.apm.collector.core.module.ModuleManager
;
...
...
@@ -47,11 +49,16 @@ public class ServiceReferenceMetricSpanListener implements FirstSpanListener, En
private
final
Logger
logger
=
LoggerFactory
.
getLogger
(
ServiceReferenceMetricSpanListener
.
class
);
private
InstanceCacheService
instanceCacheService
;
private
List
<
ServiceReferenceMetric
>
entryReferenceMetric
=
new
LinkedList
<>();
private
List
<
ServiceReferenceMetric
>
exitReferenceMetric
=
new
LinkedList
<>();
private
SpanDecorator
entrySpanDecorator
;
private
long
timeBucket
;
public
ServiceReferenceMetricSpanListener
(
ModuleManager
moduleManager
)
{
this
.
instanceCacheService
=
moduleManager
.
find
(
CacheModule
.
NAME
).
getService
(
InstanceCacheService
.
class
);
}
@Override
public
void
parseFirst
(
SpanDecorator
spanDecorator
,
int
applicationId
,
int
instanceId
,
String
segmentId
)
{
...
...
@@ -67,8 +74,10 @@ public class ServiceReferenceMetricSpanListener implements FirstSpanListener, En
ServiceReferenceMetric
serviceReferenceMetric
=
new
ServiceReferenceMetric
(
Const
.
EMPTY_STRING
);
serviceReferenceMetric
.
setFrontServiceId
(
reference
.
getParentServiceId
());
serviceReferenceMetric
.
setFrontInstanceId
(
reference
.
getParentApplicationInstanceId
());
serviceReferenceMetric
.
setFrontApplicationId
(
instanceCacheService
.
getApplicationId
(
reference
.
getParentApplicationInstanceId
()));
serviceReferenceMetric
.
setBehindServiceId
(
spanDecorator
.
getOperationNameId
());
serviceReferenceMetric
.
setBehindInstanceId
(
instanceId
);
serviceReferenceMetric
.
setBehindApplicationId
(
applicationId
);
serviceReferenceMetric
.
setSourceValue
(
MetricSource
.
Callee
.
getValue
());
calculateDuration
(
serviceReferenceMetric
,
spanDecorator
,
true
);
entryReferenceMetric
.
add
(
serviceReferenceMetric
);
...
...
@@ -77,8 +86,10 @@ public class ServiceReferenceMetricSpanListener implements FirstSpanListener, En
ServiceReferenceMetric
serviceReferenceMetric
=
new
ServiceReferenceMetric
(
Const
.
EMPTY_STRING
);
serviceReferenceMetric
.
setFrontServiceId
(
Const
.
NONE_SERVICE_ID
);
serviceReferenceMetric
.
setFrontInstanceId
(
instanceId
);
serviceReferenceMetric
.
setFrontApplicationId
(
applicationId
);
serviceReferenceMetric
.
setBehindServiceId
(
spanDecorator
.
getOperationNameId
());
serviceReferenceMetric
.
setBehindInstanceId
(
instanceId
);
serviceReferenceMetric
.
setBehindApplicationId
(
applicationId
);
serviceReferenceMetric
.
setSourceValue
(
MetricSource
.
Callee
.
getValue
());
calculateDuration
(
serviceReferenceMetric
,
spanDecorator
,
false
);
...
...
@@ -90,7 +101,10 @@ public class ServiceReferenceMetricSpanListener implements FirstSpanListener, En
@Override
public
void
parseExit
(
SpanDecorator
spanDecorator
,
int
applicationId
,
int
instanceId
,
String
segmentId
)
{
ServiceReferenceMetric
serviceReferenceMetric
=
new
ServiceReferenceMetric
(
Const
.
EMPTY_STRING
);
serviceReferenceMetric
.
setFrontApplicationId
(
applicationId
);
serviceReferenceMetric
.
setFrontInstanceId
(
instanceId
);
// serviceReferenceMetric.setBehindApplicationId();
// serviceReferenceMetric.setBehindInstanceId();
serviceReferenceMetric
.
setBehindServiceId
(
spanDecorator
.
getOperationNameId
());
serviceReferenceMetric
.
setSourceValue
(
MetricSource
.
Caller
.
getValue
());
calculateDuration
(
serviceReferenceMetric
,
spanDecorator
,
true
);
...
...
@@ -157,7 +171,7 @@ public class ServiceReferenceMetricSpanListener implements FirstSpanListener, En
public
static
class
Factory
implements
SpanListenerFactory
{
@Override
public
SpanListener
create
(
ModuleManager
moduleManager
)
{
return
new
ServiceReferenceMetricSpanListener
();
return
new
ServiceReferenceMetricSpanListener
(
moduleManager
);
}
}
}
apm-collector/apm-collector-analysis/analysis-register/register-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/register/provider/service/InstanceIDService.java
浏览文件 @
7a415470
...
...
@@ -70,7 +70,7 @@ public class InstanceIDService implements IInstanceIDService {
}
public
int
getOrCreate
(
int
applicationId
,
String
agentUUID
,
long
registerTime
,
String
osInfo
)
{
logger
.
debug
(
"get or create instance id, application id: {}, agentUUID: {}, registerTime: {}, osInfo: {}"
,
applicationId
,
agentUUID
,
registerTime
,
osInfo
);
logger
.
debug
(
"get
ApplicationId
or create instance id, application id: {}, agentUUID: {}, registerTime: {}, osInfo: {}"
,
applicationId
,
agentUUID
,
registerTime
,
osInfo
);
int
instanceId
=
getInstanceCacheService
().
getInstanceId
(
applicationId
,
agentUUID
);
if
(
instanceId
==
0
)
{
...
...
apm-collector/apm-collector-analysis/analysis-segment-parser/segment-parser-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/segment/parser/provider/parser/standardization/ReferenceIdExchanger.java
浏览文件 @
7a415470
...
...
@@ -57,11 +57,11 @@ public class ReferenceIdExchanger implements IdExchanger<ReferenceDecorator> {
@Override
public
boolean
exchange
(
ReferenceDecorator
standardBuilder
,
int
applicationId
)
{
if
(
standardBuilder
.
getEntryServiceId
()
==
0
&&
StringUtils
.
isNotEmpty
(
standardBuilder
.
getEntryServiceName
()))
{
int
entryServiceId
=
serviceNameService
.
getOrCreate
(
instanceCacheService
.
get
(
standardBuilder
.
getEntryApplicationInstanceId
()),
standardBuilder
.
getEntryServiceName
());
int
entryServiceId
=
serviceNameService
.
getOrCreate
(
instanceCacheService
.
get
ApplicationId
(
standardBuilder
.
getEntryApplicationInstanceId
()),
standardBuilder
.
getEntryServiceName
());
if
(
entryServiceId
==
0
)
{
if
(
logger
.
isDebugEnabled
())
{
int
entryApplicationId
=
instanceCacheService
.
get
(
standardBuilder
.
getEntryApplicationInstanceId
());
int
entryApplicationId
=
instanceCacheService
.
get
ApplicationId
(
standardBuilder
.
getEntryApplicationInstanceId
());
logger
.
debug
(
"entry service name: {} from application id: {} exchange failed"
,
standardBuilder
.
getEntryServiceName
(),
entryApplicationId
);
}
return
false
;
...
...
@@ -73,11 +73,11 @@ public class ReferenceIdExchanger implements IdExchanger<ReferenceDecorator> {
}
if
(
standardBuilder
.
getParentServiceId
()
==
0
&&
StringUtils
.
isNotEmpty
(
standardBuilder
.
getParentServiceName
()))
{
int
parentServiceId
=
serviceNameService
.
getOrCreate
(
instanceCacheService
.
get
(
standardBuilder
.
getParentApplicationInstanceId
()),
standardBuilder
.
getParentServiceName
());
int
parentServiceId
=
serviceNameService
.
getOrCreate
(
instanceCacheService
.
get
ApplicationId
(
standardBuilder
.
getParentApplicationInstanceId
()),
standardBuilder
.
getParentServiceName
());
if
(
parentServiceId
==
0
)
{
if
(
logger
.
isDebugEnabled
())
{
int
parentApplicationId
=
instanceCacheService
.
get
(
standardBuilder
.
getParentApplicationInstanceId
());
int
parentApplicationId
=
instanceCacheService
.
get
ApplicationId
(
standardBuilder
.
getParentApplicationInstanceId
());
logger
.
debug
(
"parent service name: {} from application id: {} exchange failed"
,
standardBuilder
.
getParentServiceName
(),
parentApplicationId
);
}
return
false
;
...
...
apm-collector/apm-collector-cache/collector-cache-define/src/main/java/org/apache/skywalking/apm/collector/cache/CacheModule.java
浏览文件 @
7a415470
...
...
@@ -16,7 +16,6 @@
*
*/
package
org.apache.skywalking.apm.collector.cache
;
import
org.apache.skywalking.apm.collector.cache.service.ApplicationCacheService
;
...
...
apm-collector/apm-collector-cache/collector-cache-define/src/main/java/org/apache/skywalking/apm/collector/cache/service/InstanceCacheService.java
浏览文件 @
7a415470
...
...
@@ -25,7 +25,7 @@ import org.apache.skywalking.apm.collector.core.module.Service;
* @author peng-yongsheng
*/
public
interface
InstanceCacheService
extends
Service
{
int
get
(
int
applicationInstanceId
);
int
get
ApplicationId
(
int
applicationInstanceId
);
int
getInstanceId
(
int
applicationId
,
String
agentUUID
);
}
apm-collector/apm-collector-cache/collector-cache-guava-provider/src/main/java/org/apache/skywalking/apm/collector/cache/guava/service/InstanceCacheGuavaService.java
浏览文件 @
7a415470
...
...
@@ -55,7 +55,7 @@ public class InstanceCacheGuavaService implements InstanceCacheService {
return
this
.
instanceCacheDAO
;
}
public
int
get
(
int
applicationInstanceId
)
{
public
int
get
ApplicationId
(
int
applicationInstanceId
)
{
int
applicationId
=
0
;
try
{
...
...
apm-collector/apm-collector-core/src/main/java/org/apache/skywalking/apm/collector/core/util/NumberFormatUtils.java
浏览文件 @
7a415470
...
...
@@ -29,7 +29,6 @@ public class NumberFormatUtils {
public
static
Double
rateNumberFormat
(
Double
rate
)
{
NumberFormat
rateNumberFormat
=
NumberFormat
.
getNumberInstance
();
rateNumberFormat
.
setMaximumFractionDigits
(
2
);
rateNumberFormat
.
setMinimumFractionDigits
(
2
);
rateNumberFormat
.
setRoundingMode
(
RoundingMode
.
HALF_UP
);
Double
formattedRate
=
Double
.
valueOf
(
rateNumberFormat
.
format
(
rate
));
return
Double
.
valueOf
(
formattedRate
);
...
...
apm-collector/apm-collector-core/src/test/java/org/apache/skywalking/apm/collector/core/util/NumberFormatUtilsTest.java
浏览文件 @
7a415470
...
...
@@ -36,5 +36,11 @@ public class NumberFormatUtilsTest {
rate
=
NumberFormatUtils
.
rateNumberFormat
(
12.1
);
Assert
.
assertEquals
(
rate
,
Double
.
valueOf
(
12.1
));
rate
=
NumberFormatUtils
.
rateNumberFormat
(
12.00
);
Assert
.
assertEquals
(
rate
,
Double
.
valueOf
(
12.00
));
rate
=
NumberFormatUtils
.
rateNumberFormat
(
4624.00
);
Assert
.
assertEquals
(
rate
,
Double
.
valueOf
(
4624.00
));
}
}
apm-collector/apm-collector-ui/collector-ui-jetty-provider/src/main/java/org/apache/skywalking/apm/collector/ui/jetty/handler/application/ApplicationsGetHandler.java
浏览文件 @
7a415470
...
...
@@ -52,7 +52,7 @@ public class ApplicationsGetHandler extends JettyHandler {
String
startTimeStr
=
req
.
getParameter
(
"startTime"
);
String
endTimeStr
=
req
.
getParameter
(
"endTime"
);
logger
.
debug
(
"applications get start time: {}, end time: {}"
,
startTimeStr
,
endTimeStr
);
logger
.
debug
(
"applications get
ApplicationId
start time: {}, end time: {}"
,
startTimeStr
,
endTimeStr
);
long
startTime
;
try
{
...
...
apm-collector/apm-collector-ui/collector-ui-jetty-provider/src/main/java/org/apache/skywalking/apm/collector/ui/jetty/handler/instancehealth/InstanceHealthGetHandler.java
浏览文件 @
7a415470
...
...
@@ -50,7 +50,7 @@ public class InstanceHealthGetHandler extends JettyHandler {
@Override
protected
JsonElement
doGet
(
HttpServletRequest
req
)
throws
ArgumentsParseException
{
String
timeBucketStr
=
req
.
getParameter
(
"timeBucket"
);
String
[]
applicationIdsStr
=
req
.
getParameterValues
(
"applicationIds"
);
logger
.
debug
(
"instance health get timeBucket: {}, applicationIdsStr: {}"
,
timeBucketStr
,
applicationIdsStr
);
logger
.
debug
(
"instance health get
ApplicationId
timeBucket: {}, applicationIdsStr: {}"
,
timeBucketStr
,
applicationIdsStr
);
long
timeBucket
;
try
{
...
...
apm-collector/apm-collector-ui/collector-ui-jetty-provider/src/main/java/org/apache/skywalking/apm/collector/ui/jetty/handler/instancemetric/InstanceMetricGetOneTimeBucketHandler.java
浏览文件 @
7a415470
...
...
@@ -52,7 +52,7 @@ public class InstanceMetricGetOneTimeBucketHandler extends JettyHandler {
String
instanceIdStr
=
req
.
getParameter
(
"instanceId"
);
String
[]
metricTypes
=
req
.
getParameterValues
(
"metricTypes"
);
logger
.
debug
(
"instance jvm metric get timeBucket: {}, instance id: {}, metric types: {}"
,
timeBucketStr
,
instanceIdStr
,
metricTypes
);
logger
.
debug
(
"instance jvm metric get
ApplicationId
timeBucket: {}, instance id: {}, metric types: {}"
,
timeBucketStr
,
instanceIdStr
,
metricTypes
);
long
timeBucket
;
try
{
...
...
apm-collector/apm-collector-ui/collector-ui-jetty-provider/src/main/java/org/apache/skywalking/apm/collector/ui/jetty/handler/instancemetric/InstanceMetricGetRangeTimeBucketHandler.java
浏览文件 @
7a415470
...
...
@@ -53,7 +53,7 @@ public class InstanceMetricGetRangeTimeBucketHandler extends JettyHandler {
String
instanceIdStr
=
req
.
getParameter
(
"instanceId"
);
String
[]
metricTypes
=
req
.
getParameterValues
(
"metricTypes"
);
logger
.
debug
(
"instance jvm metric get start timeBucket: {}, end timeBucket:{} , instance id: {}, metric types: {}"
,
startTimeBucketStr
,
endTimeBucketStr
,
instanceIdStr
,
metricTypes
);
logger
.
debug
(
"instance jvm metric get
ApplicationId
start timeBucket: {}, end timeBucket:{} , instance id: {}, metric types: {}"
,
startTimeBucketStr
,
endTimeBucketStr
,
instanceIdStr
,
metricTypes
);
long
startTimeBucket
;
try
{
...
...
apm-collector/apm-collector-ui/collector-ui-jetty-provider/src/main/java/org/apache/skywalking/apm/collector/ui/jetty/handler/instancemetric/InstanceOsInfoGetHandler.java
浏览文件 @
7a415470
...
...
@@ -47,7 +47,7 @@ public class InstanceOsInfoGetHandler extends JettyHandler {
@Override
protected
JsonElement
doGet
(
HttpServletRequest
req
)
throws
ArgumentsParseException
{
String
instanceIdStr
=
req
.
getParameter
(
"instanceId"
);
logger
.
debug
(
"instance os info get, instance id: {}"
,
instanceIdStr
);
logger
.
debug
(
"instance os info get
ApplicationId
, instance id: {}"
,
instanceIdStr
);
int
instanceId
;
try
{
...
...
apm-collector/apm-collector-ui/collector-ui-jetty-provider/src/main/java/org/apache/skywalking/apm/collector/ui/jetty/handler/servicetree/EntryServiceGetHandler.java
浏览文件 @
7a415470
...
...
@@ -58,7 +58,7 @@ public class EntryServiceGetHandler extends JettyHandler {
String
endTimeStr
=
req
.
getParameter
(
"endTime"
);
String
fromStr
=
req
.
getParameter
(
"from"
);
String
sizeStr
=
req
.
getParameter
(
"size"
);
logger
.
debug
(
"service entry get applicationId: {}, entryServiceName: {}, startTime: {}, endTime: {}, from: {}, size: {}"
,
applicationIdStr
,
entryServiceName
,
startTimeStr
,
endTimeStr
,
fromStr
,
sizeStr
);
logger
.
debug
(
"service entry get
ApplicationId
applicationId: {}, entryServiceName: {}, startTime: {}, endTime: {}, from: {}, size: {}"
,
applicationIdStr
,
entryServiceName
,
startTimeStr
,
endTimeStr
,
fromStr
,
sizeStr
);
int
applicationId
;
try
{
...
...
apm-collector/apm-collector-ui/collector-ui-jetty-provider/src/main/java/org/apache/skywalking/apm/collector/ui/jetty/handler/servicetree/ServiceTreeGetByIdHandler.java
浏览文件 @
7a415470
...
...
@@ -53,7 +53,7 @@ public class ServiceTreeGetByIdHandler extends JettyHandler {
String
entryServiceIdStr
=
req
.
getParameter
(
"entryServiceId"
);
String
startTimeStr
=
req
.
getParameter
(
"startTime"
);
String
endTimeStr
=
req
.
getParameter
(
"endTime"
);
logger
.
debug
(
"service entry get entryServiceId: {}, startTime: {}, endTime: {}"
,
entryServiceIdStr
,
startTimeStr
,
endTimeStr
);
logger
.
debug
(
"service entry get
ApplicationId
entryServiceId: {}, startTime: {}, endTime: {}"
,
entryServiceIdStr
,
startTimeStr
,
endTimeStr
);
int
entryServiceId
;
try
{
...
...
apm-collector/apm-collector-ui/collector-ui-jetty-provider/src/main/java/org/apache/skywalking/apm/collector/ui/service/TraceStackService.java
浏览文件 @
7a415470
...
...
@@ -149,9 +149,9 @@ public class TraceStackService {
// StringBuilder segmentIdBuilder = new StringBuilder();
// for (int i = 0; i < uniqueId.getIdPartsList().size(); i++) {
// if (i == 0) {
// segmentIdBuilder.append(String.valueOf(uniqueId.getIdPartsList().get(i)));
// segmentIdBuilder.append(String.valueOf(uniqueId.getIdPartsList().get
ApplicationId
(i)));
// } else {
// segmentIdBuilder.append(".").append(String.valueOf(uniqueId.getIdPartsList().get(i)));
// segmentIdBuilder.append(".").append(String.valueOf(uniqueId.getIdPartsList().get
ApplicationId
(i)));
// }
// }
//
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录