Connect app traces with web content in a WebView

オープン
#5,951 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
csharp

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

.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?
主要言語
C#
スター
775
フォーク
262
平均マージ
1日 16時間
マージ済み PR(30日)
118

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

getsentry/sentry-dotnet のほかの issue

getsentry/sentry-dotnet の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。