Skip to content

Connect app traces with web content in a WebView #5951

Open

Description

@ric-oliv

Cocoa 9.33.0 and Android 8.64.0 can pass the app's current trace into a web view, so the JavaScript SDK in the page continues it. The Apple and Android docs show how. Cocoa 9.35.0 adds options.webViewTracing to do this for every WKWebView, and React Native has sentryWebViewProps. .NET doesn't expose it on either platform. Our Cocoa bindings leave out SentryObjCWebViewTracing, and #5949 has to drop the new option because we don't bind its options type.

Some questions to discuss when we pick this up:

  • Which .NET apps would use this? MAUI's WebView and BlazorWebView both use the native web views. In a Blazor Hybrid app the components run in .NET, so the trace only helps if the page also runs the JavaScript SDK. Investigate Blazor+MAUI hybrid apps #1954 has more on Blazor Hybrid.
  • Should .NET expose each platform's API through the native options, or one MAUI API for both? Cocoa's option covers every WKWebView on its own, while Android still needs a call per WebView.
  • The Cocoa, Android and React Native SDKs added this together. Should .NET join that effort, and is there a shared spec we should match?

Activity

  1. linear-code commented on Nov 17, 2026

    @linear-code
  2. added
    .NET
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETFeatureFramework: MAUIPlatform: AndroidPlatform: iOSState: Needs Discussion

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions