Closed Bug 1216418 Opened 9 years ago Closed 9 years ago

AdvancedTelemetry does not enabled properly

Categories

(Firefox OS Graveyard :: Gaia::System, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:2.5?)

RESOLVED INVALID
blocking-b2g 2.5?

People

(Reporter: ihsiao, Unassigned)

Details

### Steps:
1. Modify the advanced_telemetry.js and reset gaia
   AT.REPORT_URL = 'https://incoming-telemetry-mozilla-org-fw81a67t0so2.runscope.net/submit/telemetry';
   AT.REPORT_INTERVAL = 3 * 60 * 1000;
   AT.REPORT_TIMEOUT = 20 * 1000;
   AT.RETRY_INTERVAL = 20 * 1000;
   AT.MERGE_INTERVAL = 1 * 60 * 1000;
2. Monitor ftuping/appusage/advancedTelemetry logs via this command:
$ adb logcat -v threadtime | grep -i -E 'advancedtelemetry|ftuping|appusage'

3. Enable advanced telemetry in FTE. Select "Enhanced" in "About Foxfood" page, and check adb logs, you should see the following logs for enabling AppUsage and AdvancedTelemetry:
   10-20 13:09:11.314  6805  6805 I GeckoConsole: Content JS LOG: [AdvancedTelemetryInfo] Start Collecting 
   10-20 13:09:11.324  6805  6805 I GeckoConsole: Content JS LOG: [AppUsage] starting app usage metrics collection 

4. After the FTE, AdvancedTelemetry didn't collect data correctly, neither send to server when the report interval is reached (should be 3 minutes from above setting)


### Expected behavior:
We should see the AdvancedTelemetry adb logs, such as:
10-15 16:33:25.971  1966  1966 I GeckoConsole: Content JS LOG: [AdvancedTelemetry] calling sendTelemetryData 
10-15 16:33:26.191  1966  1966 I GeckoConsole: Content JS LOG: [AdvancedTelemetry]{"type":"advancedtelemetry" ...

And then server will receive the Metrics payload.


### Observed behavior:
AdvancedTelemetry didn't collect data correctly, neither send to server when the report interval is reached.
[Blocking Requested - why for this release]: The AdvancedTelemetry function is broken and this issue will block 2.5 Telemetry testing.
blocking-b2g: --- → 2.5?
QA Whiteboard: [COM=Telemetry]
Flags: needinfo?(thills)
Flags: needinfo?(rnicoletti)
Build ID               20151019205841
Gaia Revision          22c7651e57164f57117a863bb1a3b6098c6f9588
Gaia Date              2015-10-20 02:21:13
Gecko Revision         https://hg.mozilla.org/mozilla-central/rev/9605da94e75d61598d3c00f01a12d1b6bc427a6c
Gecko Version          44.0a1
Device Name            aries
Firmware(Release)      4.4.2
Firmware(Incremental)  eng.worker.20151019.201730
Firmware Date          Mon Oct 19 20:17:38 UTC 2015
Bootloader             s1
Is this issue duplicate bug 1215654?
I just found that my settings are wrong in the advanced_telemetry.js, mark this bug as invalid.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
Flags: needinfo?(thills)
Flags: needinfo?(rnicoletti)
You need to log in before you can comment on or make changes to this bug.