-
Notifications
You must be signed in to change notification settings - Fork 118
Open
Description
Feature Request
Is your feature request related to a problem? Please describe:
For now, the format of the slow log is hard to read and comprehend.
{
"start": "15:35:31.156",
"end": "15:35:32.733",
"duration": "1577ms",
"func": "get",
"key": "indexInfo_:_pf01_:_APD01_:_0202250000062470157",
"spans": [
{
"name": "callWithRetry pdpb.PD/GetStore",
"start": "15:35:31.156",
"end": "15:35:31.623",
"duration": "467ms"
},
{
"name": "gRPC pdpb.PD/GetStore",
"start": "15:35:31.156",
"end": "15:35:31.156",
"duration": "0ms"
},
{
"name": "backoff BoPDRPC",
"start": "15:35:31.156",
"end": "15:35:31.239",
"duration": "83ms"
},
{
"name": "gRPC pdpb.PD/GetStore",
"start": "15:35:31.240",
"end": "15:35:31.240",
"duration": "0ms"
},
{
"name": "backoff BoPDRPC",
"start": "15:35:31.240",
"end": "15:35:31.375",
"duration": "135ms"
},
{
"name": "gRPC pdpb.PD/GetStore",
"start": "15:35:31.376",
"end": "15:35:31.376",
"duration": "0ms"
},
{
"name": "backoff BoPDRPC",
"start": "15:35:31.376",
"end": "15:35:31.622",
"duration": "246ms"
},
{
"name": "gRPC pdpb.PD/GetStore",
"start": "15:35:31.622",
"end": "15:35:31.622",
"duration": "0ms"
},
{
"name": "backoff BoPDRPC",
"start": "15:35:31.622",
"end": "N/A",
"duration": "N/A"
},
{
"name": "backoff BoRegionMiss",
"start": "15:35:31.623",
"end": "15:35:31.643",
"duration": "20ms"
},
...
]
}However, the timeline graph will be more illustrated:

Describe the feature you'd like:
Add a tool to produce a simple timeline graph while given a log file.
Describe alternatives you've considered:
Use tracing for the future, slow log can't trace the event relationship.
Teachability, Documentation, Adoption, Migration Strategy:
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
WIP