BugFix: x-le tag format in GraphQL plugin (#5054)

This commit is contained in:
kezhenxu94 2020-07-08 12:59:55 +08:00 committed by GitHub
parent 42c8cebbc1
commit 32202e053a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 30 deletions

View File

@ -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}";
}
}
}

View File

@ -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}";
}
}
}

View File

@ -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}";
}
}
}

View File

@ -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

View File

@ -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

View File

@ -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