splunk__lsp_call_chain
Trace a function or symbol through the microservice call graph to find which code path caused a log error.
Instructions
Trace a function or symbol through the microservice call graph using LSP. Use this during the Reason step to find which code path produced a log error.
Args: run_id: Active investigation run_id. symbol: Function or class name to look up (e.g. "validate_cert", "TLSHandler"). file_path: Optional absolute path to the file containing the symbol. Speeds up lookup. line: Optional 1-based line number of the symbol definition. direction: "callers" (who calls this?) or "callees" (what does this call?). Default: callers. depth: How many levels up/down to trace. Default: 3.
Returns JSON with the call chain and file locations, or an error if repo_path was not provided at investigate_start or if the symbol cannot be resolved.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | No | ||
| depth | No | ||
| run_id | Yes | ||
| symbol | Yes | ||
| direction | No | callers | |
| file_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |