即使API在过去几个月内有超过30,000的样本,我也无法在Firebase性能监控中查看详细的URL模式.
它只是显示根API域,如下所示:
api.myAppName.in/**
Run Code Online (Sandbox Code Playgroud)
而不是像
api.myAppName.in/app/v3/user/*/profile/
Run Code Online (Sandbox Code Playgroud)
如果您将鼠标悬停在控制台上,控制台只会在API上显示"未分类"标签
当我们收集大量样本时,将显示来自api.myAppName.in的详细URL模式.收集后最多24小时.
但正如前面所提到的,它已经过了几个月,超过30,000个样本.
我正在使用改造,如果这有帮助.
适用于 Android 的 Firebase 性能监控 SDK 自动跟踪 Activity 的缓慢渲染和冻结帧。但是 Fragment 没有这样的数据。例如,如果活动A托管 3 个片段,那么它会报告活动的渲染缓慢和冻结帧,A但无法知道是哪个片段导致了这种情况。有没有办法为片段实现类似的屏幕跟踪?
我正在尝试按照文档将我的 Android 应用程序与 Firebase 性能监控集成。
我看到控制台中报告了数据,但我总是看到“0 个会话”。当我点击“查看会话”时,我只收到一条通用消息,提示我需要升级 SDK。
我在用'com.google.firebase:firebase-perf:20.0.1'。
我错过了什么吗?
在整合2017年I/O期间发布的当前Android Firebase性能监控(beta)版本时,如下所示...
添加到项目build.gradle:
dependencies {
classpath 'com.google.firebase:firebase-plugins:1.1.0'
}
Run Code Online (Sandbox Code Playgroud)
添加到app build.gradle:
dependencies {
compile 'com.google.firebase:firebase-perf:10.2.6'
}
Run Code Online (Sandbox Code Playgroud)
您可能会遇到以下构建错误.
Error:Execution failed for task ':app:packageDebug'.
> com.google.common.util.concurrent.MoreExecutors.directExecutor()Ljava/util/concurrent/Executor;
Run Code Online (Sandbox Code Playgroud)
这是由Guava依赖项不匹配引起的,可以按如下方式解决,方法是修改项目build.gradle,如下所示:
dependencies {
classpath ('com.google.firebase:firebase-plugins:1.1.0') {
exclude group: 'com.google.guava', module: 'guava-jdk5'
}
}
Run Code Online (Sandbox Code Playgroud)
Firebase团队了解此问题,建议采用上述解决方法,并将在未来的版本中进行修复.
把它放在那里帮助其他人挠头.
我在其中一个项目中集成了Firebase性能监控功能.在该项目中,我使用Retrofit来管理我的网络请求.
遗憾的是,Firebase Performance的"网络请求"选项卡中没有显示通过Retrofit提出的任何请求.
以下是我看到的唯一内容:
有人可以告诉我,为了在Firebase Performance中查看我的Retrofit管理的网络请求,我需要做些什么吗?
谢谢
我已经集成了 firebase,日志完美地显示在 firebase 控制台中。
implementation 'com.google.firebase:firebase-perf:16.0.0'
Run Code Online (Sandbox Code Playgroud)
是与 firebase SDK 集成的片段。错误信息如下,
03-07 13:27:05.031 I/FirebasePerformance(17999): Did not receive a HTTP
Response Code
03-07 13:27:05.031 I/FirebasePerformance(17999): Unable to process an HTTP
request/response due to missing or invalid values. See earlier log
statements for additional information on the specific invalid/missing values.
Run Code Online (Sandbox Code Playgroud) 我按照文档添加了 firebase 性能监控。有数据显示,但显示 0 个会话,并且在查看会话时没有显示 cpu/内存数据,但显示我需要更新 SDK 才能查看该信息。
该插件已正确安装,并在 Firebase 控制台上提供了一些统计信息。但网络请求未列出。我正在使用 Dio 插件来管理 http 请求。
是否有关于此 pb 的任何已知问题?有人成功让它发挥作用吗?
有人面临同样的问题吗?将 firebase 性能添加到项目后,启动应用程序后立即发生错误。它仅在调试版本中崩溃,在发布版本中一切都按预期工作。也许有人有真正的答案,因为我在类似问题中发现的所有内容都是通过试错方法来处理库版本。Multidex 已打开。
\n\n错误:
\n\nE/AndroidRuntime: FATAL EXCEPTION: RxCachedThreadScheduler-2\nProcess: {PROJECT PACKAGE}, PID: 9872\nio.reactivex.exceptions.UndeliverableException: The exception could not be delivered to the consumer because it has already canceled/disposed the flow or the exception has nowhere to go to begin with. Further reading: https://github.com/ReactiveX/RxJava/wiki/What\'s-different-in-2.0#error-handling | java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/firebase/perf/network/FirebasePerfUrlConnection;\n at io.reactivex.plugins.RxJavaPlugins.onError(RxJavaPlugins.java:367)\n at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:69)\n at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)\n at java.util.concurrent.FutureTask.run(FutureTask.java:266)\n at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)\n at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)\n at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)\n at java.lang.Thread.run(Thread.java:919)\n Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/firebase/perf/network/FirebasePerfUrlConnection;\n at com.github.pwittchen.reactivenetwork.library.rx2.internet.observing.strategy.WalledGardenInternetObservingStrategy.createHttpUrlConnection(WalledGardenInternetObservingStrategy.java:124)\n at com.github.pwittchen.reactivenetwork.library.rx2.internet.observing.strategy.WalledGardenInternetObservingStrategy.isConnected(WalledGardenInternetObservingStrategy.java:107)\n at com.github.pwittchen.reactivenetwork.library.rx2.internet.observing.strategy.WalledGardenInternetObservingStrategy$1.apply(WalledGardenInternetObservingStrategy.java:66)\n at …Run Code Online (Sandbox Code Playgroud) 在实现 Firebase 的“性能”功能时,我在尝试同步 Gradle 时遇到以下错误:
Plugin with id 'com.google.firebase.firebase-perf' not found.
Run Code Online (Sandbox Code Playgroud)
我按照此处的说明实现了它: https://firebase.google.com/docs/perf-mon/get-started-android。特别是,它会引导您在根级别(项目级别)Gradle 文件中指定 com.google.firebase:perf-plugin 的类路径依赖项,而不是应用程序级别:
这是我的 Gradle,左侧是应用程序级,右侧是项目级: