Skip to content

Commit 3b27b6f

Browse files
committed
Fix for versionless protocols
1 parent ee06994 commit 3b27b6f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/tracing-internal/src/browser/request.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,10 @@ export function extractNetworkProtocol(nextHopProtocol: string): { name: string;
206206
}
207207
_name += char;
208208
}
209+
if (_name === nextHopProtocol) {
210+
// webrtc, ftp, etc.
211+
name = _name;
212+
}
209213
return { name, version };
210214
}
211215

0 commit comments

Comments
 (0)