spanlog

v0.1.0
io.github.chaugiakhang193/spanlog-mcp Checked 3 days ago Published 20 days ago

Find 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.

ParameterTypeDescription
reqId *stringRequest id, the req= value of a line
servicestringOnly 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.

ParameterTypeDescription
limitintegerMost entries to return, 20 by default
servicestringOnly lines of this service
sinceMinutesintegerOnly 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.

ParameterTypeDescription
actionstringOnly lines of this action
limitintegerMost entries to return, 10 by default
servicestringOnly lines of this service
sinceMinutesintegerOnly the last minutes before the newest line in the files