mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Bug 1927093 - Migrate scalars to use Glean APIs for devtools.responsive.*, r=chutten.
Depends on D228155 Differential Revision: https://phabricator.services.mozilla.com/D228156
This commit is contained in:
parent
2af147c9f6
commit
b83ebbd304
@ -151,7 +151,7 @@ class ResponsiveUIManager {
|
||||
const hasToolbox = !!toolbox;
|
||||
|
||||
if (hasToolbox) {
|
||||
this.telemetry.scalarAdd("devtools.responsive.toolbox_opened_first", 1);
|
||||
Glean.devtoolsResponsive.toolboxOpenedFirst.add(1);
|
||||
}
|
||||
|
||||
this.telemetry.recordEvent("activate", "responsive_design", null, {
|
||||
@ -164,11 +164,7 @@ class ResponsiveUIManager {
|
||||
if (!trigger) {
|
||||
trigger = "unknown";
|
||||
}
|
||||
this.telemetry.keyedScalarAdd(
|
||||
"devtools.responsive.open_trigger",
|
||||
trigger,
|
||||
1
|
||||
);
|
||||
Glean.devtoolsResponsive.openTrigger[trigger].add(1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
45
devtools/client/responsive/metrics.yaml
Normal file
45
devtools/client/responsive/metrics.yaml
Normal file
@ -0,0 +1,45 @@
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
# Adding a new metric? We have docs for that!
|
||||
# https://firefox-source-docs.mozilla.org/toolkit/components/glean/user/new_definitions_file.html
|
||||
|
||||
---
|
||||
$schema: moz://mozilla.org/schemas/glean/metrics/2-0-0
|
||||
$tags:
|
||||
- 'DevTools :: Responsive Design Mode'
|
||||
|
||||
devtools.responsive:
|
||||
open_trigger:
|
||||
type: labeled_counter
|
||||
description: >
|
||||
Number of Responsive Design Mode opens keyed by the UI entry point
|
||||
used.
|
||||
This metric was generated to correspond to the Legacy Telemetry
|
||||
scalar devtools.responsive.open_trigger.
|
||||
bugs:
|
||||
- https://bugzil.la/1444497
|
||||
data_reviews:
|
||||
- https://bugzil.la/1444497
|
||||
notification_emails:
|
||||
- dev-developer-tools@lists.mozilla.org
|
||||
- jryans@mozilla.com
|
||||
expires: never
|
||||
telemetry_mirror: DEVTOOLS_RESPONSIVE_OPEN_TRIGGER
|
||||
|
||||
toolbox_opened_first:
|
||||
type: counter
|
||||
description: >
|
||||
Number of Responsive Design Mode opens with a toolbox already open.
|
||||
This metric was generated to correspond to the Legacy Telemetry
|
||||
scalar devtools.responsive.toolbox_opened_first.
|
||||
bugs:
|
||||
- https://bugzil.la/1444497
|
||||
data_reviews:
|
||||
- https://bugzil.la/1444497
|
||||
notification_emails:
|
||||
- dev-developer-tools@lists.mozilla.org
|
||||
- jryans@mozilla.com
|
||||
expires: never
|
||||
telemetry_mirror: DEVTOOLS_RESPONSIVE_TOOLBOX_OPENED_FIRST
|
@ -18,6 +18,7 @@ gecko_metrics = [
|
||||
"accessible/metrics.yaml",
|
||||
"browser/base/content/metrics.yaml",
|
||||
"devtools/client/accessibility/metrics.yaml",
|
||||
"devtools/client/responsive/metrics.yaml",
|
||||
"devtools/client/shared/metrics.yaml",
|
||||
"docshell/base/metrics.yaml",
|
||||
"dom/base/use_counter_metrics.yaml",
|
||||
|
Loading…
Reference in New Issue
Block a user