Last Comment Bug 918444 - Implement telemetry reporting on B2G
: Implement telemetry reporting on B2G
Status: NEW
[c=automation p= s= u=]
: perf
Product: Firefox OS
Classification: Client Software
Component: Performance (show other bugs)
: unspecified
: ARM Gonk (Firefox OS)
P2 normal (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
:
Mentors:
Depends on: 796430
Blocks: 1043600
  Show dependency treegraph
 
Reported: 2013-09-19 11:52 PDT by (dormant account)
Modified: 2015-08-26 23:01 PDT (History)
11 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
-


Attachments

Description User image (dormant account) 2013-09-19 11:52:28 PDT
I've been thinking how to implement telemetry for b2g given the multiprocess nature of it. I think we should start by implementing the mechanism to upload reports.
The way to do is is to define a directory where one can save files to. These files would contain a single json packet per file and the file would be gzip compressed. Each of these files would then be sent via xhr to telemetry files just as doPing() does in http://mxr.mozilla.org/mozilla-central/source/toolkit/components/telemetry/TelemetryPing.js#680

Upon submission the files should be deleted. The submissions should aim to  happen every 24hours or so. json should use similar structure to what is used in Firefox(eg use a uuid). The submissions should also have some common field to indicate that the files are all part of the same submission so different apps can be correlated on the serverside.

It would then be up to each b2g app what to put into those files. Some apps would opt for submitting low level histogram details with http://mxr.mozilla.org/mozilla-central/source/toolkit/components/telemetry/TelemetryPing.js#562 others can submit other arbitrary json(so long as it fits the telemetry privacy policy)
Comment 1 User image Mike Lee [:mlee] 2014-06-26 17:31:55 PDT
UPDATE:

doPing() is now at http://mxr.mozilla.org/mozilla-central/source/toolkit/components/telemetry/TelemetryPing.jsm#790

Taras,
> 
> It would then be up to each b2g app what to put into those files. Some apps
> would opt for submitting low level histogram details with
> http://mxr.mozilla.org/mozilla-central/source/toolkit/components/telemetry/
> TelemetryPing.js#562 others can submit other arbitrary json(so long as it
> fits the telemetry privacy policy)

Is this referring to gatherStartupHistograms(): http://mxr.mozilla.org/mozilla-central/source/toolkit/components/telemetry/TelemetryPing.jsm#672 ?
Comment 2 User image Mike Lee [:mlee] 2014-06-26 17:33:23 PDT
Taras please see my comment 1.
Comment 3 User image (dormant account) 2014-06-27 08:16:29 PDT
(In reply to Mike Lee [:mlee] from comment #1)
> UPDATE:
> 
> doPing() is now at
> http://mxr.mozilla.org/mozilla-central/source/toolkit/components/telemetry/
> TelemetryPing.jsm#790
> 
> Taras,
> > 
> > It would then be up to each b2g app what to put into those files. Some apps
> > would opt for submitting low level histogram details with
> > http://mxr.mozilla.org/mozilla-central/source/toolkit/components/telemetry/
> > TelemetryPing.js#562 others can submit other arbitrary json(so long as it
> > fits the telemetry privacy policy)
> 
> Is this referring to gatherStartupHistograms():
> http://mxr.mozilla.org/mozilla-central/source/toolkit/components/telemetry/
> TelemetryPing.jsm#672 ?

yes

Note You need to log in before you can comment on or make changes to this bug.