Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
SkyWalking
提交
069f1182
S
SkyWalking
项目概览
apache
/
SkyWalking
上一次同步 1 年多
通知
302
Star
21345
Fork
6091
代码
文件
提交
分支
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,发现更多精彩内容 >>
提交
069f1182
编写于
12月 20, 2015
作者:
wu-sheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.移除Spring-plugin无用的target目录
2.修改部分编译错误
上级
6f2b1bdd
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
24 addition
and
75 deletion
+24
-75
skywalking-api/src/main/java/com/ai/cloud/skywalking/buriedpoint/ThreadBuriedPointSender.java
...cloud/skywalking/buriedpoint/ThreadBuriedPointSender.java
+2
-2
skywalking-sdk-plugin/spring-plugin/src/main/java/com/ai/cloud/skywalking/plugin/spring/TracingClassBean.java
...m/ai/cloud/skywalking/plugin/spring/TracingClassBean.java
+21
-21
skywalking-sdk-plugin/spring-plugin/src/main/java/com/ai/cloud/skywalking/plugin/spring/TracingEnhanceProcessor.java
...oud/skywalking/plugin/spring/TracingEnhanceProcessor.java
+1
-1
skywalking-sdk-plugin/spring-plugin/target/classes/META-INF/skywalking.xsd
...ugin/spring-plugin/target/classes/META-INF/skywalking.xsd
+0
-49
skywalking-sdk-plugin/spring-plugin/target/classes/META-INF/spring.handlers
...gin/spring-plugin/target/classes/META-INF/spring.handlers
+0
-1
skywalking-sdk-plugin/spring-plugin/target/classes/META-INF/spring.schemas
...ugin/spring-plugin/target/classes/META-INF/spring.schemas
+0
-1
未找到文件。
skywalking-api/src/main/java/com/ai/cloud/skywalking/buriedpoint/ThreadBuriedPointSender.java
浏览文件 @
069f1182
...
...
@@ -28,11 +28,11 @@ public class ThreadBuriedPointSender implements IBuriedPointSender {
// 从ThreadLocal中取出上下文
final
Span
parentSpanData
=
Context
.
getLastSpan
();
if
(
parentSpanData
==
null
)
{
spanData
=
new
Span
(
TraceIdGenerator
.
generate
(),
Config
.
SkyWalking
.
APPLICATION_
CODE
,
spanData
=
new
Span
(
TraceIdGenerator
.
generate
(),
Config
.
SkyWalking
.
APPLICATION_
ID
,
Config
.
SkyWalking
.
USER_ID
);
}
else
{
// 如果不为空,则将当前的Context存放到上下文
spanData
=
new
Span
(
parentSpanData
.
getTraceId
(),
Config
.
SkyWalking
.
APPLICATION_
CODE
,
spanData
=
new
Span
(
parentSpanData
.
getTraceId
(),
Config
.
SkyWalking
.
APPLICATION_
ID
,
Config
.
SkyWalking
.
USER_ID
);
spanData
.
setParentLevel
(
parentSpanData
.
getParentLevel
()
+
"."
+
parentSpanData
.
getLevelId
());
spanData
.
setLevelId
(
threadSeqId
);
...
...
skywalking-sdk-plugin/spring-plugin/src/main/java/com/ai/cloud/skywalking/plugin/spring/TracingClassBean.java
浏览文件 @
069f1182
package
com.ai.cloud.skywalking.plugin.spring
;
public
class
TracingClassBean
{
private
String
packageName
;
private
String
className
;
private
String
method
;
private
String
packageName
=
""
;
private
String
className
=
""
;
private
String
method
=
""
;
public
String
getPackageName
()
{
return
packageName
;
}
public
String
getPackageName
()
{
return
packageName
;
}
public
void
setPackageName
(
String
packageName
)
{
this
.
packageName
=
packageName
;
}
public
void
setPackageName
(
String
packageName
)
{
this
.
packageName
=
packageName
;
}
public
String
getClassName
()
{
return
className
;
}
public
String
getClassName
()
{
return
className
;
}
public
void
setClassName
(
String
className
)
{
this
.
className
=
className
;
}
public
void
setClassName
(
String
className
)
{
this
.
className
=
className
;
}
public
String
getMethod
()
{
return
method
;
}
public
String
getMethod
()
{
return
method
;
}
public
void
setMethod
(
String
method
)
{
this
.
method
=
method
;
}
public
void
setMethod
(
String
method
)
{
this
.
method
=
method
;
}
}
skywalking-sdk-plugin/spring-plugin/src/main/java/com/ai/cloud/skywalking/plugin/spring/TracingEnhanceProcessor.java
浏览文件 @
069f1182
package
com.ai.
spring.plugin
;
package
com.ai.
cloud.skywalking.plugin.spring
;
import
com.ai.cloud.skywalking.buriedpoint.LocalBuriedPointSender
;
import
com.ai.cloud.skywalking.model.Identification
;
...
...
skywalking-sdk-plugin/spring-plugin/target/classes/META-INF/skywalking.xsd
已删除
100644 → 0
浏览文件 @
6f2b1bdd
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xsd:schema
xmlns=
"http://code.alibabatech.com/schema/dubbo"
xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"
targetNamespace=
"http://code.alibabatech.com/schema/dubbo"
>
<xsd:import
namespace=
"http://www.w3.org/XML/1998/namespace"
/>
<xsd:import
namespace=
"http://www.springframework.org/schema/beans"
/>
<xsd:import
namespace=
"http://www.springframework.org/schema/tool"
/>
<xsd:annotation>
<xsd:documentation>
<![CDATA[ Namespace support for the skywalking tracing class. ]]>
</xsd:documentation>
</xsd:annotation>
<xsd:complexType
name=
"tracingClassType"
>
<xsd:attribute
name=
"name"
type=
"xsd:string"
>
<xsd:annotation>
<xsd:documentation>
<![CDATA[ The class name that need to tracing. ]]>
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute
name=
"method"
type=
"xsd:wildcard"
>
<xsd:annotation>
<xsd:documentation>
<![CDATA[ The method name that need to tracing. ]]]>
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:complexType
name=
"tracingPackageType"
>
<xsd:attribute
name=
"name"
type=
"xsd:string"
>
<xsd:annotation>
<xsd:documentation>
<![CDATA[]]>
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:element
name=
"tracing-class"
type=
"tracingClassType"
>
<xsd:annotation>
<xsd:documentation>
<![CDATA[ The service argument config ]]>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element
name=
"tracing-package"
type=
"tracingPackageType"
>
<xsd:annotation>
<xsd:documentation>
<![CDATA[ The service argument config ]]>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element
name=
"tracing"
/>
</xsd:schema>
\ No newline at end of file
skywalking-sdk-plugin/spring-plugin/target/classes/META-INF/spring.handlers
已删除
100644 → 0
浏览文件 @
6f2b1bdd
http\://cloud.asiainfo.com/schema/skywalking=com.ai.cloud.skywalking.plugin.spring.schema.SWNamespaceHandler
\ No newline at end of file
skywalking-sdk-plugin/spring-plugin/target/classes/META-INF/spring.schemas
已删除
100644 → 0
浏览文件 @
6f2b1bdd
http\://cloud.asiainfo.com/schema/skywalking/skywalking.xsd=META-INF/skywalking.xsd
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录