fix(javascript): include response carriers in endpoint traces

Include request and response endpoint carriers in the shared semantic query seed matcher so traces retain resolved response consumers, source identities, and incomplete coverage.

Validated with 44 domain tests, compiled CLI/MCP parity, full static/architecture checks, and current-head automated review/CI.

Fixes #4213.
This commit is contained in:
JNTMTMTM authored and GitHub committed 2026-10-17 01:11:36 +08:00
1 parent 9d940c2f28
commit ab13a1c67a
3 files changed
+147 -2

No files matched your search

@@ -85,7 +85,10 @@ const seedMatches = (
if (seed.kind === "property")
return node.kind === "property-slot" && node.properties.name === seed.name;
if (seed.kind === "endpoint")
return node.kind === "request" && node.properties.endpoint === seed.value;
return (
(node.kind === "request" || node.kind === "response") &&
node.properties.endpoint === seed.value
);
if (seed.kind === "event")
return (
["event", "listener"].includes(node.kind) &&