Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
SkyAPM
SkyAPM-php-sdk
提交
67377034
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 搜索 >>
未验证
提交
67377034
编写于
4月 22, 2019
作者:
何
何延龙
提交者:
GitHub
4月 22, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #56 from goerzh/fetch-traceid-func
Fetch traceid func
上级
ced1274d
a167c4c0
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
10 addition
and
6 deletion
+10
-6
skywalking.c
skywalking.c
+5
-1
src/report/Makefile
src/report/Makefile
+5
-5
未找到文件。
skywalking.c
浏览文件 @
67377034
...
...
@@ -84,14 +84,18 @@ PHP_INI_END()
/* }}} */
PHP_FUNCTION
(
get_traceId
)
{
zval
*
distributedTraceId
=
zend_hash_str_find
(
Z_ARRVAL
(
SKYWALKING_G
(
context
)),
"distributedTraceId"
,
sizeof
(
"distributedTraceId"
)
-
1
);
RETURN_STRING
(
Z_STRVAL_P
(
distributedTraceId
));
}
/* {{{ skywalking_functions[]
*
* Every user visible function must have an entry in skywalking_functions[].
*/
const
zend_function_entry
skywalking_functions
[]
=
{
/* For testing, remove later. */
PHP_FE
(
get_traceId
,
NULL
)
PHP_FE_END
/* Must be the last line in skywalking_functions[] */
};
/* }}} */
...
...
src/report/Makefile
浏览文件 @
67377034
...
...
@@ -21,7 +21,7 @@ CPPFLAGS += `pkg-config --cflags protobuf grpc`
CXXFLAGS
+=
-std
=
c++11
CXXFLAGS
+=
-I
..
-I
../grpc
ifeq
($(SYSTEM),Darwin)
LDFLAGS
+=
-L
/usr/local/lib
`
pkg-config
--libs
protobuf grpc++
`
\
LDFLAGS
+=
-L
deps
/boost/stage/lib
-L
/usr/local/lib
`
pkg-config
--libs
protobuf grpc++
`
\
-lgrpc
++_reflection
\
-ldl
\
-lboost_regex
...
...
@@ -36,11 +36,11 @@ GRPC_CPP_PLUGIN = grpc_cpp_plugin
GRPC_CPP_PLUGIN_PATH
?=
`
which
$(GRPC_CPP_PLUGIN)
`
all
:
system-check report_client
all
:
system-check
boost
report_client
#
boost:
#
cd deps/boost && ./bootstrap.sh && \
#
./b2 stage --with-regex link=static runtime-link=shared threading=multi
boost
:
cd
deps/boost
&&
./bootstrap.sh
&&
\
./b2 stage
--with-regex
link
=
static runtime-link
=
shared
threading
=
multi
OBJS
=
../grpc/language-agent-v2/.libs/trace.o ../grpc/language-agent-v2/.libs/trace-grpc.o ../grpc/register/.libs/InstancePing.o
\
../grpc/register/.libs/InstancePing-grpc.o ../grpc/common/.libs/common.o ../grpc/common/.libs/common-grpc.o
\
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录