Implement telemetry reporting on B2G

NEW
Unassigned

Status

Firefox OS
Performance
P2
normal
4 years ago
2 years ago

People

(Reporter: (dormant account), Unassigned)

Tracking

(Depends on: 1 bug, Blocks: 1 bug, {perf})

unspecified
ARM
Gonk (Firefox OS)
Dependency tree / graph

Firefox Tracking Flags

(tracking-b2g:-)

Details

(Whiteboard: [c=automation p= s= u=])

(Reporter)

Description

4 years ago
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)

Updated

4 years ago
Keywords: perf
OS: Windows 8 → Gonk (Firefox OS)
Hardware: x86_64 → ARM
Whiteboard: [c=automation p= s= u=]

Updated

4 years ago
Depends on: 796430
Priority: -- → P2

Comment 1

3 years ago
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 ?
Component: General → Performance
Whiteboard: [c=automation p= s= u=] → [c=automation p= s= u=2.1]

Comment 2

3 years ago
Taras please see my comment 1.
Flags: needinfo?(taras.mozilla)
(Reporter)

Comment 3

3 years ago
(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
Flags: needinfo?(taras.mozilla)

Updated

3 years ago
Blocks: 1043600

Updated

3 years ago
Whiteboard: [c=automation p= s= u=2.1] → [c=automation p= s= u=]

Updated

2 years ago
tracking-b2g: --- → -
You need to log in before you can comment on or make changes to this bug.