Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
润土的好友猹
SkyWalking
提交
32202e05
S
SkyWalking
项目概览
润土的好友猹
/
SkyWalking
与 Fork 源项目一致
Fork自
apache / SkyWalking
通知
9
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,发现更多精彩内容 >>
未验证
提交
32202e05
编写于
7月 08, 2020
作者:
K
kezhenxu94
提交者:
GitHub
7月 08, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
BugFix: x-le tag format in GraphQL plugin (#5054)
上级
42c8cebb
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
18 addition
and
30 deletion
+18
-30
apm-sniffer/apm-sdk-plugin/graphql-plugin/graphql-12.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/graphql/v12/GraphqlInterceptor.java
...skywalking/apm/plugin/graphql/v12/GraphqlInterceptor.java
+2
-6
apm-sniffer/apm-sdk-plugin/graphql-plugin/graphql-8.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/graphql/v8/GraphqlInterceptor.java
.../skywalking/apm/plugin/graphql/v8/GraphqlInterceptor.java
+2
-6
apm-sniffer/apm-sdk-plugin/graphql-plugin/graphql-9.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/graphql/v9/GraphqlInterceptor.java
.../skywalking/apm/plugin/graphql/v9/GraphqlInterceptor.java
+2
-6
test/plugin/scenarios/graphql-12.x-scenario/config/expectedData.yaml
.../scenarios/graphql-12.x-scenario/config/expectedData.yaml
+4
-4
test/plugin/scenarios/graphql-8.x-scenario/config/expectedData.yaml
...n/scenarios/graphql-8.x-scenario/config/expectedData.yaml
+4
-4
test/plugin/scenarios/graphql-9.x-scenario/config/expectedData.yaml
...n/scenarios/graphql-9.x-scenario/config/expectedData.yaml
+4
-4
未找到文件。
apm-sniffer/apm-sdk-plugin/graphql-plugin/graphql-12.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/graphql/v12/GraphqlInterceptor.java
浏览文件 @
32202e05
...
...
@@ -29,8 +29,6 @@ import org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.MethodInt
import
org.apache.skywalking.apm.network.trace.component.ComponentsDefine
;
import
java.lang.reflect.Method
;
import
java.util.HashMap
;
import
java.util.Map
;
public
class
GraphqlInterceptor
implements
InstanceMethodsAroundInterceptor
{
...
...
@@ -71,8 +69,6 @@ public class GraphqlInterceptor implements InstanceMethodsAroundInterceptor {
}
private
String
buildLogicEndpointSpan
()
{
Map
<
String
,
Object
>
logicEndpointSpan
=
new
HashMap
<>();
logicEndpointSpan
.
put
(
"logic-span"
,
true
);
return
logicEndpointSpan
.
toString
();
return
"{\"logic-span\":true}"
;
}
}
\ No newline at end of file
}
apm-sniffer/apm-sdk-plugin/graphql-plugin/graphql-8.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/graphql/v8/GraphqlInterceptor.java
浏览文件 @
32202e05
...
...
@@ -30,8 +30,6 @@ import org.apache.skywalking.apm.network.trace.component.ComponentsDefine;
import
java.lang.reflect.Field
;
import
java.lang.reflect.Method
;
import
java.util.HashMap
;
import
java.util.Map
;
public
class
GraphqlInterceptor
implements
InstanceMethodsAroundInterceptor
{
...
...
@@ -102,8 +100,6 @@ public class GraphqlInterceptor implements InstanceMethodsAroundInterceptor {
}
private
String
buildLogicEndpointSpan
()
{
Map
<
String
,
Object
>
logicEndpointSpan
=
new
HashMap
<>();
logicEndpointSpan
.
put
(
"logic-span"
,
true
);
return
logicEndpointSpan
.
toString
();
return
"{\"logic-span\":true}"
;
}
}
\ No newline at end of file
}
apm-sniffer/apm-sdk-plugin/graphql-plugin/graphql-9.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/graphql/v9/GraphqlInterceptor.java
浏览文件 @
32202e05
...
...
@@ -29,8 +29,6 @@ import org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.MethodInt
import
org.apache.skywalking.apm.network.trace.component.ComponentsDefine
;
import
java.lang.reflect.Method
;
import
java.util.HashMap
;
import
java.util.Map
;
public
class
GraphqlInterceptor
implements
InstanceMethodsAroundInterceptor
{
...
...
@@ -71,8 +69,6 @@ public class GraphqlInterceptor implements InstanceMethodsAroundInterceptor {
}
private
String
buildLogicEndpointSpan
()
{
Map
<
String
,
Object
>
logicEndpointSpan
=
new
HashMap
<>();
logicEndpointSpan
.
put
(
"logic-span"
,
true
);
return
logicEndpointSpan
.
toString
();
return
"{\"logic-span\":true}"
;
}
}
\ No newline at end of file
}
test/plugin/scenarios/graphql-12.x-scenario/config/expectedData.yaml
浏览文件 @
32202e05
...
...
@@ -32,7 +32,7 @@ segmentItems:
peer
:
'
'
skipAnalysis
:
false
tags
:
-
{
key
:
x-le
,
value
:
'
{
logic-span=
true}'
}
-
{
key
:
x-le
,
value
:
'
{
"logic-span":
true}'
}
-
operationName
:
users
operationId
:
0
parentSpanId
:
0
...
...
@@ -46,7 +46,7 @@ segmentItems:
peer
:
'
'
skipAnalysis
:
false
tags
:
-
{
key
:
x-le
,
value
:
'
{
logic-span=
true}'
}
-
{
key
:
x-le
,
value
:
'
{
"logic-span":
true}'
}
-
operationName
:
user
operationId
:
0
parentSpanId
:
0
...
...
@@ -60,7 +60,7 @@ segmentItems:
peer
:
'
'
skipAnalysis
:
false
tags
:
-
{
key
:
x-le
,
value
:
'
{
logic-span=
true}'
}
-
{
key
:
x-le
,
value
:
'
{
"logic-span":
true}'
}
-
operationName
:
users
operationId
:
0
parentSpanId
:
0
...
...
@@ -74,7 +74,7 @@ segmentItems:
peer
:
'
'
skipAnalysis
:
false
tags
:
-
{
key
:
x-le
,
value
:
'
{
logic-span=
true}'
}
-
{
key
:
x-le
,
value
:
'
{
"logic-span":
true}'
}
-
operationName
:
/graphql-scenario/case/graphql
operationId
:
0
parentSpanId
:
-1
...
...
test/plugin/scenarios/graphql-8.x-scenario/config/expectedData.yaml
浏览文件 @
32202e05
...
...
@@ -32,7 +32,7 @@ segmentItems:
peer
:
'
'
skipAnalysis
:
false
tags
:
-
{
key
:
x-le
,
value
:
'
{
logic-span=
true}'
}
-
{
key
:
x-le
,
value
:
'
{
"logic-span":
true}'
}
-
operationName
:
users
operationId
:
0
parentSpanId
:
0
...
...
@@ -46,7 +46,7 @@ segmentItems:
peer
:
'
'
skipAnalysis
:
false
tags
:
-
{
key
:
x-le
,
value
:
'
{
logic-span=
true}'
}
-
{
key
:
x-le
,
value
:
'
{
"logic-span":
true}'
}
-
operationName
:
user
operationId
:
0
parentSpanId
:
0
...
...
@@ -60,7 +60,7 @@ segmentItems:
peer
:
'
'
skipAnalysis
:
false
tags
:
-
{
key
:
x-le
,
value
:
'
{
logic-span=
true}'
}
-
{
key
:
x-le
,
value
:
'
{
"logic-span":
true}'
}
-
operationName
:
users
operationId
:
0
parentSpanId
:
0
...
...
@@ -74,7 +74,7 @@ segmentItems:
peer
:
'
'
skipAnalysis
:
false
tags
:
-
{
key
:
x-le
,
value
:
'
{
logic-span=
true}'
}
-
{
key
:
x-le
,
value
:
'
{
"logic-span":
true}'
}
-
operationName
:
/graphql-scenario/case/graphql
operationId
:
0
parentSpanId
:
-1
...
...
test/plugin/scenarios/graphql-9.x-scenario/config/expectedData.yaml
浏览文件 @
32202e05
...
...
@@ -32,7 +32,7 @@ segmentItems:
peer
:
'
'
skipAnalysis
:
false
tags
:
-
{
key
:
x-le
,
value
:
'
{
logic-span=
true}'
}
-
{
key
:
x-le
,
value
:
'
{
"logic-span":
true}'
}
-
operationName
:
users
operationId
:
0
parentSpanId
:
0
...
...
@@ -46,7 +46,7 @@ segmentItems:
peer
:
'
'
skipAnalysis
:
false
tags
:
-
{
key
:
x-le
,
value
:
'
{
logic-span=
true}'
}
-
{
key
:
x-le
,
value
:
'
{
"logic-span":
true}'
}
-
operationName
:
user
operationId
:
0
parentSpanId
:
0
...
...
@@ -60,7 +60,7 @@ segmentItems:
peer
:
'
'
skipAnalysis
:
false
tags
:
-
{
key
:
x-le
,
value
:
'
{
logic-span=
true}'
}
-
{
key
:
x-le
,
value
:
'
{
"logic-span":
true}'
}
-
operationName
:
users
operationId
:
0
parentSpanId
:
0
...
...
@@ -74,7 +74,7 @@ segmentItems:
peer
:
'
'
skipAnalysis
:
false
tags
:
-
{
key
:
x-le
,
value
:
'
{
logic-span=
true}'
}
-
{
key
:
x-le
,
value
:
'
{
"logic-span":
true}'
}
-
operationName
:
/graphql-scenario/case/graphql
operationId
:
0
parentSpanId
:
-1
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录