From 29f29a74d680171fcbd6e17ef71b783a15581eb5 Mon Sep 17 00:00:00 2001 From: Abinet18 <35442169+Abinet18@users.noreply.github.com> Date: Tue, 13 Jun 2023 09:41:32 -0700 Subject: [PATCH] Update packages/opentelemetry-sdk-trace-web/src/utils.ts Co-authored-by: t2t2 --- packages/opentelemetry-sdk-trace-web/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opentelemetry-sdk-trace-web/src/utils.ts b/packages/opentelemetry-sdk-trace-web/src/utils.ts index 6f2ba32660..87098c0f58 100644 --- a/packages/opentelemetry-sdk-trace-web/src/utils.ts +++ b/packages/opentelemetry-sdk-trace-web/src/utils.ts @@ -87,7 +87,7 @@ export function addSpanNetworkEvents( addSpanNetworkEvent(span, PTN.CONNECT_START, resource); if ( hasKey(resource as PerformanceResourceTiming, 'name') && - getProtocol((resource as PerformanceResourceTiming)['name']) === 'https:' + (resource as PerformanceResourceTiming)['name'].startsWith('https:') ) { addSpanNetworkEvent(span, PTN.SECURE_CONNECTION_START, resource); }