Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
killuaz丶x
SkyWalking
提交
78bbfd0f
S
SkyWalking
项目概览
killuaz丶x
/
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,发现更多精彩内容 >>
提交
78bbfd0f
编写于
8月 11, 2017
作者:
A
ascrutae
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify support spring version
上级
2699a0fe
变更
27
隐藏空白更改
内联
并排
Showing
27 changed file
with
23 addition
and
23 deletion
+23
-23
apm-sniffer/apm-agent/pom.xml
apm-sniffer/apm-agent/pom.xml
+2
-2
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.3.x-plugin/src/main/resources/skywalking-plugin.def
...til-4.3.x-plugin/src/main/resources/skywalking-plugin.def
+0
-3
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.x-plugin/pom.xml
...-plugin/spring-plugins/concurrent-util-4.x-plugin/pom.xml
+3
-3
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/concurrent/FailureCallbackInterceptor.java
.../plugin/spring/concurrent/FailureCallbackInterceptor.java
+0
-0
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/concurrent/SuccessCallbackInterceptor.java
.../plugin/spring/concurrent/SuccessCallbackInterceptor.java
+0
-0
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/concurrent/define/FailureCallbackInstrumentation.java
...ing/concurrent/define/FailureCallbackInstrumentation.java
+0
-0
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/concurrent/define/ListenableFutureCallbackInstrumentation.java
...rrent/define/ListenableFutureCallbackInstrumentation.java
+0
-0
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/concurrent/define/SuccessCallbackInstrumentation.java
...ing/concurrent/define/SuccessCallbackInstrumentation.java
+0
-0
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/concurrent/match/EitherInterfaceMatch.java
.../plugin/spring/concurrent/match/EitherInterfaceMatch.java
+0
-0
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/concurrent/match/FailedCallbackMatch.java
...m/plugin/spring/concurrent/match/FailedCallbackMatch.java
+0
-0
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/concurrent/match/ListenableFutureCallbackMatch.java
...pring/concurrent/match/ListenableFutureCallbackMatch.java
+0
-0
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/concurrent/match/SuccessCallbackMatch.java
.../plugin/spring/concurrent/match/SuccessCallbackMatch.java
+0
-0
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.x-plugin/src/main/resources/skywalking-plugin.def
...-util-4.x-plugin/src/main/resources/skywalking-plugin.def
+3
-0
apm-sniffer/apm-sdk-plugin/spring-plugins/pom.xml
apm-sniffer/apm-sdk-plugin/spring-plugins/pom.xml
+2
-4
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.3.x-plugin/src/main/resources/skywalking-plugin.def
...ate-4.3.x-plugin/src/main/resources/skywalking-plugin.def
+0
-3
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.x-plugin/pom.xml
...sdk-plugin/spring-plugins/resttemplate-4.x-plugin/pom.xml
+1
-1
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/resttemplate/async/FutureGetInterceptor.java
...lugin/spring/resttemplate/async/FutureGetInterceptor.java
+2
-3
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/resttemplate/async/ResponseCallBackInterceptor.java
...pring/resttemplate/async/ResponseCallBackInterceptor.java
+0
-0
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/resttemplate/async/RestExecuteInterceptor.java
...gin/spring/resttemplate/async/RestExecuteInterceptor.java
+4
-2
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/resttemplate/async/define/ResponseExtractorFutureInstrumentation.java
.../async/define/ResponseExtractorFutureInstrumentation.java
+0
-0
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
+0
-0
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/resttemplate/sync/RestExecuteInterceptor.java
...ugin/spring/resttemplate/sync/RestExecuteInterceptor.java
+0
-0
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/resttemplate/sync/RestRequestInterceptor.java
...ugin/spring/resttemplate/sync/RestRequestInterceptor.java
+0
-0
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/resttemplate/sync/RestResponseInterceptor.java
...gin/spring/resttemplate/sync/RestResponseInterceptor.java
+0
-0
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/resttemplate/sync/define/RestTemplateInstrumentation.java
...resttemplate/sync/define/RestTemplateInstrumentation.java
+0
-0
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.x-plugin/src/main/java/org/springframework/http/client/RestRequestInterceptor.java
...g/springframework/http/client/RestRequestInterceptor.java
+3
-2
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.x-plugin/src/main/resources/skywalking-plugin.def
...plate-4.x-plugin/src/main/resources/skywalking-plugin.def
+3
-0
未找到文件。
apm-sniffer/apm-agent/pom.xml
浏览文件 @
78bbfd0f
...
@@ -82,12 +82,12 @@
...
@@ -82,12 +82,12 @@
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.skywalking
</groupId>
<groupId>
org.skywalking
</groupId>
<artifactId>
apm-resttemplate-plugin
</artifactId>
<artifactId>
apm-resttemplate-
4.3.x-
plugin
</artifactId>
<version>
${project.version}
</version>
<version>
${project.version}
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.skywalking
</groupId>
<groupId>
org.skywalking
</groupId>
<artifactId>
apm-spring-concurrent-util-plugin
</artifactId>
<artifactId>
apm-spring-concurrent-util-
4.x-
plugin
</artifactId>
<version>
${project.version}
</version>
<version>
${project.version}
</version>
</dependency>
</dependency>
...
...
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.3.x-plugin/src/main/resources/skywalking-plugin.def
已删除
100644 → 0
浏览文件 @
2699a0fe
spring-concurrent-util-4.3.8=org.skywalking.apm.plugin.spring.concurrent.define.FailureCallbackInstrumentation
spring-concurrent-util-4.3.8=org.skywalking.apm.plugin.spring.concurrent.define.SuccessCallbackInstrumentation
spring-concurrent-util-4.3.8=org.skywalking.apm.plugin.spring.concurrent.define.ListenableFutureCallbackInstrumentation
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.
3.
x-plugin/pom.xml
→
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.x-plugin/pom.xml
浏览文件 @
78bbfd0f
...
@@ -7,17 +7,17 @@
...
@@ -7,17 +7,17 @@
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
apm-spring-concurrent-util-4.
3.
x-plugin
</artifactId>
<artifactId>
apm-spring-concurrent-util-4.x-plugin
</artifactId>
<packaging>
jar
</packaging>
<packaging>
jar
</packaging>
<name>
concurrent-util-4.
3.
x-plugin
</name>
<name>
concurrent-util-4.x-plugin
</name>
<url>
http://maven.apache.org
</url>
<url>
http://maven.apache.org
</url>
<dependencies>
<dependencies>
<dependency>
<dependency>
<groupId>
org.springframework
</groupId>
<groupId>
org.springframework
</groupId>
<artifactId>
spring-core
</artifactId>
<artifactId>
spring-core
</artifactId>
<version>
4.3.
8
.RELEASE
</version>
<version>
4.3.
10
.RELEASE
</version>
<scope>
provided
</scope>
<scope>
provided
</scope>
</dependency>
</dependency>
</dependencies>
</dependencies>
...
...
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.
3.
x-plugin/src/main/java/org/skywalking/apm/plugin/spring/concurrent/FailureCallbackInterceptor.java
→
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/concurrent/FailureCallbackInterceptor.java
浏览文件 @
78bbfd0f
文件已移动
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.
3.
x-plugin/src/main/java/org/skywalking/apm/plugin/spring/concurrent/SuccessCallbackInterceptor.java
→
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/concurrent/SuccessCallbackInterceptor.java
浏览文件 @
78bbfd0f
文件已移动
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.
3.
x-plugin/src/main/java/org/skywalking/apm/plugin/spring/concurrent/define/FailureCallbackInstrumentation.java
→
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/concurrent/define/FailureCallbackInstrumentation.java
浏览文件 @
78bbfd0f
文件已移动
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.
3.
x-plugin/src/main/java/org/skywalking/apm/plugin/spring/concurrent/define/ListenableFutureCallbackInstrumentation.java
→
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/concurrent/define/ListenableFutureCallbackInstrumentation.java
浏览文件 @
78bbfd0f
文件已移动
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.
3.
x-plugin/src/main/java/org/skywalking/apm/plugin/spring/concurrent/define/SuccessCallbackInstrumentation.java
→
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/concurrent/define/SuccessCallbackInstrumentation.java
浏览文件 @
78bbfd0f
文件已移动
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.
3.
x-plugin/src/main/java/org/skywalking/apm/plugin/spring/concurrent/match/EitherInterfaceMatch.java
→
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/concurrent/match/EitherInterfaceMatch.java
浏览文件 @
78bbfd0f
文件已移动
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.
3.
x-plugin/src/main/java/org/skywalking/apm/plugin/spring/concurrent/match/FailedCallbackMatch.java
→
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/concurrent/match/FailedCallbackMatch.java
浏览文件 @
78bbfd0f
文件已移动
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.
3.
x-plugin/src/main/java/org/skywalking/apm/plugin/spring/concurrent/match/ListenableFutureCallbackMatch.java
→
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/concurrent/match/ListenableFutureCallbackMatch.java
浏览文件 @
78bbfd0f
文件已移动
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.
3.
x-plugin/src/main/java/org/skywalking/apm/plugin/spring/concurrent/match/SuccessCallbackMatch.java
→
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/concurrent/match/SuccessCallbackMatch.java
浏览文件 @
78bbfd0f
文件已移动
apm-sniffer/apm-sdk-plugin/spring-plugins/concurrent-util-4.x-plugin/src/main/resources/skywalking-plugin.def
0 → 100644
浏览文件 @
78bbfd0f
spring-concurrent-util-4.x=org.skywalking.apm.plugin.spring.concurrent.define.FailureCallbackInstrumentation
spring-concurrent-util-4.x=org.skywalking.apm.plugin.spring.concurrent.define.SuccessCallbackInstrumentation
spring-concurrent-util-4.x=org.skywalking.apm.plugin.spring.concurrent.define.ListenableFutureCallbackInstrumentation
apm-sniffer/apm-sdk-plugin/spring-plugins/pom.xml
浏览文件 @
78bbfd0f
...
@@ -11,10 +11,8 @@
...
@@ -11,10 +11,8 @@
<artifactId>
spring-plugins
</artifactId>
<artifactId>
spring-plugins
</artifactId>
<modules>
<modules>
<!--<module>concurrent-util-4.3.x-plugin</module>
<module>
concurrent-util-4.x-plugin
</module>
<module>resttemplate-4.3.x-plugin</module>-->
<module>
resttemplate-4.x-plugin
</module>
<module>
concurrent-util-4.3.x-plugin
</module>
<module>
resttemplate-4.3.x-plugin
</module>
</modules>
</modules>
<packaging>
pom
</packaging>
<packaging>
pom
</packaging>
...
...
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.3.x-plugin/src/main/resources/skywalking-plugin.def
已删除
100644 → 0
浏览文件 @
2699a0fe
spring-resttemplate-4.3.8=org.skywalking.apm.plugin.spring.resttemplate.async.define.RestTemplateInstrumentation
spring-resttemplate-4.3.8=org.skywalking.apm.plugin.spring.resttemplate.async.define.ResponseExtractorFutureInstrumentation
spring-resttemplate-4.3.8=org.skywalking.apm.plugin.spring.resttemplate.sync.define.RestTemplateInstrumentation
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.
3.
x-plugin/pom.xml
→
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.x-plugin/pom.xml
浏览文件 @
78bbfd0f
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<dependency>
<dependency>
<groupId>
org.springframework
</groupId>
<groupId>
org.springframework
</groupId>
<artifactId>
spring-web
</artifactId>
<artifactId>
spring-web
</artifactId>
<version>
4.3.
8
.RELEASE
</version>
<version>
4.3.
10
.RELEASE
</version>
<scope>
provided
</scope>
<scope>
provided
</scope>
</dependency>
</dependency>
</dependencies>
</dependencies>
...
...
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.
3.
x-plugin/src/main/java/org/skywalking/apm/plugin/spring/resttemplate/async/FutureGetInterceptor.java
→
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/resttemplate/async/FutureGetInterceptor.java
浏览文件 @
78bbfd0f
...
@@ -2,7 +2,6 @@ package org.skywalking.apm.plugin.spring.resttemplate.async;
...
@@ -2,7 +2,6 @@ package org.skywalking.apm.plugin.spring.resttemplate.async;
import
java.lang.reflect.Method
;
import
java.lang.reflect.Method
;
import
java.net.URI
;
import
java.net.URI
;
import
java.util.List
;
import
org.skywalking.apm.agent.core.context.ContextManager
;
import
org.skywalking.apm.agent.core.context.ContextManager
;
import
org.skywalking.apm.agent.core.context.trace.AbstractSpan
;
import
org.skywalking.apm.agent.core.context.trace.AbstractSpan
;
import
org.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedInstance
;
import
org.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedInstance
;
...
@@ -14,8 +13,8 @@ public class FutureGetInterceptor implements InstanceMethodsAroundInterceptor {
...
@@ -14,8 +13,8 @@ public class FutureGetInterceptor implements InstanceMethodsAroundInterceptor {
@Override
@Override
public
void
beforeMethod
(
EnhancedInstance
objInst
,
Method
method
,
Object
[]
allArguments
,
Class
<?>[]
argumentsTypes
,
public
void
beforeMethod
(
EnhancedInstance
objInst
,
Method
method
,
Object
[]
allArguments
,
Class
<?>[]
argumentsTypes
,
MethodInterceptResult
result
)
throws
Throwable
{
MethodInterceptResult
result
)
throws
Throwable
{
List
<
Object
>
cacheValues
=
(
List
<
Object
>
)
objInst
.
getSkyWalkingDynamicField
();
Object
[]
cacheValues
=
(
Object
[]
)
objInst
.
getSkyWalkingDynamicField
();
ContextManager
.
createLocalSpan
(
"future/get:"
+
((
URI
)
cacheValues
.
get
(
0
)
).
getPath
());
ContextManager
.
createLocalSpan
(
"future/get:"
+
((
URI
)
cacheValues
[
0
]
).
getPath
());
}
}
@Override
@Override
...
...
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.
3.
x-plugin/src/main/java/org/skywalking/apm/plugin/spring/resttemplate/async/ResponseCallBackInterceptor.java
→
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/resttemplate/async/ResponseCallBackInterceptor.java
浏览文件 @
78bbfd0f
文件已移动
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.
3.
x-plugin/src/main/java/org/skywalking/apm/plugin/spring/resttemplate/async/RestExecuteInterceptor.java
→
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/resttemplate/async/RestExecuteInterceptor.java
浏览文件 @
78bbfd0f
...
@@ -38,8 +38,10 @@ public class RestExecuteInterceptor implements InstanceMethodsAroundInterceptor
...
@@ -38,8 +38,10 @@ public class RestExecuteInterceptor implements InstanceMethodsAroundInterceptor
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
{
Object
[]
cacheValues
=
(
Object
[])
objInst
.
getSkyWalkingDynamicField
();
Object
[]
cacheValues
=
(
Object
[])
objInst
.
getSkyWalkingDynamicField
();
cacheValues
[
3
]
=
ContextManager
.
capture
();
cacheValues
[
2
]
=
ContextManager
.
capture
();
((
EnhancedInstance
)
ret
).
setSkyWalkingDynamicField
(
cacheValues
);
if
(
ret
!=
null
)
{
((
EnhancedInstance
)
ret
).
setSkyWalkingDynamicField
(
cacheValues
);
}
ContextManager
.
stopSpan
();
ContextManager
.
stopSpan
();
return
ret
;
return
ret
;
}
}
...
...
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.
3.
x-plugin/src/main/java/org/skywalking/apm/plugin/spring/resttemplate/async/define/ResponseExtractorFutureInstrumentation.java
→
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/resttemplate/async/define/ResponseExtractorFutureInstrumentation.java
浏览文件 @
78bbfd0f
文件已移动
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.
3.
x-plugin/src/main/java/org/skywalking/apm/plugin/spring/resttemplate/async/define/RestTemplateInstrumentation.java
→
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/resttemplate/async/define/RestTemplateInstrumentation.java
浏览文件 @
78bbfd0f
文件已移动
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.
3.
x-plugin/src/main/java/org/skywalking/apm/plugin/spring/resttemplate/sync/RestExecuteInterceptor.java
→
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/resttemplate/sync/RestExecuteInterceptor.java
浏览文件 @
78bbfd0f
文件已移动
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.
3.
x-plugin/src/main/java/org/skywalking/apm/plugin/spring/resttemplate/sync/RestRequestInterceptor.java
→
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/resttemplate/sync/RestRequestInterceptor.java
浏览文件 @
78bbfd0f
文件已移动
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.
3.
x-plugin/src/main/java/org/skywalking/apm/plugin/spring/resttemplate/sync/RestResponseInterceptor.java
→
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/resttemplate/sync/RestResponseInterceptor.java
浏览文件 @
78bbfd0f
文件已移动
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.
3.
x-plugin/src/main/java/org/skywalking/apm/plugin/spring/resttemplate/sync/define/RestTemplateInstrumentation.java
→
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.x-plugin/src/main/java/org/skywalking/apm/plugin/spring/resttemplate/sync/define/RestTemplateInstrumentation.java
浏览文件 @
78bbfd0f
文件已移动
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.
3.
x-plugin/src/main/java/org/springframework/http/client/RestRequestInterceptor.java
→
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.x-plugin/src/main/java/org/springframework/http/client/RestRequestInterceptor.java
浏览文件 @
78bbfd0f
package
org.springframework.http.client
;
package
org.springframework.http.client
;
import
java.lang.reflect.Method
;
import
java.lang.reflect.Method
;
import
java.util.List
;
import
org.skywalking.apm.agent.core.conf.Config
;
import
org.skywalking.apm.agent.core.conf.Config
;
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
;
...
@@ -19,7 +18,9 @@ public class RestRequestInterceptor implements InstanceMethodsAroundInterceptor
...
@@ -19,7 +18,9 @@ public class RestRequestInterceptor implements InstanceMethodsAroundInterceptor
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
{
AbstractAsyncClientHttpRequest
clientHttpRequest
=
(
AbstractAsyncClientHttpRequest
)
ret
;
AbstractAsyncClientHttpRequest
clientHttpRequest
=
(
AbstractAsyncClientHttpRequest
)
ret
;
clientHttpRequest
.
getHeaders
().
set
(
Config
.
Plugin
.
Propagation
.
HEADER_NAME
,
String
.
valueOf
(((
List
<
Object
>)
objInst
.
getSkyWalkingDynamicField
()).
get
(
1
)));
if
(
ret
!=
null
)
{
clientHttpRequest
.
getHeaders
().
set
(
Config
.
Plugin
.
Propagation
.
HEADER_NAME
,
String
.
valueOf
(((
Object
[])
objInst
.
getSkyWalkingDynamicField
())[
1
]));
}
return
ret
;
return
ret
;
}
}
...
...
apm-sniffer/apm-sdk-plugin/spring-plugins/resttemplate-4.x-plugin/src/main/resources/skywalking-plugin.def
0 → 100644
浏览文件 @
78bbfd0f
spring-resttemplate-4.x=org.skywalking.apm.plugin.spring.resttemplate.async.define.RestTemplateInstrumentation
spring-resttemplate-4.x=org.skywalking.apm.plugin.spring.resttemplate.async.define.ResponseExtractorFutureInstrumentation
spring-resttemplate-4.x=org.skywalking.apm.plugin.spring.resttemplate.sync.define.RestTemplateInstrumentation
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录