spanlog
v0.1.0Find the lines of one request, the newest failures and the slowest calls in spanlog JSON logs
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
find_request Find request
All lines of one request in the spanlog JSON log, in file order. Lines with an error stack are followed by its frames.
| Parameter | Type | Description |
|---|---|---|
reqId * | string | Request id, the req= value of a line |
service | string | Only lines of this service |
failures Failures
The newest failures in the spanlog JSON log, newest first. A failed request shows up to three of its failed lines that carry an error stack, with the frames, or its first failed line when none has a stack, then the request line. A failed line with a stack outside any request shows alone. Call find_request with the req= value for every line.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Most entries to return, 20 by default |
service | string | Only lines of this service |
sinceMinutes | integer | Only the last minutes before the newest line in the files |
slowest Slowest
The lines with the longest duration in the spanlog JSON log, longest first. Every line except START has a duration, failed and aborted ones included.
| Parameter | Type | Description |
|---|---|---|
action | string | Only lines of this action |
limit | integer | Most entries to return, 10 by default |
service | string | Only lines of this service |
sinceMinutes | integer | Only the last minutes before the newest line in the files |