Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
SkyAPM
SkyAPM-php-sdk
提交
2d530b64
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,发现更多精彩内容 >>
提交
2d530b64
编写于
12月 10, 2018
作者:
H
heyanlong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix bugs
上级
98d42ad4
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
5 addition
and
43 deletion
+5
-43
README.md
README.md
+2
-0
sky-php7ext/config.m4
sky-php7ext/config.m4
+2
-42
sky-php7ext/src/report/report_client.cpp
sky-php7ext/src/report/report_client.cpp
+1
-1
未找到文件。
README.md
浏览文件 @
2d530b64
...
...
@@ -13,6 +13,8 @@ SkyWalking APM : https://github.com/apache/incubator-skywalking
*
You need to add business codes to monnitor.
# Dep
*
libuuid
*
gcc 4.9+
*
pkg-config
*
grpc
*
protoc
...
...
sky-php7ext/config.m4
浏览文件 @
2d530b64
...
...
@@ -29,51 +29,11 @@ if test -z "$PHP_DEBUG"; then
fi
if test "$PHP_SKYWALKING" != "no"; then
dnl Write more examples of tests here...
dnl # --with-skywalking -> check with-path
dnl SEARCH_PATH="/usr/local /usr" # you might want to change this
dnl SEARCH_FOR="/include/skywalking.h" # you most likely want to change this
dnl if test -r $PHP_SKYWALKING/$SEARCH_FOR; then # path given as parameter
dnl SKYWALKING_DIR=$PHP_SKYWALKING
dnl else # search default path list
dnl AC_MSG_CHECKING([for skywalking files in default path])
dnl for i in $SEARCH_PATH ; do
dnl if test -r $i/$SEARCH_FOR; then
dnl SKYWALKING_DIR=$i
dnl AC_MSG_RESULT(found in $i)
dnl fi
dnl done
dnl fi
dnl
dnl if test -z "$SKYWALKING_DIR"; then
dnl AC_MSG_RESULT([not found])
dnl AC_MSG_ERROR([Please reinstall the skywalking distribution])
dnl fi
dnl # --with-skywalking -> add include path
dnl PHP_ADD_INCLUDE($SKYWALKING_DIR/include)
dnl # --with-skywalking -> check for lib and symbol presence
dnl LIBNAME=skywalking # you may want to change this
dnl LIBSYMBOL=skywalking # you most likely want to change this
dnl PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOL,
dnl [
dnl PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $SKYWALKING_DIR/$PHP_LIBDIR, SKYWALKING_SHARED_LIBADD)
dnl AC_DEFINE(HAVE_SKYWALKINGLIB,1,[ ])
dnl ],[
dnl AC_MSG_ERROR([wrong skywalking lib version or lib not found])
dnl ],[
dnl -L$SKYWALKING_DIR/$PHP_LIBDIR -lm
dnl ])
dnl
dnl PHP_SUBST(SKYWALKING_SHARED_LIBADD)
CXXFLAGS+=" -std=c++11 "
PHP_REQUIRE_CXX()
KYWALKING_LIBS=" -L/usr/local/lib "
KYWALKING_LIBS+=`pkg-config --libs protobuf grpc++ grpc`
KYWALKING_LIBS=`pkg-config --cflags --libs uuid protobuf grpc++ grpc`
KYWALKING_LIBS+=" -Wl,--no-as-needed -lgrpc++_reflection -Wl,--as-needed -ldl "
AC_OUTPUT_COMMANDS(
...
...
sky-php7ext/src/report/report_client.cpp
浏览文件 @
2d530b64
...
...
@@ -85,7 +85,7 @@ int main(int argc, char **argv) {
}
}
if
(
argc
==
0
)
{
if
(
argc
==
1
)
{
std
::
cout
<<
"report_client grpc log_path"
<<
std
::
endl
;
std
::
cout
<<
"e.g. report_client 120.0.0.1:11800 /tmp"
<<
std
::
endl
;
return
0
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录