Support disabling Sentry for selected Unity platforms

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
csharp, unity

調査の方向性

まず既存の Unity プラットフォーム処理と関連する issue #2408 を確認し、次に Sentry アセンブリ、ネイティブプラグイン、マネージド依存関係が IL2CPP ビルドにどのように含まれるかを追跡します。プラットフォームごとのコンパイル時オプトアウトを定義し、無効化されたターゲットでそれらのコンポーネントが除外される一方、デスクトップビルドではインストール済みの OpenUPM パッケージを通じて引き続き Sentry が使用されることを検証します。

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

説明

Feature Unity
Use case

We install Sentry Unity through OpenUPM and use it on desktop only. Android and iOS use Bugly, so Sentry is not initialized on those platforms.

Runtime guards prevent initialization, but the Sentry assemblies and dependencies can still be included in IL2CPP builds. In our comparison, enabling Sentry increased Managed/IL2CPP VM by about 15.9 MiB. We want to avoid this cost on platforms where Sentry is unused.

Request

Please provide an officially supported way to disable Sentry at compile time for selected Unity build targets, for example:

  • a symbol such as SENTRY_UNITY_DISABLE; or
  • a per-platform option in Sentry Project Settings.

When disabled, Sentry runtime code, native plugins, and managed dependencies should not be included in that player. The package should remain installed and updateable through OpenUPM so Sentry can still be used on desktop without maintaining a fork.

This is related to #2408, but specifically requests a per-platform compile-time opt-out.

主要言語
C#
スター
295
フォーク
63
平均マージ
4日 10時間
マージ済み PR(30日)
29

環境構築

はじめの一歩

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

getsentry/sentry-unity のほかの issue

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

似ている issue

C# の issue をもっと見る

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

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