File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ function _getGraphQLOperation(requestBody: GraphQLRequestPayload): string {
119119
120120/**
121121 * Get the request body/payload based on the shape of the hint.
122- *
122+ *
123123 * Exported for tests only.
124124 */
125125export function getRequestPayloadXhrOrFetch ( hint : XhrHint | FetchHint ) : string | undefined {
@@ -140,7 +140,7 @@ export function getRequestPayloadXhrOrFetch(hint: XhrHint | FetchHint): string |
140140
141141/**
142142 * Extract the name and type of the operation from the GraphQL query.
143- *
143+ *
144144 * Exported for tests only.
145145 */
146146export function parseGraphQLQuery ( query : string ) : GraphQLOperation {
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ export function instrumentFetchRequest(
104104 input : handlerData . args ,
105105 response : handlerData . response ,
106106 startTimestamp : handlerData . startTimestamp ,
107- endTimestamp : handlerData . endTimestamp ?? Date . now ( ) ,
107+ endTimestamp : handlerData . endTimestamp ,
108108 } satisfies FetchBreadcrumbHint ;
109109
110110 client . emit ( 'beforeOutgoingRequestSpan' , span , fetchHint ) ;
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ export interface FetchBreadcrumbHint {
9494 data ?: unknown ;
9595 response ?: unknown ;
9696 startTimestamp : number ;
97- endTimestamp : number ;
97+ endTimestamp ? : number ;
9898}
9999
100100export interface XhrBreadcrumbHint {
You can’t perform that action at this time.
0 commit comments