Interface for ajax data passed to includeCorrelationHeaders function. Contains the public properties and methods needed for correlation header processing.

interface IAjaxRecordData {
    aborted: number;
    context?: {
        [key: string]: any;
    };
    getAbsoluteUrl(): string;
    getPathName(): string;
    requestHeaders: {
        [key: string]: string;
    };
    traceCtx: IDistributedTraceContext;
}

Properties

aborted: number

Indicates whether the request was aborted (0 = not aborted, 1 = aborted)

context?: {
    [key: string]: any;
}

Optional context object that can be set by dependency listeners

requestHeaders: {
    [key: string]: string;
}

Object containing request headers that have been set for this request

traceCtx: IDistributedTraceContext

The distributed trace context for the request containing trace ID, span ID, and trace flags

Methods

  • Gets the absolute URL for the request

    Returns string

    The absolute URL string or null

  • Gets the sanitized path name for the request URL

    Returns string

    The sanitized path name string or null