TarsCloud / TarsFramework

Tars Basic service framework
BSD 3-Clause "New" or "Revised" License
198 stars 143 forks source link

为了打开框架的调用链功能,去除 “--without-trace ” 编译选项时框架无法编译通过! #107

Open wincsb opened 2 years ago

wincsb commented 2 years ago

为了打开框架的调用链功能,去除 “--without-trace ” 编译选项时框架无法编译通过! “TarsFramework\tarscpp\servant\CMakeLists.txt : COMMAND ${TARS2CPP} --with-tars --without-trace ${HEADER_STRING} ${INCLUDE_STRING} ${TARS_IN}”

Scanning dependencies of target FRAMEWORK-PROTOCOL [ 51%] /root/TarsFramework/build/bin/tars2cpp --with-tars --include=/root/TarsFramework/tarscpp/servant/protocol/servant /root/TarsFramework/tarscpp/servant/protocol/framework/AdminReg.tars [ 51%] /root/TarsFramework/build/bin/tars2cpp --with-tars --include=/root/TarsFramework/tarscpp/servant/protocol/servant /root/TarsFramework/tarscpp/servant/protocol/framework/MonitorQuery.tars [ 51%] /root/TarsFramework/build/bin/tars2cpp --with-tars --include=/root/TarsFramework/tarscpp/servant/protocol/servant /root/TarsFramework/tarscpp/servant/protocol/framework/Node.tars [ 51%] Building CXX object tarscpp/tools/tars2node/CMakeFiles/tars2node.dir/gen_proxy_ts.cpp.o [ 51%] /root/TarsFramework/build/bin/tars2cpp --with-tars --include=/root/TarsFramework/tarscpp/servant/protocol/servant /root/TarsFramework/tarscpp/servant/protocol/framework/NodeDescriptor.tars [ 52%] /root/TarsFramework/build/bin/tars2cpp --with-tars --include=/root/TarsFramework/tarscpp/servant/protocol/servant /root/TarsFramework/tarscpp/servant/protocol/framework/Patch.tars [ 52%] /root/TarsFramework/build/bin/tars2cpp --with-tars --include=/root/TarsFramework/tarscpp/servant/protocol/servant /root/TarsFramework/tarscpp/servant/protocol/framework/Registry.tars [ 52%] /root/TarsFramework/build/bin/tars2cpp --with-tars --include=/root/TarsFramework/tarscpp/servant/protocol/servant /root/TarsFramework/tarscpp/servant/protocol/framework/RegistryDescriptor.tars [ 52%] Built target FRAMEWORK-PROTOCOL Scanning dependencies of target tarsservant [ 52%] Building CXX object tarscpp/servant/libservant/CMakeFiles/tarsservant.dir/AdapterProxy.cpp.o [ 53%] Building CXX object tarscpp/tools/tars2node/CMakeFiles/tars2node.dir/gen_server.cpp.o In file included from /root/TarsFramework/tarscpp/servant/servant/RemoteLogger.h:21:0, from /root/TarsFramework/tarscpp/servant/servant/Application.h:34, from /root/TarsFramework/tarscpp/servant/servant/StatF.h:18, from /root/TarsFramework/tarscpp/servant/servant/StatReport.h:23, from /root/TarsFramework/tarscpp/servant/servant/Communicator.h:29, from /root/TarsFramework/tarscpp/servant/servant/ObjectProxy.h:20, from /root/TarsFramework/tarscpp/servant/servant/AdapterProxy.h:25, from /root/TarsFramework/tarscpp/servant/libservant/AdapterProxy.cpp:17: /root/TarsFramework/tarscpp/servant/servant/LogF.h: In member function ‘virtual int tars::LogPrxCallback::onDispatch(tars::ReqMessagePtr)’: /root/TarsFramework/tarscpp/servant/servant/LogF.h:282:102: error: ‘TRACE_ANNOTATION_CR’ was not declared in this scope TARS_TRACE(pSptd->getTraceKey(ServantProxyThreadData::TraceContext::EST_CR), TRACE_ANNOTATION_CR, "", ServerConfig::Application + "." + ServerConfig::ServerName, "logger", 0, _traceparam, ""); ^ /root/TarsFramework/tarscpp/servant/servant/LogF.h:282:127: error: ‘ServerConfig’ has not been declared TARS_TRACE(pSptd->getTraceKey(ServantProxyThreadData::TraceContext::EST_CR), TRACE_ANNOTATION_CR, "", ServerConfig::Application + "." + ServerConfig::ServerName, "logger", 0, _traceparam, ""); ^ /root/TarsFramework/tarscpp/servant/servant/LogF.h:282:161: error: ‘ServerConfig’ has not been declared TARS_TRACE(pSptd->getTraceKey(ServantProxyThreadData::TraceContext::EST_CR), TRACE_ANNOTATION_CR, "", ServerConfig::Application + "." + ServerConfig::ServerName, "logger", 0, _traceparam, ""); ^ /root/TarsFramework/tarscpp/servant/servant/LogF.h:282:217: error: ‘TARS_TRACE’ was not declared in this scope TARS_TRACE(pSptd->getTraceKey(ServantProxyThreadData::TraceContext::EST_CR), TRACE_ANNOTATION_CR, "", ServerConfig::Application + "." + ServerConfig::ServerName, "logger", 0, _traceparam, ""); ^ /root/TarsFramework/tarscpp/servant/servant/LogF.h:322:102: error: ‘TRACE_ANNOTATION_CR’ was not declared in this scope TARS_TRACE(pSptd->getTraceKey(ServantProxyThreadData::TraceContext::EST_CR), TRACE_ANNOTATION_CR, "", ServerConfig::Application + "." + ServerConfig::ServerName, "loggerbyInfo", 0, _traceparam, ""); ^ /root/TarsFramework/tarscpp/servant/servant/LogF.h:322:127: error: ‘ServerConfig’ has not been declared TARS_TRACE(pSptd->getTraceKey(ServantProxyThreadData::TraceContext::EST_CR), TRACE_ANNOTATION_CR, "", ServerConfig::Application + "." + ServerConfig::ServerName, "loggerbyInfo", 0, _traceparam, ""); ^ /root/TarsFramework/tarscpp/servant/servant/LogF.h:322:161: error: ‘ServerConfig’ has not been declared TARS_TRACE(pSptd->getTraceKey(ServantProxyThreadData::TraceContext::EST_CR), TRACE_ANNOTATION_CR, "", ServerConfig::Application + "." + ServerConfig::ServerName, "loggerbyInfo", 0, _traceparam, ""); ^ /root/TarsFramework/tarscpp/servant/servant/LogF.h:322:223: error: ‘TARS_TRACE’ was not declared in this scope TARS_TRACE(pSptd->getTraceKey(ServantProxyThreadData::TraceContext::EST_CR), TRACE_ANNOTATION_CR, "", ServerConfig::Application + "." + ServerConfig::ServerName, "loggerbyInfo", 0, _traceparam, ""); ^ /root/TarsFramework/tarscpp/servant/servant/LogF.h: In member function ‘void tars::LogProxy::logger(const string&, const string&, const string&, const string&, const std::vector<std::basic_string >&, const std::map<std::basic_string, std::basic_string >&, std::map<std::basic_string, std::basic_string >)’: /root/TarsFramework/tarscpp/servant/servant/LogF.h:632:94: error: ‘TRACE_ANNOTATION_CS’ was not declared in this scope TARS_TRACE(pSptd->getTraceKey(ServantProxyThreadData::TraceContext::EST_CS), TRACE_ANNOTATION_CS, ServerConfig::Application + "." + ServerConfig::ServerName, tars_name(), "logger", 0, _traceparam, ""); ^ /root/TarsFramework/tarscpp/servant/servant/LogF.h:632:115: error: ‘ServerConfig’ has not been declared TARS_TRACE(pSptd->getTraceKey(ServantProxyThreadData::TraceContext::EST_CS), TRACE_ANNOTATION_CS, ServerConfig::Application + "." + ServerConfig::ServerName, tars_name(), "logger", 0, _traceparam, ""); ^ /root/TarsFramework/tarscpp/servant/servant/LogF.h:632:149: error: ‘ServerConfig’ has not been declared TARS_TRACE(pSptd->getTraceKey(ServantProxyThreadData::TraceContext::EST_CS), TRACE_ANNOTATION_CS, ServerConfig::Application + "." + ServerConfig::ServerName, tars_name(), "logger", 0, _traceparam, ""); ^ /root/TarsFramework/tarscpp/servant/servant/LogF.h:632:218: error: ‘TARS_TRACE’ was not declared in this scope TARS_TRACE(pSptd->getTraceKey(ServantProxyThreadData::TraceContext::EST_CS), TRACE_ANNOTATION_CS, ServerConfig::Application + "." + ServerConfig::ServerName, tars_name(), "logger", 0, _traceparam, ""); ^ /root/TarsFramework/tarscpp/servant/servant/LogF.h:657:94: error: ‘TRACE_ANNOTATION_CR’ was not declared in this scope TARS_TRACE(pSptd->getTraceKey(ServantProxyThreadData::TraceContext::EST_CR), TRACE_ANNOTATION_CR, ServerConfig::Application + "." + ServerConfig::ServerName, tars_name(), "logger", 0, _traceparam, ""); ^ /root/TarsFramework/tarscpp/servant/servant/LogF.h:657:115: error: ‘ServerConfig’ has not been declared TARS_TRACE(pSptd->getTraceKey(ServantProxyThreadData::TraceContext::EST_CR), TRACE_ANNOTATION_CR, ServerConfig::Application + "." + ServerConfig::ServerName, tars_name(), "logger", 0, _traceparam, ""); ^ /root/TarsFramework/tarscpp/servant/servant/LogF.h:657:149: error: ‘ServerConfig’ has not been declared TARS_TRACE(pSptd->getTraceKey(ServantProxyThreadData::TraceContext::EST_CR), TRACE_ANNOTATION_CR, ServerConfig::Application + "." + ServerConfig::ServerName, tars_name(), "logger", 0, _traceparam, ""); ^ /root/TarsFramework/tarscpp/servant/servant/LogF.h:657:218: error: ‘TARS_TRACE’ was not declared in this scope TARS_TRACE(pSptd->getTraceKey(ServantProxyThreadData::TraceContext::EST_CR), TRACE_ANNOTATION_CR, ServerConfig::Application + "." + ServerConfig::ServerName, tars_name(), "logger", 0, _traceparam, ""); ^ /root/TarsFramework/tarscpp/servant/servant/LogF.h: In member function ‘void tars::LogProxy::async_logger(tars::LogPrxCallbackPtr, const string&, const string&, const string&, const string&, const std::vector<std::basic_string >&, const std::map<std::basic_string, std::basic_string >&)’: /root/TarsFramework/tarscpp/servant/servant/LogF.h:691:94: error: ‘TRACE_ANNOTATION_CS’ was not declared in this scope TARS_TRACE(pSptd->getTraceKey(ServantProxyThreadData::TraceContext::EST_CS), TRACE_ANNOTATION_CS, ServerConfig::Application + "." + ServerConfig::ServerName, tars_name(), "logger", 0, _traceparam, ""); ^ /root/TarsFramework/tarscpp/servant/servant/LogF.h:691:115: error: ‘ServerConfig’ has not been declared TARS_TRACE(pSptd->getTraceKey(ServantProxyThreadData::TraceContext::EST_CS), TRACE_ANNOTATION_CS, ServerConfig::Application + "." + ServerConfig::ServerName, tars_name(), "logger", 0, _traceparam, ""); ^ /root/TarsFramework/tarscpp/servant/servant/LogF.h:691:149: error: ‘ServerConfig’ has not been declared TARS_TRACE(pSptd->getTraceKey(ServantProxyThreadData::TraceContext::EST_CS), TRACE_ANNOTATION_CS, ServerConfig::Application + "." + ServerConfig::ServerName, tars_name(), "logger", 0, _traceparam, ""); ^ /root/TarsFramework/tarscpp/servant/servant/LogF.h:691:218: error: ‘TARS_TRACE’ was not declared in this scope TARS_TRACE(pSptd->getTraceKey(ServantProxyThreadData::TraceContext::EST_CS), TRACE_ANNOTATION_CS, ServerConfig::Application + "." + ServerConfig::ServerName, tars_name(), "logger", 0, _traceparam, ""); ^ /root/TarsFramework/tarscpp/servant/servant/LogF.h: In member function ‘void tars::LogProxy::loggerbyInfo(const tars::LogInfo&, const std::vector<std::basic_string >&, const std::map<std::basic_string, std::basic_string >&, std::map<std::basic_string, std::basic_string >)’: /root/TarsFramework/tarscpp/servant/servant/LogF.h:747:94: error: ‘TRACE_ANNOTATION_CS’ was not declared in this scope TARS_TRACE(pSptd->getTraceKey(ServantProxyThreadData::TraceContext::EST_CS), TRACE_ANNOTATION_CS, ServerConfig::Application + "." + ServerConfig::ServerName, tars_name(), "loggerbyInfo", 0, _traceparam, ""); ^ /root/TarsFramework/tarscpp/servant/servant/LogF.h:747:115: error: ‘ServerConfig’ has not been declared TARS_TRACE(pSptd->getTraceKey(ServantProxyThreadData::TraceContext::EST_CS), TRACE_ANNOTATION_CS, ServerConfig::Application + "." + ServerConfig::ServerName, tars_name(), "loggerbyInfo", 0, _traceparam, ""); ^ /root/TarsFramework/tarscpp/servant/servant/LogF.h:747:149: error: ‘ServerConfig’ has not been declared TARS_TRACE(pSptd->getTraceKey(ServantProxyThreadData::TraceContext::EST_CS), TRACE_ANNOTATION_CS, ServerConfig::Application + "." + ServerConfig::ServerName, tars_name(), "loggerbyInfo", 0, _traceparam, ""); ^ /root/TarsFramework/tarscpp/servant/servant/LogF.h:747:224: error: ‘TARS_TRACE’ was not declared in this scope TARS_TRACE(pSptd->getTraceKey(ServantProxyThreadData::TraceContext::EST_CS), TRACE_ANNOTATION_CS, ServerConfig::Application + "." + ServerConfig::ServerName, tars_name(), "loggerbyInfo", 0, _traceparam, "");

shevqko commented 2 years ago

框架暂时不支持打开调用链, 业务服务没有影响。