normalizePostHogHost
Trim whitespace, truncate a host to 500 characters, and remove one trailing slash, defaulting to the US PostHog ingest host. Missing or blank inputs use the default; supplied strings are not validated as URLs.
import { normalizePostHogHost } from '@threadplane/telemetry/shared';Declaration · overload 1
export declare function normalizePostHogHost(host: unknown): string;Parameters
host· requiredunknown
Returns
string