Code Monkey home page Code Monkey logo

Comments (3)

reynaldliu avatar reynaldliu commented on August 25, 2024 1

有能力改可以从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.

silkcutKs avatar silkcutKs commented on August 25, 2024 1

@reynaldliu 支持大家添加自己关心的扩展拦截器, molten中有很多其他扩展的例子, 可以参照这些例子自行添加~

https://github.com/chuan-yun/Molten/wiki/%E6%B7%BB%E5%8A%A0%E6%84%9F%E5%85%B4%E8%B6%A3%E7%9A%84%E7%BB%84%E4%BB%B6

from molten.

silkcutKs avatar silkcutKs commented on August 25, 2024

现阶段不支持。

from molten.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.