bugzilla.mozilla.org will be intermittently unavailable on Saturday, March 24th, from 16:00 until 20:00 UTC.

App usage metrics won't send out on foxfooding devices



Firefox OS
2 years ago
2 years ago


(Reporter: ihsiao, Unassigned)


Firefox Tracking Flags

(Not tracked)



(1 attachment)



2 years ago
Created attachment 8687859 [details]

App Usage metrics won't send to server on foxfooding devices

1) Set DOGFOOD=1 in Makefile on a test device to simulate a foxfooding device
2) Follow the wiki to modify files and reset gaia
3) After reset gaia, open some apps or install apps/add-ons from marketplace
4) The device won't send AppUsage metrics

###Expected result###
The device should send AppUsage metrics every minute

###Observed result###
The device won't send AppUsage metrics

### Environmental Variables###
Build ID               20151110094357
Gaia Revision          9dc33b054d31bbe692777a6a340c6da85e512978
Gaia Date              2015-11-16 09:35:36
Gecko Revision         http://hg.mozilla.org/releases/mozilla-b2g44_v2_5/rev/e14287b00a514a15418dfaa89287030c588ad19d
Gecko Version          44.0a2
Device Name            aries
Firmware(Release)      4.4.2
Firmware(Incremental)  eng.worker.20151110.090331
Firmware Date          Tue Nov 10 09:03:39 UTC 2015
Bootloader             s1


2 years ago
QA Whiteboard: [COM=Telemetry]
Flags: needinfo?(thills)

Comment 1

2 years ago
Hi Norry,
Could you help to assign someone to find the regression window? Thanks.
Flags: needinfo?(fan.luo)
Hi Iris,

I was just trying to repro this.  I believe the issue may be that when you set DOGFOOD=1, the build settings will override the AUM.REPORT_INTERVAL setting.  For dogfooders, we set the build setting to one day.

You must have set the AUM.REPORT_INTERVAL = 60 * 1000; and then done the |DOGFOOD=1 make reset-gaia|.  I did the same thing initially.

What you need to do if you want to override that setting for dogfood is to change the following line 330 in AppUsageMetrics.js (or thereabout, depending on your build)

change this line:
        |AUM.REPORT_INTERVAL = result['metrics.appusage.reportInterval'];|
to this
        |AUM.REPORT_INTERVAL = 60 * 1000;|

This should give you a one minute report interval when it's set to dogfooding.

If you can confirm, that will be great.  If this turns out to be the case, perhaps we can add it to your wiki.


Flags: needinfo?(thills)
Flags: needinfo?(ihsiao)
Flags: needinfo?(fan.luo)

Comment 3

2 years ago
Hi Tamara,
You are right. I changed the line 330 to |AUM.REPORT_INTERVAL = 60 * 1000;| in app_usage_metrics.js, and the app usage metrics can send to server now. I'll mark this bug as Worksforme. Thank you.
Flags: needinfo?(ihsiao)


2 years ago
Last Resolved: 2 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.