Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
SkyAPM
SkyAPM-php-sdk
提交
2c332f16
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,发现更多精彩内容 >>
提交
2c332f16
编写于
7月 29, 2019
作者:
w60514603
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove ./configure --enable-yarclient
上级
4f355c1d
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
4 addition
and
17 deletion
+4
-17
README.md
README.md
+1
-1
config.m4
config.m4
+0
-7
docs/zh/qa.md
docs/zh/qa.md
+1
-1
skywalking.c
skywalking.c
+2
-8
未找到文件。
README.md
浏览文件 @
2c332f16
...
...
@@ -22,7 +22,7 @@ Host in Beijing. Go to [demo](http://106.75.237.45:8080/).
1.
CURL
1.
PDO
1.
Mysqli
1.
Yar Client (
[
Yar
](
https://www.php.net/manual/en/book.yar.php
)
, with
`./configure --enable-yarclient=yes`
)
1.
Yar Client (
[
Yar
](
https://www.php.net/manual/en/book.yar.php
)
)
## Contact Us
*
Submit an
[
issue
](
https://github.com/SkyAPM/SkyAPM-php-sdk/issues
)
...
...
config.m4
浏览文件 @
2c332f16
PHP_ARG_ENABLE(skywalking, whether to enable skywalking support,
[ --enable-skywalking Enable skywalking support])
PHP_ARG_ENABLE(yarclient, whether to enable yar client support,
[ --enable-yarclient Enable yar client support], no, no)
if test "$PHP_SKYWALKING" != "no"; then
PHP_NEW_EXTENSION(skywalking, \
skywalking.c \
...
...
@@ -11,7 +8,3 @@ if test "$PHP_SKYWALKING" != "no"; then
encode.c \
, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
fi
if test "$PHP_YARCLIENT" != "no"; then
AC_DEFINE(ENABLE_YAR_CLIENT, 1, [Enable yar client support])
fi
docs/zh/qa.md
浏览文件 @
2c332f16
...
...
@@ -19,7 +19,7 @@
*
php curl扩展发出的请求
*
php PDO扩展发出的请求
*
php mysqli扩展发出的请求
*
php yar扩展(client)发出的请求
: (需要在编译时指定:
`./configure --enable-yarclient=yes`
来启用)
*
php yar扩展(client)发出的请求
1.
skywalking_get_trace_info()函数的返回值格式?
*
返回值为数组。如果扩展加载但是未启用(
`skywalking.enable=0`
), 则返回空数组
...
...
skywalking.c
浏览文件 @
2c332f16
...
...
@@ -351,9 +351,7 @@ ZEND_API void sky_execute_internal(zend_execute_data *execute_data, zval *return
strcat
(
operationName
,
"->"
);
strcat
(
operationName
,
function_name
);
}
}
#ifdef ENABLE_YAR_CLIENT
if
(
strcmp
(
class_name
,
"Yar_Client"
)
==
0
)
{
}
else
if
(
strcmp
(
class_name
,
"Yar_Client"
)
==
0
)
{
if
(
strcmp
(
function_name
,
"__call"
)
==
0
)
{
componentId
=
COMPONENT_GRPC
;
component
=
(
char
*
)
emalloc
(
strlen
(
"Yar_Client"
)
+
1
);
...
...
@@ -370,7 +368,6 @@ ZEND_API void sky_execute_internal(zend_execute_data *execute_data, zval *return
}
}
}
#endif
}
else
if
(
function_name
!=
NULL
)
{
if
(
strcmp
(
function_name
,
"mysqli_query"
)
==
0
)
{
class_name
=
"mysqli"
;
...
...
@@ -493,9 +490,7 @@ ZEND_API void sky_execute_internal(zend_execute_data *execute_data, zval *return
}
}
}
}
#ifdef ENABLE_YAR_CLIENT
if
(
strcmp
(
class_name
,
"Yar_Client"
)
==
0
)
{
}
else
if
(
strcmp
(
class_name
,
"Yar_Client"
)
==
0
)
{
if
(
strcmp
(
function_name
,
"__call"
)
==
0
)
{
zval
rv
,
_uri
;
ZVAL_STRING
(
&
_uri
,
"_uri"
);
...
...
@@ -510,7 +505,6 @@ ZEND_API void sky_execute_internal(zend_execute_data *execute_data, zval *return
}
}
}
#endif
zval
temp
;
zval
*
spans
=
NULL
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录