Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
阿信在这里
SkyWalking
提交
2c3e3ce3
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,发现更多精彩内容 >>
提交
2c3e3ce3
编写于
12月 16, 2016
作者:
A
ascrutae
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复部分问题
上级
e04fbee8
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
140 addition
and
2 deletion
+140
-2
skywalking-application-toolkit/pom.xml
skywalking-application-toolkit/pom.xml
+1
-0
skywalking-application-toolkit/skywalking-toolkit-trace-context/pom.xml
...lication-toolkit/skywalking-toolkit-trace-context/pom.xml
+16
-0
skywalking-application-toolkit/skywalking-toolkit-trace-context/src/main/java/com/a/eye/skywalking/toolkit/trace/TraceContext.java
...java/com/a/eye/skywalking/toolkit/trace/TraceContext.java
+11
-0
skywalking-sniffer/skywalking-agent/pom.xml
skywalking-sniffer/skywalking-agent/pom.xml
+6
-0
skywalking-sniffer/skywalking-toolkit-activation/pom.xml
skywalking-sniffer/skywalking-toolkit-activation/pom.xml
+1
-0
skywalking-sniffer/skywalking-toolkit-activation/skywalking-toolkit-log4j-2.x-activation/src/main/java/com/a/eye/skywalking/toolkit/activation/log/log4j/v2/x/Log4j2OutputAppenderActivation.java
...vation/log/log4j/v2/x/Log4j2OutputAppenderActivation.java
+1
-1
skywalking-sniffer/skywalking-toolkit-activation/skywalking-toolkit-trace-context-activation/pom.xml
...ation/skywalking-toolkit-trace-context-activation/pom.xml
+28
-0
skywalking-sniffer/skywalking-toolkit-activation/skywalking-toolkit-trace-context-activation/src/main/java/com/a/eye/skywalking/toolkit/activation/trace/TraceContextActivation.java
...king/toolkit/activation/trace/TraceContextActivation.java
+42
-0
skywalking-sniffer/skywalking-toolkit-activation/skywalking-toolkit-trace-context-activation/src/main/java/com/a/eye/skywalking/toolkit/activation/trace/TraceContextInterceptor.java
...ing/toolkit/activation/trace/TraceContextInterceptor.java
+32
-0
skywalking-sniffer/skywalking-toolkit-activation/skywalking-toolkit-trace-context-activation/src/main/resources/skywalking-plugin.def
...ntext-activation/src/main/resources/skywalking-plugin.def
+1
-0
skywalking-storage-center/skywalking-storage/src/test/java/com/a/eye/skywalking/storage/boot/ElasticBootstrapTest.java
...m/a/eye/skywalking/storage/boot/ElasticBootstrapTest.java
+1
-1
未找到文件。
skywalking-application-toolkit/pom.xml
浏览文件 @
2c3e3ce3
...
...
@@ -17,5 +17,6 @@
<module>
skywalking-toolkit-log4j-1.x
</module>
<module>
skywalking-toolkit-log4j-2.x
</module>
<module>
skywalking-toolkit-logback-1.x
</module>
<module>
skywalking-toolkit-trace-context
</module>
</modules>
</project>
skywalking-application-toolkit/skywalking-toolkit-trace-context/pom.xml
0 → 100644
浏览文件 @
2c3e3ce3
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
skywalking-application-toolkit
</artifactId>
<groupId>
com.a.eye
</groupId>
<version>
2.0-2016
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
skywalking-toolkit-trace-context
</artifactId>
<packaging>
jar
</packaging>
<name>
skywalking-toolkit-trace-context
</name>
<url>
http://maven.apache.org
</url>
</project>
skywalking-application-toolkit/skywalking-toolkit-trace-context/src/main/java/com/a/eye/skywalking/toolkit/trace/TraceContext.java
0 → 100644
浏览文件 @
2c3e3ce3
package
com.a.eye.skywalking.toolkit.trace
;
/**
* Created by xin on 2016/12/15.
*/
public
class
TraceContext
{
public
static
String
traceId
()
{
return
""
;
}
}
skywalking-sniffer/skywalking-agent/pom.xml
浏览文件 @
2c3e3ce3
...
...
@@ -75,6 +75,12 @@
<artifactId>
skywalking-toolkit-logback-1.x-activation
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
com.a.eye
</groupId>
<artifactId>
skywalking-toolkit-trace-context-activation
</artifactId>
<version>
${project.version}
</version>
</dependency>
</dependencies>
<build>
<finalName>
${artifactId}
</finalName>
...
...
skywalking-sniffer/skywalking-toolkit-activation/pom.xml
浏览文件 @
2c3e3ce3
...
...
@@ -13,6 +13,7 @@
<module>
skywalking-toolkit-log4j-1.x-activation
</module>
<module>
skywalking-toolkit-log4j-2.x-activation
</module>
<module>
skywalking-toolkit-logback-1.x-activation
</module>
<module>
skywalking-toolkit-trace-context-activation
</module>
</modules>
<artifactId>
skywalking-toolkit-activation
</artifactId>
...
...
skywalking-sniffer/skywalking-toolkit-activation/skywalking-toolkit-log4j-2.x-activation/src/main/java/com/a/eye/skywalking/toolkit/activation/log/log4j/v2/x/Log4j2OutputAppenderActivation.java
浏览文件 @
2c3e3ce3
...
...
@@ -24,7 +24,7 @@ public class Log4j2OutputAppenderActivation extends ClassStaticMethodsEnhancePlu
@Override
public
String
getMethodsInterceptor
()
{
return
"com.a.eye.skywalking.toolkit.log.log4j.v2.x.PrintTraceIdInterceptor"
;
return
"com.a.eye.skywalking.toolkit.
activation.
log.log4j.v2.x.PrintTraceIdInterceptor"
;
}
}};
}
...
...
skywalking-sniffer/skywalking-toolkit-activation/skywalking-toolkit-trace-context-activation/pom.xml
0 → 100644
浏览文件 @
2c3e3ce3
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
skywalking-application-toolkit
</artifactId>
<groupId>
com.a.eye
</groupId>
<version>
2.0-2016
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
skywalking-toolkit-trace-context-activation
</artifactId>
<packaging>
jar
</packaging>
<name>
skywalking-toolkit-trace-context-activation
</name>
<url>
http://maven.apache.org
</url>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>
com.a.eye
</groupId>
<artifactId>
skywalking-api
</artifactId>
<version>
${project.version}
</version>
</dependency>
</dependencies>
</project>
skywalking-sniffer/skywalking-toolkit-activation/skywalking-toolkit-trace-context-activation/src/main/java/com/a/eye/skywalking/toolkit/activation/trace/TraceContextActivation.java
0 → 100644
浏览文件 @
2c3e3ce3
package
com.a.eye.skywalking.toolkit.activation.trace
;
import
com.a.eye.skywalking.plugin.interceptor.ConstructorInterceptPoint
;
import
com.a.eye.skywalking.plugin.interceptor.InstanceMethodsInterceptPoint
;
import
com.a.eye.skywalking.plugin.interceptor.MethodMatcher
;
import
com.a.eye.skywalking.plugin.interceptor.StaticMethodsInterceptPoint
;
import
com.a.eye.skywalking.plugin.interceptor.enhance.ClassStaticMethodsEnhancePluginDefine
;
import
com.a.eye.skywalking.plugin.interceptor.matcher.SimpleMethodMatcher
;
/**
* Created by xin on 2016/12/15.
*/
public
class
TraceContextActivation
extends
ClassStaticMethodsEnhancePluginDefine
{
@Override
protected
String
enhanceClassName
()
{
return
"com.a.eye.skywalking.toolkit.trace.TraceContext"
;
}
@Override
protected
ConstructorInterceptPoint
[]
getConstructorsInterceptPoints
()
{
return
new
ConstructorInterceptPoint
[
0
];
}
@Override
protected
StaticMethodsInterceptPoint
[]
getStaticMethodsInterceptPoints
()
{
return
new
StaticMethodsInterceptPoint
[]{
new
StaticMethodsInterceptPoint
()
{
@Override
public
MethodMatcher
[]
getMethodsMatchers
()
{
return
new
MethodMatcher
[]{
new
SimpleMethodMatcher
(
"traceId"
)
};
}
@Override
public
String
getMethodsInterceptor
()
{
return
"com.a.eye.skywalking.toolkit.activation.trace.TraceContextInterceptor"
;
}
}
};
}
}
skywalking-sniffer/skywalking-toolkit-activation/skywalking-toolkit-trace-context-activation/src/main/java/com/a/eye/skywalking/toolkit/activation/trace/TraceContextInterceptor.java
0 → 100644
浏览文件 @
2c3e3ce3
package
com.a.eye.skywalking.toolkit.activation.trace
;
import
com.a.eye.skywalking.api.Tracing
;
import
com.a.eye.skywalking.logging.api.ILog
;
import
com.a.eye.skywalking.logging.api.LogManager
;
import
com.a.eye.skywalking.plugin.interceptor.enhance.MethodInterceptResult
;
import
com.a.eye.skywalking.plugin.interceptor.enhance.MethodInvokeContext
;
import
com.a.eye.skywalking.plugin.interceptor.enhance.StaticMethodInvokeContext
;
import
com.a.eye.skywalking.plugin.interceptor.enhance.StaticMethodsAroundInterceptor
;
/**
* Created by xin on 2016/12/15.
*/
public
class
TraceContextInterceptor
implements
StaticMethodsAroundInterceptor
{
private
ILog
logger
=
LogManager
.
getLogger
(
TraceContextInterceptor
.
class
);
@Override
public
void
beforeMethod
(
StaticMethodInvokeContext
interceptorContext
,
MethodInterceptResult
result
)
{
}
@Override
public
Object
afterMethod
(
StaticMethodInvokeContext
interceptorContext
,
Object
ret
)
{
return
Tracing
.
getTraceId
();
}
@Override
public
void
handleMethodException
(
Throwable
t
,
MethodInvokeContext
interceptorContext
)
{
logger
.
error
(
"Failed to get trace Id."
,
t
);
}
}
skywalking-sniffer/skywalking-toolkit-activation/skywalking-toolkit-trace-context-activation/src/main/resources/skywalking-plugin.def
0 → 100644
浏览文件 @
2c3e3ce3
com.a.eye.skywalking.toolkit.activation.trace.TraceContextActivation
\ No newline at end of file
skywalking-storage-center/skywalking-storage/src/test/java/com/a/eye/skywalking/storage/boot/ElasticBootstrapTest.java
浏览文件 @
2c3e3ce3
...
...
@@ -15,7 +15,7 @@ public class ElasticBootstrapTest {
@Test
public
void
fetchElasticHomeWithoutProperty
()
{
ElasticBootstrap
booter
=
new
ElasticBootstrap
();
assertEquals
(
"Elastic Home :"
,
booter
.
fetchElasticHome
(),
bastPath
+
"
install
/data/index"
);
assertEquals
(
"Elastic Home :"
,
booter
.
fetchElasticHome
(),
bastPath
+
"
skywalking-storage
/data/index"
);
}
@Test
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录