interface IDependencyListenerDetails {
    aborted?: boolean;
    context?: {
        [key: string]: any;
    };
    core: IAppInsightsCore<IConfiguration>;
    init?: RequestInit;
    input?: string | Request;
    spanId?: string;
    traceFlags?: number;
    traceId?: string;
    xhr?: XMLHttpRequest;
}

Properties

aborted?: boolean

[Optional] A flag that indicates whether the client request was manually aborted by the abort(), as listeners are called just before the request is sent it is unlikely that an application would have called abort before send this is also available in the dependency initializer.

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

[Optional] Context that the application can assign that will also be passed to any dependency initializer

core: IAppInsightsCore<IConfiguration>

The current core instance

init?: RequestInit

Provided only if the dependency request is a fetch call, this is the init argument being used, re-assigning this value does not change the value used for the request, however, changing properties of this object will be used.

input?: string | Request

Provided only if the dependency request is a fetch call, this is the input argument being used, re-assigning this value has not affect on the value used for the request, however, when this is a Request object changing the value of the Request will be used for the outbound request.

spanId?: string

Self-generated 8-bytes identifier of the incoming request. Must be a hex representation of 8-byte array. Also know as the parentId, used to link requests together

traceFlags?: number

An integer representation of the W3C TraceContext trace-flags. https://www.w3.org/TR/trace-context/#trace-flags

traceId?: string

Returns the unique identifier for a trace. All requests / spans from the same trace share the same traceId. Must be read from incoming headers or generated according to the W3C TraceContext specification, in a hex representation of 16-byte array. A.k.a. trace-id, TraceID or Distributed TraceID

xhr?: XMLHttpRequest

Provided only if the dependency request is an XHR call