Skip to content

Commit 0d418c2

Browse files
committed
update request and response spans
1 parent 7a10db7 commit 0d418c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -497,16 +497,16 @@ function _addRequest(span: Span, entry: Record<string, any>, timeOrigin: number)
497497
// In order not to produce faulty spans, where the end timestamp is before the start timestamp, we will only collect
498498
// these spans when the responseEnd value is available. The backend (Relay) would drop the entire span if it contained faulty spans.
499499
startAndEndSpan(span, requestStartTimestamp, responseEndTimestamp, {
500-
op: 'browser',
501-
name: 'request',
500+
op: 'browser.request',
501+
name: entry.name,
502502
attributes: {
503503
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.ui.browser.metrics',
504504
},
505505
});
506506

507507
startAndEndSpan(span, responseStartTimestamp, responseEndTimestamp, {
508-
op: 'browser',
509-
name: 'response',
508+
op: 'browser.response',
509+
name: entry.name,
510510
attributes: {
511511
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.ui.browser.metrics',
512512
},

0 commit comments

Comments
 (0)