Commit 16d1cfd1 authored by DEPRECATED (Jonathan Mace) (Use @JonathanMace instead)'s avatar DEPRECATED (Jonathan Mace) (Use @JonathanMace instead)
Browse files

Add some more API calls to xtrace

parent ddc71966
......@@ -37,6 +37,8 @@ void StartTrace();
void StartTrace(std::string tag);
void StartTrace(std::vector<std::string> tags);
bool IsTracing();
Logger GetLogger(std::string agent);
void log(std::string message);
......
......@@ -123,6 +123,10 @@ void XTrace::StartTrace(std::vector<std::string> tags) {
sendReport(report);
}
bool XTrace::IsTracing() {
return XTraceBaggage::HasTaskID();
}
XTrace::Logger XTrace::GetLogger(std::string agent) {
return XTrace::Logger(agent);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment