cobra_to_sentry / backtraces are reversed and line number is not extracted correctly
This commit is contained in:
@ -72,7 +72,6 @@ namespace ix
|
||||
std::string line;
|
||||
std::stringstream tokenStream(stack);
|
||||
|
||||
std::stringstream ss;
|
||||
std::smatch group;
|
||||
|
||||
while (std::getline(tokenStream, line))
|
||||
@ -84,6 +83,7 @@ namespace ix
|
||||
const auto linenoStr = group.str(2);
|
||||
const auto function = group.str(3);
|
||||
|
||||
std::stringstream ss;
|
||||
ss << linenoStr;
|
||||
uint64_t lineno;
|
||||
ss >> lineno;
|
||||
@ -97,6 +97,8 @@ namespace ix
|
||||
}
|
||||
}
|
||||
|
||||
std::reverse(frames.begin(), frames.end());
|
||||
|
||||
return frames;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user