提交 55cb49dd 编写于 作者: H heyanlong

6.x rpc

上级 ed26ed1c
......@@ -58,6 +58,7 @@
#define COMPONENT_ACTIVEMQ_CONSUMER 46
#define COMPONENT_TRANSPORT_CLIENT 48
#define COMPONENT_UNDERTOW 49
#define COMPONENT_RPC 50
#endif //SKYWALKING_COMPONENTS_H
......
......@@ -356,7 +356,12 @@ ZEND_API void sky_execute_internal(zend_execute_data *execute_data, zval *return
}
} else if (strcmp(class_name, "Yar_Client") == 0) {
if (strcmp(function_name, "__call") == 0) {
componentId = COMPONENT_GRPC;
if (SKYWALKING_G(version) == 5) {
componentId = COMPONENT_GRPC;
} else {
componentId = COMPONENT_RPC;
}
component = (char *) emalloc(strlen("Yar_Client") + 1);
strcpy(component, "Yar_Client");
uint32_t arg_count = ZEND_CALL_NUM_ARGS(execute_data);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册