Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Reyhaneh Karimipour
xtrace-cpp
Commits
16d1cfd1
Commit
16d1cfd1
authored
May 21, 2019
by
DEPRECATED (Jonathan Mace) (Use @JonathanMace instead)
Browse files
Add some more API calls to xtrace
parent
ddc71966
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/xtrace.h
View file @
16d1cfd1
...
...
@@ -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
);
...
...
src/xtrace.cpp
View file @
16d1cfd1
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment