Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
SkyAPM
SkyAPM-php-sdk
提交
fb4e2299
S
SkyAPM-php-sdk
项目概览
SkyAPM
/
SkyAPM-php-sdk
通知
14
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SkyAPM-php-sdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
fb4e2299
编写于
2月 11, 2020
作者:
何
何延龙
提交者:
GitHub
2月 11, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #183 from jmjoy/master
Fix the empty field bug in span refs for skywalking v6.
上级
074fb3e3
f85ea902
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
9 addition
and
7 deletion
+9
-7
agent/service/trace.go
agent/service/trace.go
+5
-4
skywalking.c
skywalking.c
+4
-3
未找到文件。
agent/service/trace.go
浏览文件 @
fb4e2299
...
...
@@ -6,11 +6,12 @@ import (
"agent/agent/pb/common"
"context"
"encoding/json"
"github.com/golang/protobuf/proto"
"io"
"strconv"
"strings"
"time"
"github.com/golang/protobuf/proto"
)
type
upstreamSegment
struct
{
...
...
@@ -322,21 +323,21 @@ func buildRefs6(span *agent2.SpanObjectV2, refs []ref) {
}
if
rev
.
NetworkAddress
[
0
:
1
]
==
"#"
{
reference
.
NetworkAddress
=
rev
.
NetworkAddress
reference
.
NetworkAddress
=
rev
.
NetworkAddress
[
1
:
]
}
else
{
i
,
_
:=
strconv
.
ParseInt
(
rev
.
NetworkAddress
,
10
,
64
)
reference
.
NetworkAddressId
=
int32
(
i
)
}
if
rev
.
EntryServiceName
[
0
:
1
]
==
"#"
{
reference
.
EntryEndpoint
=
rev
.
EntryServiceName
reference
.
EntryEndpoint
=
rev
.
EntryServiceName
[
1
:
]
}
else
{
i
,
_
:=
strconv
.
ParseInt
(
rev
.
EntryServiceName
,
10
,
64
)
reference
.
EntryEndpointId
=
int32
(
i
)
}
if
rev
.
ParentServiceName
[
0
:
1
]
==
"#"
{
reference
.
ParentEndpoint
=
rev
.
ParentServiceName
reference
.
ParentEndpoint
=
rev
.
ParentServiceName
[
1
:
]
}
else
{
i
,
_
:=
strconv
.
ParseInt
(
rev
.
ParentServiceName
,
10
,
64
)
reference
.
ParentEndpointId
=
int32
(
i
)
...
...
skywalking.c
浏览文件 @
fb4e2299
...
...
@@ -1257,7 +1257,7 @@ static void generate_context() {
add_assoc_long
(
&
SKYWALKING_G
(
context
),
"parentSpanId"
,
zend_atol
(
Z_STRVAL_P
(
sw6_3
),
sizeof
(
Z_STRVAL_P
(
sw6_3
))
-
1
));
add_assoc_long
(
&
SKYWALKING_G
(
context
),
"parentApplicationInstance"
,
zend_atol
(
Z_STRVAL_P
(
sw6_4
),
sizeof
(
Z_STRVAL_P
(
sw6_4
))
-
1
));
add_assoc_long
(
&
SKYWALKING_G
(
context
),
"entryApplicationInstance"
,
zend_atol
(
Z_STRVAL_P
(
sw6_5
),
sizeof
(
Z_STRVAL_P
(
sw6_5
))
-
1
));
add_assoc_str
(
&
SKYWALKING_G
(
context
),
"networkAddress"
,
trim_sharp
(
&
sw6_6decode
));
add_assoc_str
ing
(
&
SKYWALKING_G
(
context
),
"networkAddress"
,
Z_STRVAL
(
sw6_6decode
));
if
(
sw6_7
!=
NULL
&&
sw6_8
!=
NULL
)
{
zval
sw6_7decode
;
...
...
@@ -1265,8 +1265,9 @@ static void generate_context() {
zval_b64_decode
(
&
sw6_7decode
,
Z_STRVAL_P
(
sw6_7
));
zval_b64_decode
(
&
sw6_8decode
,
Z_STRVAL_P
(
sw6_8
));
add_assoc_str
(
&
SKYWALKING_G
(
context
),
"entryOperationName"
,
trim_sharp
(
&
sw6_7decode
));
add_assoc_str
(
&
SKYWALKING_G
(
context
),
"parentOperationName"
,
trim_sharp
(
&
sw6_8decode
));
add_assoc_string
(
&
SKYWALKING_G
(
context
),
"entryOperationName"
,
Z_STRVAL
(
sw6_7decode
));
add_assoc_string
(
&
SKYWALKING_G
(
context
),
"parentOperationName"
,
Z_STRVAL
(
sw6_8decode
));
zval_dtor
(
&
sw6_7decode
);
zval_dtor
(
&
sw6_8decode
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录