Skip to content

Commit c47f0ac

Browse files
committed
minimal changes
1 parent 112ca89 commit c47f0ac

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

packages/remix/src/utils/instrumentServer.ts

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,10 @@ const makeWrappedLoader =
200200
return makeWrappedDataFunction(origLoader, id, 'loader', remixVersion, autoInstrumentRemix);
201201
};
202202

203-
function getTraceAndBaggage(): { sentryTrace?: string; sentryBaggage?: string } {
203+
function getTraceAndBaggage(): {
204+
sentryTrace?: string;
205+
sentryBaggage?: string;
206+
} {
204207
if (isNodeEnv()) {
205208
const traceData = getTraceData();
206209

@@ -239,11 +242,7 @@ function makeWrappedRootLoader(remixVersion: number) {
239242

240243
if (typeof data === 'object') {
241244
return json(
242-
{
243-
...data,
244-
...traceAndBaggage,
245-
remixVersion,
246-
},
245+
{ ...data, ...traceAndBaggage, remixVersion },
247246
{
248247
headers: res.headers,
249248
statusText: res.statusText,
@@ -257,11 +256,7 @@ function makeWrappedRootLoader(remixVersion: number) {
257256
}
258257
}
259258

260-
return {
261-
...res,
262-
...traceAndBaggage,
263-
remixVersion,
264-
};
259+
return { ...res, ...traceAndBaggage, remixVersion };
265260
};
266261
};
267262
}

0 commit comments

Comments
 (0)