Skip to content

Commit fde86eb

Browse files
committed
rebased
1 parent 86dda0b commit fde86eb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

common/src/main/java/com/microsoft/identity/common/internal/ui/webview/AzureActiveDirectoryWebViewClient.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -583,9 +583,7 @@ private void processSwitchBrowserRequest(@NonNull final String url) {
583583
protected void processWebsiteRequest(@NonNull final WebView view, @NonNull final String url) {
584584
final String methodTag = TAG + ":processWebsiteRequest";
585585
view.stopLoading();
586-
final SpanContext spanContext = getActivity() instanceof AuthorizationActivity ? ((AuthorizationActivity) getActivity()).getSpanContext() : null;
587-
final Span span = spanContext != null ?
588-
OTelUtility.createSpanFromParent(SpanName.ProcessWebsiteRequest.name(), spanContext) : OTelUtility.createSpan(SpanName.ProcessWebsiteRequest.name());
586+
final Span span = createSpanWithAttributesFromParent(SpanName.ProcessWebsiteRequest.name());
589587
span.setAttribute(AttributeName.is_in_web_cp_flow.name(), mInWebCpFlow);
590588
try (final Scope scope = SpanExtension.makeCurrentSpan(span)) {
591589
if (isDeviceCaRequest(url)) {

0 commit comments

Comments
 (0)