Skip to content

Commit 5ef066c

Browse files
committed
.
1 parent 9d1b35d commit 5ef066c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

packages/browser-utils/src/metrics/browserMetrics.ts

+2
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,8 @@ export function _addResourceSpans(
542542
const startTimestamp = timeOrigin + startTime;
543543
const endTimestamp = startTimestamp + duration;
544544

545+
// SOMETHING HERE IS FUCKY
546+
545547
startAndEndSpan(span, startTimestamp, endTimestamp, {
546548
name: resourceUrl.replace(WINDOW.location.origin, ''),
547549
op: entry.initiatorType ? `resource.${entry.initiatorType}` : 'resource.other',

packages/browser-utils/src/metrics/utils.ts

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export function startAndEndSpan(
2121
endTime: SpanTimeInput,
2222
{ ...ctx }: StartSpanOptions,
2323
): Span | undefined {
24+
// SOMETHING HERE IS FUCKY
2425
const parentStartTime = spanToJSON(parentSpan).start_timestamp;
2526
if (parentStartTime && parentStartTime > startTimeInSeconds) {
2627
// We can only do this for SentrySpans...

0 commit comments

Comments
 (0)