{"id":21899034,"url":"https://github.com/johnsonlee/trace-parser","last_synced_at":"2025-04-15T18:53:10.860Z","repository":{"id":57735678,"uuid":"335059672","full_name":"johnsonlee/trace-parser","owner":"johnsonlee","description":"A parser collection for Java/Native stack trace","archived":false,"fork":false,"pushed_at":"2022-09-02T13:34:23.000Z","size":142,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T23:51:11.942Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnsonlee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-01T19:24:30.000Z","updated_at":"2025-01-18T16:04:53.000Z","dependencies_parsed_at":"2022-08-23T20:31:03.108Z","dependency_job_id":null,"html_url":"https://github.com/johnsonlee/trace-parser","commit_stats":null,"previous_names":["johnsonlee/trace-file-parser"],"tags_count":13,"template":false,"template_full_name":"johnsonlee/kotlin-library-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnsonlee%2Ftrace-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnsonlee%2Ftrace-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnsonlee%2Ftrace-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnsonlee%2Ftrace-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnsonlee","download_url":"https://codeload.github.com/johnsonlee/trace-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249135761,"owners_count":21218365,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-28T14:37:06.411Z","updated_at":"2025-04-15T18:53:10.827Z","avatar_url":"https://github.com/johnsonlee.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Introduction\n\nA parser for Java stack trace, Android trace.txt and tombstone file parsing, usually used for issue aggregation in APM system.\n\n## Usage\n\n### Parse Java stack trace\n\n```kotlin\nval trace = JavaStackTraceParser().parse(Log.getStackTrace(e))\nval rootCause = trace.rootCause\n```\n\n### Parse trace file\n\n```kotlin\nval trace = TraceFile.from(path)\nval rootCause = trace.rootCause\n```\n\nor\n\n```kotlin\nval trace = FileReader(file).use {\n    TraceFileParser(it).parse()\n}\nval rootCause = trace.rootCause\n```\n\n### Parse Android tombstone file\n\n```kotlin\nval tombstone = TombstoneFile.from(path)\nval rootCause = tombstone.rootCause\n```\n\nor\n\n```kotlin\nval tombstone = FileReader(file).use {\n    TombstoneFileParser(it).parse()\n}\nval rootCause = tombstone.rootCause\n```\n\n### Gradle\n\n```kotlin\nimplementation(\"io.johnsonlee:trace-parser:$trace_parser_version\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnsonlee%2Ftrace-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnsonlee%2Ftrace-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnsonlee%2Ftrace-parser/lists"}