Skip to content

Commit a61837f

Browse files
AbhiPrasadLms24
andauthored
Update packages/browser-utils/src/metrics/browserMetrics.ts
Co-authored-by: Lukas Stracke <[email protected]>
1 parent 7d46ea1 commit a61837f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ export function _addResourceSpans(
717717

718718
// Checking for only `undefined` and `null` is intentional because it's
719719
// valid for `nextHopProtocol` to be an empty string.
720-
if (entry.nextHopProtocol != undefined) {
720+
if (entry.nextHopProtocol != null) {
721721
const { name, version } = extractNetworkProtocol(entry.nextHopProtocol);
722722
attributes['network.protocol.name'] = name;
723723
attributes['network.protocol.version'] = version;

0 commit comments

Comments
 (0)