Sentry 是一個用於 Dart 的錯誤報告庫,可捕獲並傳輸執行時錯誤和例外狀況至 Sentry.io,讓開發人員能夠即時監控和除錯問題。它支援 Dart VM 和 Web 平台,提供詳細的堆疊追蹤、內容資料和效能洞察。該程式庫可無縫整合至 Dart 應用程式中,協助團隊快速識別和解決錯誤。對於 Flutter 應用,建議改用專用的 sentry_flutter 套件。
適用情境
即時崩潰監控
Web 和伺服器端 Dart 中的錯誤追蹤
性能問題檢測
除錯生產問題
與 Sentry.io 儀表板整合
主要特色
跨平台支援(Web、VM)
自動錯誤捕獲
上下文和麵包屑日誌
與 Sentry.io 後端整合
自定義事件標記和過濾
適合對象
Dart 應用程式在 Web 與伺服器上
使用 Sentry.io 進行監控的團隊
需要崩潰分析的開發者
需要詳細錯誤上下文的專案
針對多個平台的應用程式
使用建議
不適用於 Flutter 應用程式(請改用 sentry_flutter)
需要 Sentry.io 帳戶和專案設定
可能會稍微增加應用程式套件大小
需要正確設定才能達到最佳效能
與 sentry_flutter 相比,原生行動功能有限
原始 README
以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。
Bad software is everywhere, and we're tired of it. Sentry is on a mission to help developers write better software faster, so we can get back to enjoying technology. If you want to join us Check out our open positions
Sentry SDK for Dart and Flutter
Package
CI status
Likes
Downloads
Analysis
Releases
This repo uses the following ways to release SDK updates:
Pre-release: We create pre-releases (alpha, beta, RC,…) for larger and potentially more impactful changes, such as new features or major versions.
Latest: We continuously release major/minor/hotfix versions from the main branch. These releases go through all our internal quality gates and are very safe to use and intended to be the default for most teams.
Stable: We promote releases from Latest when they have been used in the field for some time and in scale, considering time since release, adoption, and other quality and stability metrics. These releases will be indicated on the releases page (https://github.com/getsentry/sentry-dart/releases/) with the Stable suffix.
Starting with May 1st 2024, iOS apps are required to declare approved reasons to access certain APIs. This also includes third-party SDKs.
If you are using sentry-flutter, update to at least version 7.17.0 to get the updated sentry-cocoa native iOS/macOS SDK, supporting the privacy manifest.
All other used dependencies with file declarations are supported by Sentry packages.
Run flutter pub upgrade to the latest compatible versions of all the dependencies.
SDK Size Overhead
The Sentry SDKs for Dart and Flutter typically add approximately 1-1.5 MB to an app’s binary size. The exact impact may vary depending on the device architecture.