Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
润土的好友猹
SkyWalking
提交
f64d4142
S
SkyWalking
项目概览
润土的好友猹
/
SkyWalking
与 Fork 源项目一致
Fork自
apache / SkyWalking
通知
9
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,发现更多精彩内容 >>
提交
f64d4142
编写于
7月 08, 2017
作者:
wu-sheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix the span type missing.
上级
a23f8ee1
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
7 addition
and
24 deletion
+7
-24
apm-sniffer/apm-agent-core/src/main/java/org/skywalking/apm/agent/core/context/trace/AbstractSpan.java
...skywalking/apm/agent/core/context/trace/AbstractSpan.java
+0
-5
apm-sniffer/apm-agent-core/src/main/java/org/skywalking/apm/agent/core/context/trace/AbstractTracingSpan.java
...ing/apm/agent/core/context/trace/AbstractTracingSpan.java
+7
-1
apm-sniffer/apm-agent-core/src/main/java/org/skywalking/apm/agent/core/context/trace/EntrySpan.java
...rg/skywalking/apm/agent/core/context/trace/EntrySpan.java
+0
-4
apm-sniffer/apm-agent-core/src/main/java/org/skywalking/apm/agent/core/context/trace/ExitSpan.java
...org/skywalking/apm/agent/core/context/trace/ExitSpan.java
+0
-6
apm-sniffer/apm-agent-core/src/main/java/org/skywalking/apm/agent/core/context/trace/LocalSpan.java
...rg/skywalking/apm/agent/core/context/trace/LocalSpan.java
+0
-4
apm-sniffer/apm-agent-core/src/main/java/org/skywalking/apm/agent/core/context/trace/NoopSpan.java
...org/skywalking/apm/agent/core/context/trace/NoopSpan.java
+0
-4
未找到文件。
apm-sniffer/apm-agent-core/src/main/java/org/skywalking/apm/agent/core/context/trace/AbstractSpan.java
浏览文件 @
f64d4142
...
@@ -50,11 +50,6 @@ public interface AbstractSpan {
...
@@ -50,11 +50,6 @@ public interface AbstractSpan {
*/
*/
boolean
isEntry
();
boolean
isEntry
();
/**
* @return true if the actual span is a local span.
*/
boolean
isLocal
();
/**
/**
* @return true if the actual span is an exit span.
* @return true if the actual span is an exit span.
*/
*/
...
...
apm-sniffer/apm-agent-core/src/main/java/org/skywalking/apm/agent/core/context/trace/AbstractTracingSpan.java
浏览文件 @
f64d4142
...
@@ -219,7 +219,13 @@ public abstract class AbstractTracingSpan implements AbstractSpan {
...
@@ -219,7 +219,13 @@ public abstract class AbstractTracingSpan implements AbstractSpan {
}
else
{
}
else
{
spanBuilder
.
setOperationName
(
operationName
);
spanBuilder
.
setOperationName
(
operationName
);
}
}
spanBuilder
.
setSpanType
(
SpanType
.
Entry
);
if
(
isEntry
())
{
spanBuilder
.
setSpanType
(
SpanType
.
Entry
);
}
else
if
(
isExit
())
{
spanBuilder
.
setSpanType
(
SpanType
.
Exit
);
}
else
{
spanBuilder
.
setSpanType
(
SpanType
.
Local
);
}
spanBuilder
.
setSpanLayerValue
(
this
.
layer
.
getCode
());
spanBuilder
.
setSpanLayerValue
(
this
.
layer
.
getCode
());
if
(
componentId
!=
DictionaryUtil
.
nullValue
())
{
if
(
componentId
!=
DictionaryUtil
.
nullValue
())
{
spanBuilder
.
setComponentId
(
componentId
);
spanBuilder
.
setComponentId
(
componentId
);
...
...
apm-sniffer/apm-agent-core/src/main/java/org/skywalking/apm/agent/core/context/trace/EntrySpan.java
浏览文件 @
f64d4142
...
@@ -98,10 +98,6 @@ public class EntrySpan extends AbstractTracingSpan {
...
@@ -98,10 +98,6 @@ public class EntrySpan extends AbstractTracingSpan {
return
true
;
return
true
;
}
}
@Override
public
boolean
isLocal
()
{
return
false
;
}
@Override
public
boolean
isExit
()
{
@Override
public
boolean
isExit
()
{
return
false
;
return
false
;
}
}
...
...
apm-sniffer/apm-agent-core/src/main/java/org/skywalking/apm/agent/core/context/trace/ExitSpan.java
浏览文件 @
f64d4142
...
@@ -2,7 +2,6 @@ package org.skywalking.apm.agent.core.context.trace;
...
@@ -2,7 +2,6 @@ package org.skywalking.apm.agent.core.context.trace;
import
org.skywalking.apm.agent.core.dictionary.DictionaryUtil
;
import
org.skywalking.apm.agent.core.dictionary.DictionaryUtil
;
import
org.skywalking.apm.network.proto.SpanObject
;
import
org.skywalking.apm.network.proto.SpanObject
;
import
org.skywalking.apm.network.proto.SpanType
;
import
org.skywalking.apm.network.trace.component.Component
;
import
org.skywalking.apm.network.trace.component.Component
;
/**
/**
...
@@ -114,7 +113,6 @@ public class ExitSpan extends AbstractTracingSpan {
...
@@ -114,7 +113,6 @@ public class ExitSpan extends AbstractTracingSpan {
}
else
{
}
else
{
spanBuilder
.
setPeer
(
peer
);
spanBuilder
.
setPeer
(
peer
);
}
}
spanBuilder
=
spanBuilder
.
setSpanType
(
SpanType
.
Exit
);
return
spanBuilder
;
return
spanBuilder
;
}
}
...
@@ -130,10 +128,6 @@ public class ExitSpan extends AbstractTracingSpan {
...
@@ -130,10 +128,6 @@ public class ExitSpan extends AbstractTracingSpan {
return
false
;
return
false
;
}
}
@Override
public
boolean
isLocal
()
{
return
false
;
}
@Override
public
boolean
isExit
()
{
@Override
public
boolean
isExit
()
{
return
true
;
return
true
;
}
}
...
...
apm-sniffer/apm-agent-core/src/main/java/org/skywalking/apm/agent/core/context/trace/LocalSpan.java
浏览文件 @
f64d4142
...
@@ -37,10 +37,6 @@ public class LocalSpan extends AbstractTracingSpan {
...
@@ -37,10 +37,6 @@ public class LocalSpan extends AbstractTracingSpan {
return
false
;
return
false
;
}
}
@Override
public
boolean
isLocal
()
{
return
true
;
}
@Override
public
boolean
isExit
()
{
@Override
public
boolean
isExit
()
{
return
false
;
return
false
;
}
}
...
...
apm-sniffer/apm-agent-core/src/main/java/org/skywalking/apm/agent/core/context/trace/NoopSpan.java
浏览文件 @
f64d4142
...
@@ -48,10 +48,6 @@ public class NoopSpan implements AbstractSpan {
...
@@ -48,10 +48,6 @@ public class NoopSpan implements AbstractSpan {
return
false
;
return
false
;
}
}
@Override
public
boolean
isLocal
()
{
return
false
;
}
@Override
public
boolean
isExit
()
{
@Override
public
boolean
isExit
()
{
return
false
;
return
false
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录