fix: preserve sentinel timing through routed report access
This commit is contained in:
@@ -367,7 +367,7 @@ function sentinelRouteMismatch(config: WebProbeSentinelServiceConfig, pathname:
|
||||
const routeSegment = decodeURIComponent(match[1]);
|
||||
const nodePrefix = `${config.node.toLowerCase()}-`;
|
||||
const routeSentinelId = routeSegment.startsWith(nodePrefix) ? routeSegment.slice(nodePrefix.length) : routeSegment;
|
||||
if (routeSentinelId === config.sentinelId) return null;
|
||||
if (routeSegment === config.sentinelId || routeSentinelId === config.sentinelId) return null;
|
||||
return {
|
||||
ok: false,
|
||||
error: "sentinel-route-mismatch",
|
||||
|
||||
Reference in New Issue
Block a user