Skip to content

Commit d53dea3

Browse files
committed
stop using browser Response type
1 parent 75ad86d commit d53dea3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/tracing/src/browser/request.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ export interface FetchData {
4848
// span_id
4949
__span?: string;
5050
};
51-
response?: Response;
51+
52+
// TODO (kmclb) Once type fix goes through, turn this back into a Response
53+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
54+
response?: any;
55+
5256
startTimestamp: number;
5357
endTimestamp?: number;
5458
}
@@ -147,6 +151,8 @@ export function fetchCallback(
147151
if (span) {
148152
const response = handlerData.response;
149153
if (response) {
154+
// TODO (kmclb) remove this once types PR goes through
155+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
150156
span.setHttpStatus(response.status);
151157
}
152158
span.finish();

0 commit comments

Comments
 (0)