Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
gdyjdao
SkyWalking
提交
750e57fc
S
SkyWalking
项目概览
gdyjdao
/
SkyWalking
与 Fork 源项目一致
Fork自
apache / SkyWalking
通知
1
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,发现更多精彩内容 >>
提交
750e57fc
编写于
11月 19, 2017
作者:
A
ascrutae
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix issue restemplate plugin don’t works fine
上级
8658ca77
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
4 addition
and
3 deletion
+4
-3
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/resttemplate/async/RestRequestInterceptor.java
...gin/spring/resttemplate/async/RestRequestInterceptor.java
+3
-2
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/resttemplate/async/define/RestTemplateInstrumentation.java
...esttemplate/async/define/RestTemplateInstrumentation.java
+1
-1
未找到文件。
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.x-plugin/src/main/java/org/s
pringframework/http/client
/RestRequestInterceptor.java
→
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.x-plugin/src/main/java/org/s
kywalking/apm/plugin/spring/resttemplate/async
/RestRequestInterceptor.java
浏览文件 @
750e57fc
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
* Project repository: https://github.com/OpenSkywalking/skywalking
* Project repository: https://github.com/OpenSkywalking/skywalking
*/
*/
package
org.s
pringframework.http.client
;
package
org.s
kywalking.apm.plugin.spring.resttemplate.async
;
import
java.lang.reflect.Method
;
import
java.lang.reflect.Method
;
import
org.skywalking.apm.agent.core.context.CarrierItem
;
import
org.skywalking.apm.agent.core.context.CarrierItem
;
...
@@ -24,6 +24,7 @@ import org.skywalking.apm.agent.core.context.ContextCarrier;
...
@@ -24,6 +24,7 @@ import org.skywalking.apm.agent.core.context.ContextCarrier;
import
org.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedInstance
;
import
org.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedInstance
;
import
org.skywalking.apm.agent.core.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor
;
import
org.skywalking.apm.agent.core.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor
;
import
org.skywalking.apm.agent.core.plugin.interceptor.enhance.MethodInterceptResult
;
import
org.skywalking.apm.agent.core.plugin.interceptor.enhance.MethodInterceptResult
;
import
org.springframework.http.client.AsyncClientHttpRequest
;
public
class
RestRequestInterceptor
implements
InstanceMethodsAroundInterceptor
{
public
class
RestRequestInterceptor
implements
InstanceMethodsAroundInterceptor
{
...
@@ -36,7 +37,7 @@ public class RestRequestInterceptor implements InstanceMethodsAroundInterceptor
...
@@ -36,7 +37,7 @@ public class RestRequestInterceptor implements InstanceMethodsAroundInterceptor
@Override
@Override
public
Object
afterMethod
(
EnhancedInstance
objInst
,
Method
method
,
Object
[]
allArguments
,
Class
<?>[]
argumentsTypes
,
public
Object
afterMethod
(
EnhancedInstance
objInst
,
Method
method
,
Object
[]
allArguments
,
Class
<?>[]
argumentsTypes
,
Object
ret
)
throws
Throwable
{
Object
ret
)
throws
Throwable
{
A
bstractAsyncClientHttpRequest
clientHttpRequest
=
(
Abstract
AsyncClientHttpRequest
)
ret
;
A
syncClientHttpRequest
clientHttpRequest
=
(
AsyncClientHttpRequest
)
ret
;
if
(
ret
!=
null
)
{
if
(
ret
!=
null
)
{
Object
[]
cacheValues
=
(
Object
[])
objInst
.
getSkyWalkingDynamicField
();
Object
[]
cacheValues
=
(
Object
[])
objInst
.
getSkyWalkingDynamicField
();
ContextCarrier
contextCarrier
=
(
ContextCarrier
)
cacheValues
[
1
];
ContextCarrier
contextCarrier
=
(
ContextCarrier
)
cacheValues
[
1
];
...
...
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/resttemplate/async/define/RestTemplateInstrumentation.java
浏览文件 @
750e57fc
...
@@ -47,7 +47,7 @@ public class RestTemplateInstrumentation extends ClassInstanceMethodsEnhancePlug
...
@@ -47,7 +47,7 @@ public class RestTemplateInstrumentation extends ClassInstanceMethodsEnhancePlug
private
static
final
String
DO_EXECUTE_METHOD_NAME
=
"doExecute"
;
private
static
final
String
DO_EXECUTE_METHOD_NAME
=
"doExecute"
;
private
static
final
String
DO_EXECUTE_INTERCEPTOR
=
"org.skywalking.apm.plugin.spring.resttemplate.async.RestExecuteInterceptor"
;
private
static
final
String
DO_EXECUTE_INTERCEPTOR
=
"org.skywalking.apm.plugin.spring.resttemplate.async.RestExecuteInterceptor"
;
private
static
final
String
CREATE_REQUEST_METHOD_NAME
=
"createAsyncRequest"
;
private
static
final
String
CREATE_REQUEST_METHOD_NAME
=
"createAsyncRequest"
;
private
static
final
String
CREATE_REQUEST_INTERCEPTOR
=
"org.s
pringframework.http.client
.RestRequestInterceptor"
;
private
static
final
String
CREATE_REQUEST_INTERCEPTOR
=
"org.s
kywalking.apm.plugin.spring.resttemplate.async
.RestRequestInterceptor"
;
@Override
@Override
protected
ConstructorInterceptPoint
[]
getConstructorsInterceptPoints
()
{
protected
ConstructorInterceptPoint
[]
getConstructorsInterceptPoints
()
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录