-
Notifications
You must be signed in to change notification settings - Fork 584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firebase Performance Monitoring: The App start trace _app_start
seems missing, but other traces work!
#5764
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
Hi @kurosaki-tisak, thank you for reaching out and reporting the issue. When trying to reproduce the issue, I noticed that instead of "_app_start", an "_as" event has been logged in the Logcat. Upon checking the Firebase Console Dashboard, the "_app_start" event is visible under the Custom traces tab. Could you check if you can see the |
Hello @lehcar09 and thank you for your support! As you can see in the screenshot below, Also, on the Firebase Performance Dashboard, as shown in the screenshot below, the _ Thank you! |
Is there any chance you share an MCVE to help us investigate the issue? If you're unable to provide one, can you try our quickstart app and see if you can reproduce the issue? |
I am also facing the same issue. But the twist is, I have created one sample app and tried the same, So |
I have fixed this. |
Hi @VishalRajora, thanks for confirming that this is resolved on your end. I'm guessing there might've been a configuration issue. I'll go ahead and close this for now. Thanks! |
@argzdev we're seeing the same thing others have described above - no app start traces, but custom traces and all the other automatic traces are fine. Looking at our data in Firebase this seems to have started when we upgraded the Firebase BOM from 31.1.1 to 32.2.0. There are no |
I think I figured this out. It's because we initialize Firebase manually, and there was a change between those BOM versions that explicitly disables app start traces if you aren't using firebase-android-sdk/firebase-common/src/main/java/com/google/firebase/FirebaseApp.java Lines 433 to 437 in bb0823f
firebase-android-sdk/firebase-perf/src/main/java/com/google/firebase/perf/FirebasePerfEarly.java Lines 48 to 52 in bb0823f
|
That turns out to only be the first issue - it still doesn't work after switching to When I attach a debugger and start the app from the launcher icon I'm seeing that this: firebase-android-sdk/firebase-perf/src/main/java/com/google/firebase/perf/metrics/AppStartTrace.java Lines 568 to 572 in bb0823f
is executed before firebase-android-sdk/firebase-perf/src/main/java/com/google/firebase/perf/metrics/AppStartTrace.java Line 328 in bb0823f
So Firebase considers this a background process start and does not send an app start trace. |
The ordering assumptions described here seem to be wrong: firebase-android-sdk/firebase-perf/src/main/java/com/google/firebase/perf/metrics/AppStartTrace.java Lines 552 to 559 in bb0823f
Here's a simple demonstration that mimics what Firebase Performance is doing. Copy-paste this provider into a new sample project, register it in the manifest and launch the default activity:
You'll see this in logcat:
|
One more update: It appears that the ordering assumptions hold sometimes. Weirdly things seem to behave differently on emulators and physical devices. Using the sample code in #5764 (comment): API 24 emulator (they hold):
API 34 physical device (they do not hold, so there are no app start traces sent):
API 34 emulator (they hold):
I don't have any other physical devices to test on at the moment. |
[READ] Step 1: Are you in the right place?
Issues filed here should be about bugs in the code in this repository.
If you have a general question, need help debugging, or fall into some
other category use one of these other channels:
with the firebase tag.
google group.
of the above categories, reach out to the personalized
Firebase support channel.
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
As the screenshot below, I found the app start trace was missing from both the Logcat and Performance dashboards, but other automatic traces and custom traces work!
I have done everything like the documents said, but the
_app_start
is still missing!The text was updated successfully, but these errors were encountered: