import { Exception, InProgressSpan } from "../../utils/otel"; import { PropagatorType } from "../../vars"; export declare const HTTP_METHOD_OTHER = "_OTHER"; export declare function isWellKnownHttpMethod(method: string): boolean; export declare function addResourceNetworkEvents(span: InProgressSpan, resource: PerformanceResourceTiming): void; export declare function addResourceSize(span: InProgressSpan, resource: PerformanceResourceTiming): void; export declare function endSpanOnError(span: InProgressSpan, error: Exception, requestUrl?: string): void; /** * Error messages and stack traces can contain the page url (inline script frames) and the request url (browser * network error messages), so both pass the url attribute scrubber. Non-string values are kept as they are. */ export declare function scrubException(error: Exception, requestUrl?: string): Exception; export declare function endSpanOnAbort(span: InProgressSpan): void; export declare function determinePropagatorTypes(url: string): PropagatorType[]; export declare function addTraceContextHttpHeaders(fn: (name: string, value: string) => void, ctx: unknown, span: InProgressSpan, types: PropagatorType[]): void;