Skip to content

Commit 29f29a7

Browse files
Abinet18t2t2
andauthored
Update packages/opentelemetry-sdk-trace-web/src/utils.ts
Co-authored-by: t2t2 <[email protected]>
1 parent 611cc4d commit 29f29a7

File tree

1 file changed

+1
-1
lines changed
  • packages/opentelemetry-sdk-trace-web/src

1 file changed

+1
-1
lines changed

packages/opentelemetry-sdk-trace-web/src/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export function addSpanNetworkEvents(
8787
addSpanNetworkEvent(span, PTN.CONNECT_START, resource);
8888
if (
8989
hasKey(resource as PerformanceResourceTiming, 'name') &&
90-
getProtocol((resource as PerformanceResourceTiming)['name']) === 'https:'
90+
(resource as PerformanceResourceTiming)['name'].startsWith('https:')
9191
) {
9292
addSpanNetworkEvent(span, PTN.SECURE_CONNECTION_START, resource);
9393
}

0 commit comments

Comments
 (0)