TarsFramework
TarsFramework copied to clipboard
为了打开框架的调用链功能,去除 “--without-trace ” 编译选项时框架无法编译通过!
为了打开框架的调用链功能,去除 “--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, trace_param, "");
^
/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, trace_param, "");
^
/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, trace_param, "");
^
/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, trace_param, "");
^
/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, trace_param, "");
^
/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, trace_param, "");
^
/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, trace_param, "");
^
/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, trace_param, "");
^
/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
框架暂时不支持打开调用链, 业务服务没有影响。