Closed
Bug 1478366
Opened 8 years ago
Closed 8 years ago
Add a recordTelemetryEvent function to the serviceContainer
Categories
(DevTools :: Console, enhancement)
DevTools
Console
Tracking
(firefox63 fixed)
RESOLVED
FIXED
Firefox 63
| Tracking | Status | |
|---|---|---|
| firefox63 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
References
Details
Attachments
(1 file)
This will allow to pass it around the direct component as well as to reps and ObjectInspector.
| Assignee | ||
Updated•8 years ago
|
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 2•8 years ago
|
||
The patch added in Comment 1 does work well in reps. I tested it with the following change in function.js :
```diff
diff --git a/packages/devtools-reps/src/reps/function.js b/packages/devtools-reps/src/reps/function.js
index fbc60e18..970285a8 100644
--- a/packages/devtools-reps/src/reps/function.js
+++ b/packages/devtools-reps/src/reps/function.js
@@ -24,7 +24,7 @@ FunctionRep.propTypes = {
};
function FunctionRep(props) {
- const { object: grip, onViewSourceInDebugger } = props;
+ const { object: grip, onViewSourceInDebugger, recordTelemetryEvent } = props;
let jumpToDefinitionButton;
if (
@@ -41,6 +41,9 @@ function FunctionRep(props) {
// Stop the event propagation so we don't trigger ObjectInspector
// expand/collapse.
e.stopPropagation();
+ if (recordTelemetryEvent) {
+ recordTelemetryEvent("jump_to_definition");
+ }
onViewSourceInDebugger(grip.location);
}
});
```
Comment 3•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8994834 [details]
Bug 1478366 - Add a recordTelemetryEvent function to serviceContainer; .
https://reviewboard.mozilla.org/r/259370/#review266368
Awesome... it simplifies simple telemetry calls a lot, which is why we added it to the debugger.
An easy r+.
Attachment #8994834 -
Flags: review?(mratcliffe) → review+
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/dd7a7c8b98ca
Add a recordTelemetryEvent function to serviceContainer; r=miker.
Comment 5•8 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 8 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
•