Skip to content

Commit d8feca0

Browse files
committed
add comment
1 parent 9620908 commit d8feca0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,9 @@ export function _addResourceSpans(
541541
setResourceEntrySizeData(attributes, entry, 'decodedBodySize', 'http.decoded_response_content_length');
542542

543543
if (entry.deliveryType != null) {
544+
// Falling back to 'default' as attributes with empty string are dropped by our backend.
545+
// The empty string is the default value for the deliveryType attribute, indicating that
546+
// the browser actually sent a request (as opposed to retrieved the response from its cache).
544547
attributes['http.response_delivery_type'] = entry.deliveryType || 'default';
545548
}
546549

0 commit comments

Comments
 (0)