-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Count PDF Downloads #24075
Comments
Hi, I've just checked this matter on both Nightly 100.0a1 and Firefox 99.0.0 Beta 1 using a OnePlus A3 (Android 6.0.1) and neither @mcarare please review and share your thoughts |
I checked in Looker and the counter is registred: Maybe we can check this again tomorrow. Thank you! |
Hi @mcarare , I've re-checked with fellow colleague @SoftVision-LorandJanos this matter on the latest Nightly build 100.0a1 using a Google Pixel 3a (Android 11) and still neither @Dexterp37 or @badboy could you please share your thoughts ? |
I can confirm that data is not showing up in the tables. Looks like it's not being recorded by Fenix.
@mcarare are we sure the code for recording the data is being called? If data is not showing up in the ping, but other metrics are, there's a very high likelihood that the Glean APIs are not being called at all :) Let me know if that's the case, if not, we can dive into this together. |
@Dexterp37 If the metric is not recorded by Fenix where is the data from looker coming from? https://mozilla.cloud.looker.com/explore/fenix/metrics?qid=mtURu0BHGg1c6SuA6EtvVe&toggle=fil,vis Do null values also show up there? |
Hi @Dexterp37 👋🏽
Tried with various websites and neither |
Hey @AndiAJ, I would recommend starting Fenix with the command to tag pings for the debug vew or log them in order to make sure that the metric doesn't go in a metrics ping that's generated before your step 5. |
Hey @Dexterp37, indeed I'm always starting Fenix (freshly installed or having a fresh profile) using the cmd |
@AndiAJ unfortunately I'm not sure how to help more with this on this ticket. Would you like to meet over zoom for about 30 minutes to figure it out? Otherwise, happy to take it async . If you could do a screencap that would be good! |
I tested using terminal commands and I managed to record pdf opening and downloading: {"ping_info":{"seq":9,"start_time": "2022-03-29T16:18+03:00", "end_time": "2022-03-29T16:28+03:00"},"client_info":{"telemetry_sdk_build": "44.0.0", "android_sdk_version": "29", "device_model": "Nokia 7 plus", "app_channel": "debug", "app_display_version": "1.0.2213", "locale": "en-US", "app_build": "1", "os_version": "10", "os": "Android", "architecture": "arm64-v8a", "device_manufacturer": "HMD Global", "first_run_date": "2022-03-01+02:00", "build_date": "2022-03-24T10:40:01+00:00", "client_id": "feeedf5c-86f0-4161-a7dc-f125d57b158d"},"counter":{"glean.upload.pending_pings":2,"places_manager.write_query_count":21,"places_manager.read_query_count":1,"glean.validation.foreground_count":9,"metrics.tabs_open_count":3,"metrics.top_sites_count":3,"downloads.pdf_download_count":2,"power.total_cpu_time_ms":36019,"downloads.downloaded_pdf_open_count":1} https://debug-ping-preview.firebaseapp.com/pings/mcarare Note: I used |
@Dexterp37 Is the fact that the lifetime of the counter is set to |
I think that's orthogonal to the testing. As documented, this should actually make it easier to test: metrics with that lifetime, once set, stick there for the whole lifetime of the application (until the next restart), therefore the name :)
I'm not sure this would help with preventing double counting: could you please add some more information? A metric lifetime exclusively relates to when a metric gets cleared from the Glean internal storage (this could happen after a ping is submitted, or after the application is restarted, or never, like for example for the client id). See our docs. Happy to chat more about this, @mcarare , to shed some light on it! |
@Dexterp37 I do not have any context for the double-counting comment, I just remember seeing it once in our code base. |
Glad to hear :-) We're on the same timezone, so feel free to reach out in case you want to talk more about any detail related to the Glean usage! |
@AndiAJ can you retest this, maybe using |
Hi, verified as fixed on the latest Nightly 100.0a1 build using a Google Pixel 3a (Android 11) ✅ Download and open 1 PDF file - Force generate the metrics ping 050025f9-366b-4a91-a9c1-b055b8d2da31
✅ Download and open 2 more PDF files - Force generate the metrics ping 7f77bb0e-c32f-4955-a249-919560a2cf9a
⏳ Force stop Fenix and set the date to D+1
Thanks @Dexterp37 and @mcarare for helping me out! |
https://mozilla-hub.atlassian.net/browse/FNXV2-19514
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: