Improve trace server MCP: full path IDs, graph-based drill-down, search via SpanRef
- Aggregated span IDs now include the full parent path (e.g. "a2119-a2120")
so callers can pass the id directly as `parent` to drill deeper. Raw span
IDs remain plain numeric store indices.
- Aggregated parent resolution walks the SpanGraphRef tree segment by segment
via `resolve_graph_by_path`, so drilling like `parent=a2119-a2120` correctly
navigates the aggregation hierarchy instead of falling back to the raw span.
- Search in aggregated mode uses `SpanRef::search` to find matching spans
anywhere in the subtree, returning individual raw results rather than a
shallow name filter on direct graph children.
- Extracted `sort_items`, `span_ref_to_info`, `resolve_parent_span` helpers
to avoid duplication between aggregated and raw query paths.
- Include the MCP port in the `query-trace --help` pointer so users can
copy-paste the command directly.
Co-Authored-By:
Claude <noreply@anthropic.com>
Showing
This diff is collapsed.
Please
register
or
sign in
to comment