Open
Bug 1503197
Opened 6 years ago
Updated 2 years ago
Add telemetry probes to track usage of the Flexbox Inspector
Categories
(DevTools :: Inspector, enhancement, P2)
DevTools
Inspector
Tracking
(Not tracked)
NEW
People
(Reporter: pbro, Unassigned)
References
(Depends on 1 open bug)
Details
Before we let the new Flexbox Inspector ride the trains (likely with 65), we need to make sure it has some telemetry probes defined so we can track its usage.
If the selected element is a flex container or item, and if the layout tab is selected and the corresponding container or item accordion is open, then record:
- open count
- active time
like we do for other tools.
If the flexbox highlighter is shown (either from the markup badge, the rule-view or the layout sidebar), then record:
- open count
- active time
I can also think of a few events we might want to track:
- When an item is clicked in the list of items in the flex container sidebar.
- When an item is clicked in the drop-down list of items in the flex item sidebar.
- When the back arrow is clicked to go back to the flex container sidebar.
- When the color-picker swatch is clicked and a new color is chosen.
Reporter | ||
Comment 1•6 years ago
|
||
Martin: I took some liberties compared to what was specified in the PRD: https://docs.google.com/document/d/1rqSNguADziEyVELWugJRjpjnNOixNW_zEmj1zoJiSbY/edit
Do you approve of these probes? Are there others we should track? Anything different?
Flags: needinfo?(mbalfanz)
Reporter | ||
Comment 2•6 years ago
|
||
(In reply to Patrick Brosset <:pbro> from comment #0)
> If the flexbox highlighter is shown (either from the markup badge, the
> rule-view or the layout sidebar), then record:
> - open count
> - active time
This should be recorded per entry point type.
Comment 3•6 years ago
|
||
The probes sound very good to me.
I'd like to track the entry point type for the highlighter, esp. to understand if the sidebar toggle is used:
- Layout badge
- Rules view
- Sidebar toggle
Also, if possible I'd like to see if a flex item is a flex container at the same time.
Flags: needinfo?(mbalfanz)
Reporter | ||
Updated•6 years ago
|
Severity: normal → enhancement
Priority: -- → P2
Reporter | ||
Comment 4•6 years ago
|
||
I'm starting to think about this more. The first step is to model the data we will need for this.
So here's an attempt at this:
- Count the number of times the flex container accordion is open. Do this upon element selection and upon accordion toggle (and only if the layout view is visible).
- Count the number of times the flex item accordion is open. Do this upon element selection and upon accordion toggle (and only if the layout view is visible).
- Count the total number of times a given accordion type is displayed (opened or closed doesn't matter). Do this upon element selection (and only if the layout view is visible). Valid types are container, item, containeritem.
- When an item is clicked in the list of items in the flex container accordion, record an event.
- When an item is clicked in the drop-down list of items in the flex item accordion, record an event.
- When the back arrow is clicked to go back to the flex container accordion, record an event.
- When the color-picker swatch is clicked, record an event
- Count the nb of times the highlighter is activated from the markup-view.
- Count the nb of times the highlighter is activated from the rules-view.
- Count the nb of times the highlighter is activated from the layout-view.
- Measure how long the highlighter is ON for (however it was activated).
Martin: does this sound good to you so far?
Flags: needinfo?(mbalfanz)
Comment 5•6 years ago
|
||
>- Count the number of times the flex container accordion is open. Do this upon element selection and upon accordion toggle (and only if the layout view is visible).
>- Count the number of times the flex item accordion is open. Do this upon element selection and upon accordion toggle (and only if the layout view is visible).
If possible, I'd like to only count them if there is relevant content and the layout tab is actually open. So situations where the panel says "Select a Flex container or item to continue" should be ignored.
Other than that, the list looks good to me!
Flags: needinfo?(mbalfanz)
Here is how we do it for the sidebar:
https://searchfox.org/mozilla-central/source/toolkit/components/telemetry/Histograms.json#9852
https://searchfox.org/mozilla-central/source/devtools/client/inspector/toolsidebar.js#316,329-380
https://searchfox.org/mozilla-central/source/devtools/client/shared/telemetry.js#591,638,674-760
Reporter | ||
Comment 7•6 years ago
|
||
It will make it easier for several people to work on this at the same time if we split things in separate bugs.
So I've filed bug 1509070 to do this specific part:
> Count the total number of times a given accordion type is displayed (opened or closed doesn't matter).
> Do this upon element selection (and only if the layout view is visible). Valid types are container, item, containeritem.
Reporter | ||
Comment 8•6 years ago
|
||
I have also moved the following parts to a separate bug: bug 1509907.
> - Count the nb of times the highlighter is activated from the markup-view.
> - Count the nb of times the highlighter is activated from the rules-view.
> - Count the nb of times the highlighter is activated from the layout-view.
> - Measure how long the highlighter is ON for (however it was activated).
Comment 9•6 years ago
|
||
We have landed the minimal telemetry set out for M2. I am removing this meta bug from M2 tracking.
No longer blocks: 1478396
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•