Closed
Bug 1463092
Opened 6 years ago
Closed 6 years ago
Instrument inspection of "Jump to Source" in the Web Console with event telemetry
Categories
(DevTools :: General, enhancement, P2)
Tracking
(firefox63 fixed)
RESOLVED
FIXED
Firefox 63
Tracking | Status | |
---|---|---|
firefox63 | --- | fixed |
People
(Reporter: miker, Assigned: miker)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
No description provided.
Assignee | ||
Comment 1•6 years ago
|
||
Events.yaml: devtools.main: jump_to_source: objects: ["webconsole"], bug_numbers: [1463092] notification_emails: ["dev-developer-tools@lists.mozilla.org", "hkirschner@mozilla.com"] record_in_processes: ["main"] description: User has clicked a link to a source file in the web console. release_channel_collection: opt-out expiry_version: never Usage: this.telemetry.recordEvent("devtools.main", "jump_to_source", "webconsole");
Attachment #8979202 -
Flags: review?(andrei.br92)
Assignee | ||
Updated•6 years ago
|
Attachment #8979202 -
Flags: review?(andrei.br92) → review?(francois)
Comment 2•6 years ago
|
||
Comment on attachment 8979202 [details] data-review.txt 1) Is there or will there be **documentation** that describes the schema for the ultimate data set available publicly, complete and accurate? Yes, Events.yaml. 2) Is there a control mechanism that allows the user to turn the data collection on and off? Yes, telemetry setting. 3) If the request is for permanent data collection, is there someone who will monitor the data over time?** Yes, Harald Kirschner. 4) Using the **[category system of data types](https://wiki.mozilla.org/Firefox/Data_Collection)** on the Mozilla wiki, what collection type of data do the requested measurements fall under? ** Category 2 5) Is the data collection request for default-on or default-off? Default on, all channels. 6) Does the instrumentation include the addition of **any *new* identifiers** (whether anonymous or otherwise; e.g., username, random IDs, etc. See the appendix for more details)? No. 7) Is the data collection covered by the existing Firefox privacy notice? Yes. 8) Does there need to be a check-in in the future to determine whether to renew the data? No, permanent.
Attachment #8979202 -
Flags: review?(francois) → review+
Updated•6 years ago
|
Product: Firefox → DevTools
Comment hidden (mozreview-request) |
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → mratcliffe
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•6 years ago
|
||
Try run failed because we still need a full build to see new events inside Events.yaml.
Comment hidden (mozreview-request) |
Comment 6•6 years ago
|
||
mozreview-review |
Comment on attachment 8987112 [details] Bug 1463092 - Instrument inspection of 'Jump to Source' in the Web Console with event telemetry https://reviewboard.mozilla.org/r/252340/#review259740 Thanks for the patch Mike! Can't always rely on this.toolbox here, would like to have a look at a new version of the patch fixing this. I remember Harald said that we should actually not use devtools.main for tool specific events, so let's confirm the naming of the event before landing. ::: devtools/client/webconsole/webconsole-output-wrapper.js:37 (Diff revision 2) > this.queuedMessageAdds = []; > this.queuedMessageUpdates = []; > this.queuedRequestUpdates = []; > this.throttledDispatchPromise = null; > > - this._telemetry = new Telemetry(); > + this.telemetry = this.toolbox.telemetry; this.toolbox is not always available (eg for the BrowserConsole). This is the reason for the try failures. ::: devtools/client/webconsole/webconsole-output-wrapper.js:167 (Diff revision 2) > if (this.toolbox) { > Object.assign(serviceContainer, { > onViewSourceInDebugger: frame => { > - this.toolbox.viewSourceInDebugger(frame.url, frame.line).then(() => > - this.hud.emit("source-in-debugger-opened") > + this.toolbox.viewSourceInDebugger(frame.url, frame.line).then(() => { > + this.telemetry.recordEvent("devtools.main", "jump_to_source", "webconsole", > + null, { "session_id": this.toolbox.sessionId } Do we want to keep track of the type of source ? - script for debugger - css for style-editor - scratchpad
Attachment #8987112 -
Flags: review?(jdescottes)
Comment 7•6 years ago
|
||
Harald, I remember we had a discussion about the naming for tool-specific events. Did we decide whether we should always use "devtools.main" or not?
Flags: needinfo?(hkirschner)
Comment 8•6 years ago
|
||
Double-checking with :chutten and :sunahsuh, we will stick with devtools.main as there are only minor pros and cons in changing.
Flags: needinfo?(hkirschner)
Assignee | ||
Comment 9•6 years ago
|
||
mozreview-review |
Comment on attachment 8987112 [details] Bug 1463092 - Instrument inspection of 'Jump to Source' in the Web Console with event telemetry https://reviewboard.mozilla.org/r/252340/#review260050 ::: devtools/client/webconsole/webconsole-output-wrapper.js:37 (Diff revision 2) > this.queuedMessageAdds = []; > this.queuedMessageUpdates = []; > this.queuedRequestUpdates = []; > this.throttledDispatchPromise = null; > > - this._telemetry = new Telemetry(); > + this.telemetry = this.toolbox.telemetry; Yup, so I see... fixed.
Assignee | ||
Comment 10•6 years ago
|
||
mozreview-review-reply |
Comment on attachment 8987112 [details] Bug 1463092 - Instrument inspection of 'Jump to Source' in the Web Console with event telemetry https://reviewboard.mozilla.org/r/252340/#review259740 I have spoken to Harald and he agreed that we will continue to use devtools.main for now. > Do we want to keep track of the type of source ? > - script for debugger > - css for style-editor > - scratchpad Maybe in the future... it is really easy to do but I have been politely asked not to add all the things ;) Harald has been having us add the more specific telemetry in later patches so lets stick to his plan.
Comment hidden (mozreview-request) |
Comment 12•6 years ago
|
||
mozreview-review |
Comment on attachment 8987112 [details] Bug 1463092 - Instrument inspection of 'Jump to Source' in the Web Console with event telemetry https://reviewboard.mozilla.org/r/252340/#review260056 Thanks! Works for me if try is green
Attachment #8987112 -
Flags: review?(jdescottes) → review+
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 15•6 years ago
|
||
(In reply to Julian Descottes [:jdescottes][:julian] from comment #12) > Comment on attachment 8987112 [details] > Bug 1463092 - Instrument inspection of 'Jump to Source' in the Web Console > with event telemetry > > https://reviewboard.mozilla.org/r/252340/#review260056 > > Thanks! Works for me if try is green Which it is.
Comment 16•6 years ago
|
||
Pushed by mratcliffe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ce4cec449d65 Instrument inspection of 'Jump to Source' in the Web Console with event telemetry r=jdescottes
Comment 17•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ce4cec449d65
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 63
You need to log in
before you can comment on or make changes to this bug.
Description
•