[FR] Support sending Firebase Performance traces to multiple destinations (e.g. log, Firebase, Hotdog, Sentry, etc.)
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 30/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
調査の方向性
Issue では Now in Android のパフォーマンス追跡ユーティリティについて言及されていますが、ファイルやテストは指定されていません。まずそれらのユーティリティを見つけ、現在 Firebase Performance のトレースがどのように報告されているかを確認してください。明確に設定可能な設計でトレースを複数の宛先に転送でき、サポートされている報告動作をカバーできれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Is there an existing issue for this?
- I have searched the existing issues
Describe the problem
Description
It would be extremely helpful if the Now in Android sample app (and its performance tracking utilities) could support sending performance trace data not only to Firebase Performance Monitoring but also to other destinations such as:
- Logcat (for quick local debugging)
- Firebase Performance Dashboard (default destination)
- Hotdog
- Sentry
- (Any other custom tools)
Motivation
Developers often need performance data in multiple contexts simultaneously. For instance:
- Logcat: Useful for immediate debugging during development, CI builds, or local testing.
- Firebase: Great for aggregate analytics and real user monitoring.
- Hotdog / Sentry / etc.: Useful for centralized error/performance dashboards, custom dashboards, or alternative monitoring solutions.
Serving multiple destinations would make debugging and monitoring smoother and more flexible.
Proposed approach
- Create an abstraction layer over performance trace reporting, e.g., a
PerformanceReporterinterface. - Implement multiple reporters (e.g.,
LogcatReporter,FirebaseReporter,HotdogReporter,SentryReporter). - Make these reporters configurable (via dependency injection or a simple registry), so users can opt in to any combination they need.
Example usage
val performanceReporters = listOf(LogcatReporter(), FirebaseReporter(), SentryReporter())
PerformanceReporting.initialize(performanceReporters)
trace("user_login") {
// Business logic here
}
### Describe the solution
interface PerformanceReporter {
fun onTraceStart(name: String)
fun onTraceEnd(name: String, durationMs: Long)
}
Each destination will implement this interface, for example:
kotlin
Copy code
class FirebaseReporter : PerformanceReporter { /* ... */ }
class LogcatReporter : PerformanceReporter { /* ... */ }
class SentryReporter : PerformanceReporter { /* ... */ }
class HotdogReporter : PerformanceReporter { /* ... */ }
2. Create a CompositePerformanceReporter
This class will manage a list of reporters and forward trace events to all of them:
kotlin
Copy code
class CompositePerformanceReporter(
private val reporters: List<PerformanceReporter>
) : PerformanceReporter {
override fun onTraceStart(name: String) {
reporters.forEach { it.onTraceStart(name) }
}
override fun onTraceEnd(name: String, durationMs: Long) {
reporters.forEach { it.onTraceEnd(name, durationMs) }
}
}
### Additional context
_No response_
### Code of Conduct
- [x] I agree to follow this project's Code of Conduct
- 主要言語
- Kotlin
- スター
- 22.1k
- フォーク
- 4.7k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
android/nowinandroid のほかの issue
-
[Bug]: Search empty-state copy reads "explorer" instead of "explore"対応中かも @Amir-yazdanmanesh が 168 日前に担当しました。 オープンbug
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
android/nowinandroid#2127 ·
-
[Documentation]: Grammar error in SyncInitializer comment対応中かも @sahilpatel2521 が 185 日前に担当しました。 オープンdocumentation
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
android/nowinandroid#2121 ·
-
[FR]: Move TopicScreen user-facing strings to resources対応中かも @ois0886 が 189 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
android/nowinandroid#2115 ·
-
[Bug]: Interests top-level nav label sources string from feature/search instead of feature/interests対応中かも @Noahs212 が 193 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
android/nowinandroid#2112 ·
-
[FR]: Add network connectivity check before launching Chrome Custom Tab対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
android/nowinandroid#2110 ·
android/nowinandroid の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
emm3000/myGame#2175 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
MetrolistGroup/Metrolist#5426 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
🐛 Type:Bug 📥 State:Awaiting Assignment 🚨 Priority: P0 - Critical
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
backend
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
digitalfabrik/entitlementcard#3330 ·
メンテナーはふだん 2 日以内に返信