Comments (3)
有能力改可以从tideways的扩展里搬过来。tideway里有。
cb = tw_trace_callback_soap_client_dorequest;
register_trace_callback("SoapClient::__doRequest", cb);
long tw_trace_callback_soap_client_dorequest(char *symbol, zend_execute_data *data TSRMLS_DC)
{
if (ZEND_CALL_NUM_ARGS(data) < 2) {
return -1;
}
char *summary;
zval *argument = ZEND_CALL_ARG(data, 2);
long idx = -1;
if (Z_TYPE_P(argument) != IS_STRING) {
return idx;
}
idx = tw_span_create("http", 4 TSRMLS_CC);
tw_span_annotate_string(idx, "url", Z_STRVAL_P(argument), 1 TSRMLS_CC);
tw_span_annotate_string(idx, "method", "POST", 1 TSRMLS_CC);
tw_span_annotate_string(idx, "service", "soap", 1 TSRMLS_CC);
return idx;
}
from molten.
@reynaldliu 支持大家添加自己关心的扩展拦截器, molten中有很多其他扩展的例子, 可以参照这些例子自行添加~
from molten.
现阶段不支持。
from molten.
Related Issues (20)
- http://127.0.0.1:9411/zipkin/, 看不到任何链路信息 HOT 3
- PHP 7.4 support HOT 1
- php7.0.26 molten_set_traceid报错
- span name 不是很明确,是否可以支持自定义
- CentOS7 phpize报错 HOT 3
- CLI模式可以正常上报数据,SAPI模式(php-fpm)不上报 HOT 3
- 日志这种分配栈内存的方式,导致在cli模式下出现段错误,OOM错误
- ElasticSearch的GET请求body被丢弃。
- 微信群二维码已经过期了可以更新下吗? HOT 2
- 安装时执行make报错 HOT 1
- phaclon molten_set_traceid($trace_id) error HOT 1
- mac os 10.13.6 编译安装make 报错 unknown type name 'ulong' HOT 1
- 是否支持修改或者添加span的tags,logs等字段的值?
- 是否支持phalcon+swoole模式的应用?是否与其他扩展冲突? HOT 3
- PHP7.4 Install Molten Extension compiler error HOT 1
- php7.4 make install error HOT 1
- php5.6,能看curl,file_get_contents信息,为什么mysql,memcached 等信息看不到 HOT 2
- php74 不支持
- Question mark in SQL HOT 1
- php74支持
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from molten.