SentryプロファイリングをUI Profilingに移行し@sentry/react-nativeをv8.11.1にアップグレード#5963
Merged
Conversation
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
📝 Walkthrough概要Sentry React Native ライブラリを 7.11.0 から 8.11.1 にアップグレードし、初期化設定を新しいプロファイリング API に更新しました。セッションプロファイリングとアプリ起動時トレースが有効化されています。 変更内容Sentry プロファイリング設定アップグレード
見積もりレビュー工数🎯 2 (Simple) | ⏱️ ~8 分 詩
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
Sentry でプロファイルが取得できない事象を調査し、
@sentry/react-nativeを~7.11.0→~8.11.1にメジャーアップグレードしたうえで、Sentry 推奨の UI Profiling(継続プロファイリング)構成に切り替えた。変更の種類
変更内容
package.json/package-lock.json:@sentry/react-nativeを~7.11.0から~8.11.1にアップグレード。index.js: 旧式のprofilesSampleRate: 1.0(トランザクションベース)を廃止し、Sentry 推奨のprofilingOptionsベースの UI Profiling 設定に置き換え:profileSessionSampleRate: 1.0lifecycle: 'trace'(サンプリングされたスパンが存在する間だけプロファイラを稼働させる)startOnAppStart: true(App Start プロファイルを起動時から取得)経緯(プロファイルが届かなかった原因)
pthread_kill SIGABRT)が未修正で、プロファイル送信が落ちることがあった(v8.10.0 で修正)。v8 のネイティブ最低要件(iOS 15+, Xcode 16.4+, AGP 7.4+, Kotlin 1.8+)は現行の Expo 55 / RN 0.83 環境で既に満たされており、ネイティブ側の追加変更は不要。
テスト
npm run lintが通ることnpm testが通ることnpm run typecheckが通ること関連Issue
スクリーンショット(任意)
Generated by Claude Code
Summary by CodeRabbit