Skip to content

Repository files navigation

Introduction

A parser for Java stack trace, Android trace.txt and tombstone file parsing, usually used for issue aggregation in APM system.

Usage

Parse Java stack trace

val trace =JavaStackTraceParser().parse(Log.getStackTrace(e))
val rootCause = trace.rootCause

Parse trace file

val trace =TraceFile.from(path)
val rootCause = trace.rootCause

or

val trace =FileReader(file).use {
TraceFileParser(it).parse()
}
val rootCause = trace.rootCause

Parse Android tombstone file

val tombstone =TombstoneFile.from(path)
val rootCause = tombstone.rootCause

or

val tombstone =FileReader(file).use {
TombstoneFileParser(it).parse()
}
val rootCause = tombstone.rootCause

Gradle

implementation("io.johnsonlee:trace-parser:$trace_parser_version")

About

A parser collection for Java/Native stack trace

Resources

Stars

14 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages