Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
阿信在这里
SkyWalking
提交
2f86b1b3
S
SkyWalking
项目概览
阿信在这里
/
SkyWalking
与 Fork 源项目一致
Fork自
山不在高_有仙则灵 / 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,发现更多精彩内容 >>
提交
2f86b1b3
编写于
7月 01, 2016
作者:
wu-sheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
移除无用的httpclient-dubbo-attachment。需要适配时,由应用系统自身控制。
上级
d7fc6c62
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
0 addition
and
251 deletion
+0
-251
skywalking-collector/skywalking-agent/pom.xml
skywalking-collector/skywalking-agent/pom.xml
+0
-5
skywalking-collector/skywalking-sdk-plugin/httpClient-4.x-plugin-dubbox-rest-attachment/README.md
...in/httpClient-4.x-plugin-dubbox-rest-attachment/README.md
+0
-10
skywalking-collector/skywalking-sdk-plugin/httpClient-4.x-plugin-dubbox-rest-attachment/pom.xml
...ugin/httpClient-4.x-plugin-dubbox-rest-attachment/pom.xml
+0
-79
skywalking-collector/skywalking-sdk-plugin/httpClient-4.x-plugin-dubbox-rest-attachment/src/main/java/org/skywalking/httpClient/v4/plugin/dubbox/rest/attachment/DubboxRestHeadSetterAttachment.java
...ubbox/rest/attachment/DubboxRestHeadSetterAttachment.java
+0
-32
skywalking-collector/skywalking-sdk-plugin/httpClient-4.x-plugin-dubbox-rest-attachment/src/main/resources/skywalking-plugin.def
...-rest-attachment/src/main/resources/skywalking-plugin.def
+0
-1
skywalking-collector/skywalking-sdk-plugin/httpClient-4.x-plugin-dubbox-rest-attachment/src/test/java/test/skywalking/httpClient/v4x/plugin/dubbox/rest/attachment/TestHttpClientV43.java
.../v4x/plugin/dubbox/rest/attachment/TestHttpClientV43.java
+0
-60
skywalking-collector/skywalking-sdk-plugin/httpClient-4.x-plugin-dubbox-rest-attachment/src/test/resources/log4j2.xml
...ugin-dubbox-rest-attachment/src/test/resources/log4j2.xml
+0
-16
skywalking-collector/skywalking-sdk-plugin/httpClient-4.x-plugin-dubbox-rest-attachment/src/test/resources/sky-walking.auth
...ubbox-rest-attachment/src/test/resources/sky-walking.auth
+0
-47
skywalking-collector/skywalking-sdk-plugin/pom.xml
skywalking-collector/skywalking-sdk-plugin/pom.xml
+0
-1
未找到文件。
skywalking-collector/skywalking-agent/pom.xml
浏览文件 @
2f86b1b3
...
...
@@ -39,11 +39,6 @@
<artifactId>
skywalking-httpClient-4.x-plugin
</artifactId>
<version>
1.0-Final
</version>
</dependency>
<dependency>
<groupId>
com.ai.cloud
</groupId>
<artifactId>
skywalking-httpClient-4.x-plugin-dubbox-rest-attachment
</artifactId>
<version>
1.0-Final
</version>
</dependency>
<dependency>
<groupId>
com.ai.cloud
</groupId>
<artifactId>
skywalking-dubbo-plugin
</artifactId>
...
...
skywalking-collector/skywalking-sdk-plugin/httpClient-4.x-plugin-dubbox-rest-attachment/README.md
已删除
100644 → 0
浏览文件 @
d7fc6c62
# 追踪通过httpClient调用dubbox发布的rest服务?
-
使用httpClient-4.x-plugin插件,
[
查看
](
../mysql-plugin
)
-
引入所需插件
```
xml
<dependency>
<groupId>
com.ai.cloud
</groupId>
<artifactId>
skywalking-httpClient-4.x-plugin-dubbox-rest-attachment
</artifactId>
<version>
{latest_version}
</version>
</dependency>
```
skywalking-collector/skywalking-sdk-plugin/httpClient-4.x-plugin-dubbox-rest-attachment/pom.xml
已删除
100644 → 0
浏览文件 @
d7fc6c62
<?xml version="1.0"?>
<project
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<groupId>
com.ai.cloud
</groupId>
<artifactId>
skywalking-sdk-plugin
</artifactId>
<version>
1.0-Final
</version>
</parent>
<artifactId>
skywalking-httpClient-4.x-plugin-dubbox-rest-attachment
</artifactId>
<packaging>
jar
</packaging>
<name>
httpClient-4.x-plugin-dubbox-rest-attachment
</name>
<url>
http://maven.apache.org
</url>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>
com.ai.cloud
</groupId>
<artifactId>
skywalking-httpClient-4.x-plugin
</artifactId>
<version>
1.0-Final
</version>
<scope>
compile
</scope>
</dependency>
<dependency>
<groupId>
org.apache.httpcomponents
</groupId>
<artifactId>
httpclient
</artifactId>
<version>
4.3
</version>
<scope>
test
</scope>
</dependency>
<!--
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.2</version>
<scope>test</scope>
</dependency>
-->
<dependency>
<groupId>
org.apache.logging.log4j
</groupId>
<artifactId>
log4j-core
</artifactId>
<version>
2.4.1
</version>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
junit
</groupId>
<artifactId>
junit
</artifactId>
<version>
4.12
</version>
<scope>
test
</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-resources-plugin
</artifactId>
<version>
2.4.3
</version>
<configuration>
<encoding>
${project.build.sourceEncoding}
</encoding>
</configuration>
</plugin>
</plugins>
</build>
<distributionManagement>
<repository>
<id>
bintray-wu-sheng-sky-walking-repository
</id>
<name>
wu-sheng-sky-walking-repository
</name>
<url>
https://api.bintray.com/maven/wu-sheng/skywalking/com.ai.cloud.skywalking-httpClient-4.x-plugin-dubbox-rest-attachment/;publish=1
</url>
</repository>
</distributionManagement>
</project>
skywalking-collector/skywalking-sdk-plugin/httpClient-4.x-plugin-dubbox-rest-attachment/src/main/java/org/skywalking/httpClient/v4/plugin/dubbox/rest/attachment/DubboxRestHeadSetterAttachment.java
已删除
100644 → 0
浏览文件 @
d7fc6c62
package
org.skywalking.httpClient.v4.plugin.dubbox.rest.attachment
;
import
org.skywalking.httpClient.v4.plugin.HttpClientExecuteInterceptor
;
import
com.ai.cloud.skywalking.plugin.interceptor.MethodMatcher
;
import
com.ai.cloud.skywalking.plugin.interceptor.enhance.ClassInstanceMethodsEnhancePluginDefine
;
import
com.ai.cloud.skywalking.plugin.interceptor.enhance.IntanceMethodsAroundInterceptor
;
public
class
DubboxRestHeadSetterAttachment
extends
ClassInstanceMethodsEnhancePluginDefine
{
/**
* this method is called as InterceptorPluginDefine<br/>
* don't return be intercepted classname, <br/>
* just run as a pre setter of attribute:HttpClientExecuteInterceptor.TRACE_HEAD_NAME
*/
@Override
public
String
getBeInterceptedClassName
()
{
HttpClientExecuteInterceptor
.
TRACE_HEAD_NAME
=
"Dubbo-Attachments"
;
return
null
;
}
@Override
public
MethodMatcher
[]
getInstanceMethodsMatchers
()
{
return
null
;
}
@Override
public
IntanceMethodsAroundInterceptor
getInstanceMethodsInterceptor
()
{
return
null
;
}
}
skywalking-collector/skywalking-sdk-plugin/httpClient-4.x-plugin-dubbox-rest-attachment/src/main/resources/skywalking-plugin.def
已删除
100644 → 0
浏览文件 @
d7fc6c62
org.skywalking.httpClient.v4.plugin.dubbox.rest.attachment.DubboxRestHeadSetterAttachment
\ No newline at end of file
skywalking-collector/skywalking-sdk-plugin/httpClient-4.x-plugin-dubbox-rest-attachment/src/test/java/test/skywalking/httpClient/v4x/plugin/dubbox/rest/attachment/TestHttpClientV43.java
已删除
100644 → 0
浏览文件 @
d7fc6c62
package
test.skywalking.httpClient.v4x.plugin.dubbox.rest.attachment
;
import
java.io.IOException
;
import
java.lang.reflect.InvocationTargetException
;
import
java.sql.SQLException
;
import
org.apache.http.HttpEntity
;
import
org.apache.http.HttpResponse
;
import
org.apache.http.client.methods.HttpGet
;
import
org.apache.http.impl.client.CloseableHttpClient
;
import
org.apache.http.impl.client.HttpClientBuilder
;
import
org.apache.http.util.EntityUtils
;
import
org.junit.Test
;
import
com.ai.cloud.skywalking.plugin.TracingBootstrap
;
public
class
TestHttpClientV43
{
@Test
public
void
testsql
()
throws
IllegalAccessException
,
IllegalArgumentException
,
InvocationTargetException
,
NoSuchMethodException
,
SecurityException
,
ClassNotFoundException
{
TracingBootstrap
.
main
(
new
String
[]
{
"test.skywalking.httpClient.v4x.plugin.dubbox.rest.attachment.TestHttpClientV43"
});
}
public
static
void
main
(
String
[]
args
)
throws
ClassNotFoundException
,
SQLException
,
InterruptedException
{
HttpClientBuilder
httpClientBuilder
=
HttpClientBuilder
.
create
();
// HttpClient
CloseableHttpClient
closeableHttpClient
=
httpClientBuilder
.
build
();
HttpGet
httpGet
=
new
HttpGet
(
"http://www.baidu.com"
);
System
.
out
.
println
(
httpGet
.
getRequestLine
());
try
{
// 执行get请求
HttpResponse
httpResponse
=
closeableHttpClient
.
execute
(
httpGet
);
// 获取响应消息实体
HttpEntity
entity
=
httpResponse
.
getEntity
();
// 响应状态
System
.
out
.
println
(
"status:"
+
httpResponse
.
getStatusLine
());
// 判断响应实体是否为空
if
(
entity
!=
null
)
{
System
.
out
.
println
(
"contentEncoding:"
+
entity
.
getContentEncoding
());
System
.
out
.
println
(
"response content:"
+
EntityUtils
.
toString
(
entity
));
}
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
finally
{
try
{
// 关闭流并释放资源
closeableHttpClient
.
close
();
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
}
Thread
.
sleep
(
5
*
1000
);
}
}
skywalking-collector/skywalking-sdk-plugin/httpClient-4.x-plugin-dubbox-rest-attachment/src/test/resources/log4j2.xml
已删除
100644 → 0
浏览文件 @
d7fc6c62
<?xml version="1.0" encoding="UTF-8"?>
<Configuration
status=
"error"
>
<Appenders>
<Console
name=
"Console"
target=
"SYSTEM_OUT"
>
<PatternLayout
pattern=
"%d [%t](%F:%L) %-5level %logger{36} - %msg%n"
/>
</Console>
<Console
name=
"Console2"
target=
"SYSTEM_OUT"
>
<PatternLayout
pattern=
"%d [%t](%F:%L) %-5level %logger{36} - %msg%n"
/>
</Console>
</Appenders>
<Loggers>
<Root
level=
"debug"
>
<AppenderRef
ref=
"Console"
/>
</Root>
</Loggers>
</Configuration>
\ No newline at end of file
skywalking-collector/skywalking-sdk-plugin/httpClient-4.x-plugin-dubbox-rest-attachment/src/test/resources/sky-walking.auth
已删除
100644 → 0
浏览文件 @
d7fc6c62
#skyWalking用户ID
skywalking.user_id=123
#skyWalking应用编码
skywalking.application_code=test
#skywalking auth的环境变量名字
skywalking.auth_system_env_name=SKYWALKING_RUN
#skywalking数据编码
skywalking.charset=UTF-8
#是否打印数据
buriedpoint.printf=true
#埋点异常的最大长度
buriedpoint.max_exception_stack_length=4000
#业务字段的最大长度
buriedpoint.businesskey_max_length=300
#过滤异常
buriedpoint.exclusive_exceptions=java.lang.RuntimeException
#最大发送者的连接数阀比例
sender.connect_percent=100
#发送服务端配置
sender.servers_addr=127.0.0.1:34000
#最大发送的副本数量
sender.max_copy_num=2
#发送的最大长度
sender.max_send_length=20000
#当没有Sender时,尝试获取sender的等待周期
sender.retry_get_sender_wait_interval=2000
#最大消费线程数
consumer.max_consumer=2
#消费者最大等待时间
consumer.max_wait_time=5
#发送失败等待时间
consumer.consumer_fail_retry_wait_interval=50
#每个Buffer的最大个数
buffer.buffer_max_size=18000
#Buffer池的最大长度
buffer.pool_size=5
#发送检查线程检查周期
senderchecker.check_polling_time=200
skywalking-collector/skywalking-sdk-plugin/pom.xml
浏览文件 @
2f86b1b3
...
...
@@ -16,7 +16,6 @@
<module>
jdbc-plugin
</module>
<module>
web-plugin
</module>
<module>
httpClient-4.x-plugin
</module>
<module>
httpClient-4.x-plugin-dubbox-rest-attachment
</module>
<module>
jedis-2.x-plugin
</module>
</modules>
<packaging>
pom
</packaging>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录