Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
月轩居士
SkyWalking
提交
e9622033
S
SkyWalking
项目概览
月轩居士
/
SkyWalking
与 Fork 源项目一致
Fork自
apache / SkyWalking
通知
4
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,发现更多精彩内容 >>
未验证
提交
e9622033
编写于
1月 08, 2021
作者:
F
Frank Liu
提交者:
GitHub
1月 09, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Dubbo link tracing- show "group" attribute value in OperationName (#6159)
上级
5fd06a7c
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
11 addition
and
0 deletion
+11
-0
CHANGES.md
CHANGES.md
+1
-0
apm-sniffer/apm-sdk-plugin/dubbo-2.7.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/asf/dubbo/DubboInterceptor.java
...che/skywalking/apm/plugin/asf/dubbo/DubboInterceptor.java
+5
-0
apm-sniffer/apm-sdk-plugin/dubbo-plugin/src/main/java/org/apache/skywalking/apm/plugin/dubbo/DubboInterceptor.java
.../apache/skywalking/apm/plugin/dubbo/DubboInterceptor.java
+5
-0
未找到文件。
CHANGES.md
浏览文件 @
e9622033
...
@@ -27,6 +27,7 @@ Release Notes.
...
@@ -27,6 +27,7 @@ Release Notes.
*
Add Dolphinscheduler plugin definition.
*
Add Dolphinscheduler plugin definition.
*
Make sampling still works when the trace ignores plug-in activation.
*
Make sampling still works when the trace ignores plug-in activation.
*
Fix mssql-plugin occur ClassCastException when call the method of return generate key.
*
Fix mssql-plugin occur ClassCastException when call the method of return generate key.
*
The operation name of dubbo and dubbo-2.7.x-plugin, has been changed as the
`groupValue/className.methodName`
format
*
Fix bug that rocketmq-plugin set the wrong tag.
*
Fix bug that rocketmq-plugin set the wrong tag.
#### OAP-Backend
#### OAP-Backend
...
...
apm-sniffer/apm-sdk-plugin/dubbo-2.7.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/asf/dubbo/DubboInterceptor.java
浏览文件 @
e9622033
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
package
org.apache.skywalking.apm.plugin.asf.dubbo
;
package
org.apache.skywalking.apm.plugin.asf.dubbo
;
import
org.apache.dubbo.common.Constants
;
import
org.apache.dubbo.common.URL
;
import
org.apache.dubbo.common.URL
;
import
org.apache.dubbo.rpc.Invocation
;
import
org.apache.dubbo.rpc.Invocation
;
import
org.apache.dubbo.rpc.Invoker
;
import
org.apache.dubbo.rpc.Invoker
;
...
@@ -33,6 +34,7 @@ import org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedI
...
@@ -33,6 +34,7 @@ import org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedI
import
org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor
;
import
org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor
;
import
org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.MethodInterceptResult
;
import
org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.MethodInterceptResult
;
import
org.apache.skywalking.apm.network.trace.component.ComponentsDefine
;
import
org.apache.skywalking.apm.network.trace.component.ComponentsDefine
;
import
org.apache.skywalking.apm.util.StringUtil
;
import
java.lang.reflect.Method
;
import
java.lang.reflect.Method
;
...
@@ -136,6 +138,9 @@ public class DubboInterceptor implements InstanceMethodsAroundInterceptor {
...
@@ -136,6 +138,9 @@ public class DubboInterceptor implements InstanceMethodsAroundInterceptor {
*/
*/
private
String
generateOperationName
(
URL
requestURL
,
Invocation
invocation
)
{
private
String
generateOperationName
(
URL
requestURL
,
Invocation
invocation
)
{
StringBuilder
operationName
=
new
StringBuilder
();
StringBuilder
operationName
=
new
StringBuilder
();
String
groupStr
=
requestURL
.
getParameter
(
Constants
.
GROUP_KEY
);
groupStr
=
StringUtil
.
isEmpty
(
groupStr
)
?
""
:
groupStr
+
"/"
;
operationName
.
append
(
groupStr
);
operationName
.
append
(
requestURL
.
getPath
());
operationName
.
append
(
requestURL
.
getPath
());
operationName
.
append
(
"."
+
invocation
.
getMethodName
()
+
"("
);
operationName
.
append
(
"."
+
invocation
.
getMethodName
()
+
"("
);
for
(
Class
<?>
classes
:
invocation
.
getParameterTypes
())
{
for
(
Class
<?>
classes
:
invocation
.
getParameterTypes
())
{
...
...
apm-sniffer/apm-sdk-plugin/dubbo-plugin/src/main/java/org/apache/skywalking/apm/plugin/dubbo/DubboInterceptor.java
浏览文件 @
e9622033
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
package
org.apache.skywalking.apm.plugin.dubbo
;
package
org.apache.skywalking.apm.plugin.dubbo
;
import
com.alibaba.dubbo.common.Constants
;
import
com.alibaba.dubbo.common.URL
;
import
com.alibaba.dubbo.common.URL
;
import
com.alibaba.dubbo.rpc.Invocation
;
import
com.alibaba.dubbo.rpc.Invocation
;
import
com.alibaba.dubbo.rpc.Invoker
;
import
com.alibaba.dubbo.rpc.Invoker
;
...
@@ -34,6 +35,7 @@ import org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedI
...
@@ -34,6 +35,7 @@ import org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedI
import
org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor
;
import
org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor
;
import
org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.MethodInterceptResult
;
import
org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.MethodInterceptResult
;
import
org.apache.skywalking.apm.network.trace.component.ComponentsDefine
;
import
org.apache.skywalking.apm.network.trace.component.ComponentsDefine
;
import
org.apache.skywalking.apm.util.StringUtil
;
/**
/**
* {@link DubboInterceptor} define how to enhance class {@link com.alibaba.dubbo.monitor.support.MonitorFilter#invoke(Invoker,
* {@link DubboInterceptor} define how to enhance class {@link com.alibaba.dubbo.monitor.support.MonitorFilter#invoke(Invoker,
...
@@ -123,6 +125,9 @@ public class DubboInterceptor implements InstanceMethodsAroundInterceptor {
...
@@ -123,6 +125,9 @@ public class DubboInterceptor implements InstanceMethodsAroundInterceptor {
*/
*/
private
String
generateOperationName
(
URL
requestURL
,
Invocation
invocation
)
{
private
String
generateOperationName
(
URL
requestURL
,
Invocation
invocation
)
{
StringBuilder
operationName
=
new
StringBuilder
();
StringBuilder
operationName
=
new
StringBuilder
();
String
groupStr
=
requestURL
.
getParameter
(
Constants
.
GROUP_KEY
);
groupStr
=
StringUtil
.
isEmpty
(
groupStr
)
?
""
:
groupStr
+
"/"
;
operationName
.
append
(
groupStr
);
operationName
.
append
(
requestURL
.
getPath
());
operationName
.
append
(
requestURL
.
getPath
());
operationName
.
append
(
"."
+
invocation
.
getMethodName
()
+
"("
);
operationName
.
append
(
"."
+
invocation
.
getMethodName
()
+
"("
);
for
(
Class
<?>
classes
:
invocation
.
getParameterTypes
())
{
for
(
Class
<?>
classes
:
invocation
.
getParameterTypes
())
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录