MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isV2TelemetryPath

Function isV2TelemetryPath

apps/cloud/src/edge/marketing.ts:313–314  ·  view source on GitHub ↗
(pathname: string, edge: V2Edge)

Source from the content-addressed store, hash-verified

311/** Whether a pathname is below v2's analytics proxy root, or exactly v2's
312 * error tunnel. */
313const isV2TelemetryPath = (pathname: string, edge: V2Edge): boolean =>
314 matchesPathPattern(pathname, `${edge.analyticsProxyPath}/*`) || pathname === edge.errorTunnelPath;
315
316/**
317 * Answer a production request that belongs to v2 and return `null` when v1

Callers 1

v2EdgeResponseFunction · 0.85

Calls 1

matchesPathPatternFunction · 0.85

Tested by

no test coverage detected