A parser for Java stack trace, Android trace.txt and tombstone file parsing, usually used for issue aggregation in APM system.
val trace =JavaStackTraceParser().parse(Log.getStackTrace(e))
val rootCause = trace.rootCauseval trace =TraceFile.from(path)
val rootCause = trace.rootCauseor
val trace =FileReader(file).use {
TraceFileParser(it).parse()
}
val rootCause = trace.rootCauseval tombstone =TombstoneFile.from(path)
val rootCause = tombstone.rootCauseor
val tombstone =FileReader(file).use {
TombstoneFileParser(it).parse()
}
val rootCause = tombstone.rootCauseimplementation("io.johnsonlee:trace-parser:$trace_parser_version")