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 {
119
119
120
120
/**
121
121
* Get the request body/payload based on the shape of the hint.
122
- *
122
+ *
123
123
* Exported for tests only.
124
124
*/
125
125
export function getRequestPayloadXhrOrFetch ( hint : XhrHint | FetchHint ) : string | undefined {
@@ -140,7 +140,7 @@ export function getRequestPayloadXhrOrFetch(hint: XhrHint | FetchHint): string |
140
140
141
141
/**
142
142
* Extract the name and type of the operation from the GraphQL query.
143
- *
143
+ *
144
144
* Exported for tests only.
145
145
*/
146
146
export function parseGraphQLQuery ( query : string ) : GraphQLOperation {
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ export function instrumentFetchRequest(
104
104
input : handlerData . args ,
105
105
response : handlerData . response ,
106
106
startTimestamp : handlerData . startTimestamp ,
107
- endTimestamp : handlerData . endTimestamp ?? Date . now ( ) ,
107
+ endTimestamp : handlerData . endTimestamp ,
108
108
} satisfies FetchBreadcrumbHint ;
109
109
110
110
client . emit ( 'beforeOutgoingRequestSpan' , span , fetchHint ) ;
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ export interface FetchBreadcrumbHint {
94
94
data ?: unknown ;
95
95
response ?: unknown ;
96
96
startTimestamp : number ;
97
- endTimestamp : number ;
97
+ endTimestamp ? : number ;
98
98
}
99
99
100
100
export interface XhrBreadcrumbHint {
You can’t perform that action at this time.
0 commit comments