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

Function hostnameForTelemetry

packages/core/sdk/src/oauth-helpers.ts:872–872  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

870/** The hostname alone — a malformed URL yields "invalid" rather than leaking
871 * whatever string failed to parse. */
872const hostnameForTelemetry = (url: string): string => URL.parse(url)?.hostname ?? "invalid";
873
874// ---------------------------------------------------------------------------
875// oauth4webapi adapter helpers

Callers 2

tokenEndpointHttpSummaryFunction · 0.85
withTokenRequestSpanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected