Connect app traces with web content in a WebView

Aperta
#5,951 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
csharp

Direzione di ricerca

Read the Apple and Android WebView tracing docs linked in the issue, then review the Cocoa bindings and the option dropped in #5949. Compare the platform APIs and the MAUI WebView and BlazorWebView use cases, including the context in #1954. Done means agreeing on the .NET API and shared behavior before implementing trace continuation into JavaScript pages.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

.NET Feature Framework: MAUI Platform: Android Platform: iOS State: Needs Discussion

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. #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?
Lingua principale
C#
Stelle
775
Fork
262
Merge medio
1g 16h
PR unite (30g)
118

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di getsentry/sentry-dotnet

Tutte le issue di getsentry/sentry-dotnet

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.