Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
javalover123888
SkyWalking
提交
ddc98851
S
SkyWalking
项目概览
javalover123888
/
SkyWalking
与 Fork 源项目一致
Fork自
山不在高_有仙则灵 / SkyWalking
通知
2
Star
0
Fork
0
代码
文件
提交
分支
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,发现更多精彩内容 >>
提交
ddc98851
编写于
8月 17, 2016
作者:
A
ascrutae
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复Dubbo的viewpoint
上级
e57540b8
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
18 addition
and
12 deletion
+18
-12
skywalking-analysis/src/main/java/com/a/eye/skywalking/analysis/config/HBaseTableMetaData.java
.../a/eye/skywalking/analysis/config/HBaseTableMetaData.java
+1
-1
skywalking-collector/skywalking-sdk-plugin/dubbo-plugin/src/main/java/com/a/eye/skywalking/plugin/dubbo/MonitorFilterInterceptor.java
...eye/skywalking/plugin/dubbo/MonitorFilterInterceptor.java
+15
-9
skywalking-webui/src/main/resources/spring/springmvc-servlet.xml
...ing-webui/src/main/resources/spring/springmvc-servlet.xml
+2
-2
未找到文件。
skywalking-analysis/src/main/java/com/a/eye/skywalking/analysis/config/HBaseTableMetaData.java
浏览文件 @
ddc98851
...
...
@@ -7,7 +7,7 @@ public class HBaseTableMetaData {
* @author wusheng
*/
public
final
static
class
TABLE_CALL_CHAIN
{
public
static
final
String
TABLE_NAME
=
"
sw-call-chain
"
;
public
static
final
String
TABLE_NAME
=
"
trace-data
"
;
public
static
final
String
FAMILY_NAME
=
"call-chain"
;
}
...
...
skywalking-collector/skywalking-sdk-plugin/dubbo-plugin/src/main/java/com/a/eye/skywalking/plugin/dubbo/MonitorFilterInterceptor.java
浏览文件 @
ddc98851
...
...
@@ -33,8 +33,8 @@ public class MonitorFilterInterceptor implements InstanceMethodsAroundIntercepto
boolean
isConsumer
=
rpcContext
.
isConsumerSide
();
context
.
set
(
"isConsumer"
,
isConsumer
);
if
(
isConsumer
)
{
ContextData
contextData
=
new
RPCClientInvokeMonitor
().
beforeInvoke
(
createIdentification
(
invoker
,
invocation
));
ContextData
contextData
=
new
RPCClientInvokeMonitor
().
beforeInvoke
(
createIdentification
(
invoker
,
invocation
,
true
));
String
contextDataStr
=
contextData
.
toString
();
//追加参数
...
...
@@ -72,7 +72,7 @@ public class MonitorFilterInterceptor implements InstanceMethodsAroundIntercepto
contextData
=
new
ContextData
(
contextDataStr
);
}
new
RPCServerInvokeMonitor
().
beforeInvoke
(
contextData
,
createIdentification
(
invoker
,
invocation
));
new
RPCServerInvokeMonitor
().
beforeInvoke
(
contextData
,
createIdentification
(
invoker
,
invocation
,
false
));
}
}
...
...
@@ -85,9 +85,9 @@ public class MonitorFilterInterceptor implements InstanceMethodsAroundIntercepto
dealException
(
result
.
getException
(),
context
);
}
if
(
isConsumer
(
context
)){
if
(
isConsumer
(
context
))
{
new
RPCClientInvokeMonitor
().
afterInvoke
();
}
else
{
}
else
{
new
RPCServerInvokeMonitor
().
afterInvoke
();
}
...
...
@@ -95,25 +95,31 @@ public class MonitorFilterInterceptor implements InstanceMethodsAroundIntercepto
}
@Override
public
void
handleMethodException
(
Throwable
t
,
EnhancedClassInstanceContext
context
,
InstanceMethodInvokeContext
interceptorContext
)
{
public
void
handleMethodException
(
Throwable
t
,
EnhancedClassInstanceContext
context
,
InstanceMethodInvokeContext
interceptorContext
)
{
dealException
(
t
,
context
);
}
private
boolean
isConsumer
(
EnhancedClassInstanceContext
context
){
private
boolean
isConsumer
(
EnhancedClassInstanceContext
context
)
{
return
(
boolean
)
context
.
get
(
"isConsumer"
);
}
private
void
dealException
(
Throwable
t
,
EnhancedClassInstanceContext
context
)
{
if
(
isConsumer
(
context
))
{
new
RPCClientInvokeMonitor
().
occurException
(
t
);
new
RPCClientInvokeMonitor
().
occurException
(
t
);
}
else
{
new
RPCServerInvokeMonitor
().
occurException
(
t
);
}
}
private
static
Identification
createIdentification
(
Invoker
<?>
invoker
,
Invocation
invocation
)
{
private
static
Identification
createIdentification
(
Invoker
<?>
invoker
,
Invocation
invocation
,
boolean
isConsumer
)
{
StringBuilder
viewPoint
=
new
StringBuilder
();
if
(
isConsumer
)
{
viewPoint
.
append
(
"comsumer:"
);
}
else
{
viewPoint
.
append
(
"provider:"
);
}
viewPoint
.
append
(
invoker
.
getUrl
().
getProtocol
()
+
"://"
);
viewPoint
.
append
(
invoker
.
getUrl
().
getHost
());
viewPoint
.
append
(
":"
+
invoker
.
getUrl
().
getPort
());
...
...
skywalking-webui/src/main/resources/spring/springmvc-servlet.xml
浏览文件 @
ddc98851
...
...
@@ -12,7 +12,7 @@
<!-- 添加注解驱动 -->
<mvc:annotation-driven/>
<!-- 默认扫描的包路径 -->
<context:component-scan
base-package=
"com.a
i.cloud
.skywalking.web"
/>
<context:component-scan
base-package=
"com.a
.eye
.skywalking.web"
/>
<mvc:resources
mapping=
"/bower_components/**"
location=
"/bower_components/"
/>
...
...
@@ -59,4 +59,4 @@
<!-- 数据库、事务配置 -->
<import
resource=
"application-jdbc.xml"
/>
</beans>
\ No newline at end of file
</beans>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录