canmove, Confirmed users
725
edits
No edit summary |
|||
Line 3: | Line 3: | ||
= Goals = | = Goals = | ||
* | * Gather statistics on errors (to help with prioritization) | ||
* | * Be able to correlate errors with maintenance windows, user profiles, etc. | ||
* Simplify error reporting for users who file bugs or SUMO articles | |||
* Detect the "long tail" of problems that are never filed | * Detect the "long tail" of problems that are never filed | ||
= | = Features = | ||
* | * Each submitted report should be represented by a URL or at least an opaque token (e.g. UUID) | ||
* | * Ability to query according to application, Sync, and error specific metadata | ||
* Fulltext search over submitted log data | |||
* Ability to return instructions to client upon report submission (e.g. throttling, recovery, support messages for the user, etc.) | |||
= | = Implementation = | ||
Note: This is only a draft that is being fleshed out. | |||
* Using Metric's Elastic Search system (also used for AMO stats and Socorro) at data.mozilla.org | |||
* On error, Sync POSTs a payload to data.mozilla.org: | |||
{ | |||
id: "{UUID}", | |||
app: { | |||
product: "{UUID}", | |||
version: "8.0a1", | |||
buildID: "...", | |||
locale: "en_US", | |||
addons: ["{UUID}", "{UUID}", "{UUID}", ...] | |||
}, | |||
sync: { | |||
version: "1.10", | |||
account: "eisklclxuauemrjghidis", | |||
cluster: "https://phx-sync091.services.mozilla.com/", | |||
engines: ["bookmarks", "history", ...], | |||
numClients: 2, | |||
mobileClients: true | |||
}, | |||
error: { | |||
engine: "bookmarks", | |||
result: 489294595, // the error constant if applicable | |||
}, | |||
log: "..." | |||
} | |||
* Under normal conditions, the server returns | |||
HTTP/1.1 200 OK | |||
XXX | |||
* Server can return | |||
** XXX | |||
** XXX | |||
== Discussion == | == Discussion == | ||
= Questions = | = Questions = | ||
Line 41: | Line 66: | ||
** on by default and opt out? | ** on by default and opt out? | ||
* Will this service require ToS changes? | * Will this service require ToS changes? | ||
* What do we do with custom server users? | |||
* What do we do when user has Trace logging enabled? |