Closed
Bug 1205610
Opened 9 years ago
Closed 9 years ago
Log the string associated with OT's UNABLE_TO_PUBLISH exception
Categories
(Hello (Loop) :: Client, defect, P2)
Hello (Loop)
Client
Tracking
(firefox44 fixed)
Tracking | Status | |
---|---|---|
firefox44 | --- | fixed |
People
(Reporter: standard8, Assigned: standard8)
References
Details
(Whiteboard: [quality])
Attachments
(1 file)
As part of investigating bug 1199231, we're seeing a number of UNABLE_TO_PUBLISH exceptions that we don't understand. We want to add logging of the error message to the 1500 event, so that we can hopefully better understand where exactly the error is coming from. In otSdkDriver#_onOTException we need to extend the _notifyMetricsEvent call to add the event.message string to the passed string, but only when the error code is UNABLE_TO_PUBLISH (1500).
Flags: qe-verify-
Flags: firefox-backlog+
Assignee | ||
Updated•9 years ago
|
Rank: 20
Assignee | ||
Updated•9 years ago
|
Whiteboard: [quality]
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → standard8
Iteration: --- → 44.1 - Oct 5
Assignee | ||
Comment 1•9 years ago
|
||
This adds logging of the string, we expect this to potentially be temporary depending on what we find (though it might be a few releases).
Attachment #8664470 -
Flags: review?(edilee)
Comment 2•9 years ago
|
||
Comment on attachment 8664470 [details] [diff] [review] Log the string associated with OT's UNABLE_TO_PUBLISH exception to help understand where it is coming from. >+++ b/browser/components/loop/content/shared/js/otSdkDriver.js >+ } else if (event.code === OT.ExceptionCodes.UNABLE_TO_PUBLISH) { I suppose the runtime optimizer could reuse the previous check for UNABLE_TO_PUBLISH although this code probably won't be hot anyway. ;) >+ // We need to log the message so that we can understand where the exception >+ // is coming from. Potentially a temporary addition. >+ this._notifyMetricsEvent("sdk.exception." + event.code + "." + event.message); Are we analyzing events with spaces correctly? It seems that many messages are full strings, e.g., https://dxr.mozilla.org/mozilla-central/source/browser/components/loop/content/shared/libs/sdk.js#23486 This token does not allow publishing. The role must be at least `publisher` to enable this functionality Although if this is just for logging for visual inspection/reports, then it's probably not an issue.
Attachment #8664470 -
Flags: review?(edilee) → review+
Assignee | ||
Comment 3•9 years ago
|
||
(In reply to Ed Lee :Mardak from comment #2) > Comment on attachment 8664470 [details] [diff] [review] > Log the string associated with OT's UNABLE_TO_PUBLISH exception to help > understand where it is coming from. > > >+++ b/browser/components/loop/content/shared/js/otSdkDriver.js > >+ } else if (event.code === OT.ExceptionCodes.UNABLE_TO_PUBLISH) { > I suppose the runtime optimizer could reuse the previous check for > UNABLE_TO_PUBLISH although this code probably won't be hot anyway. ;) I should have commented - I decided to not incorporate it into the previous check as it is likely to be temporary. > >+ // We need to log the message so that we can understand where the exception > >+ // is coming from. Potentially a temporary addition. > >+ this._notifyMetricsEvent("sdk.exception." + event.code + "." + event.message); > Are we analyzing events with spaces correctly? It seems that many messages > are full strings, e.g., > > https://dxr.mozilla.org/mozilla-central/source/browser/components/loop/ > content/shared/libs/sdk.js#23486 > This token does not allow publishing. The role must be at least `publisher` > to enable this functionality > > Although if this is just for logging for visual inspection/reports, then > it's probably not an issue. Yeah, we're aware of that. This is intended to be temporary, and the code that is processing this we're controlling, so we can easily take account of the spaces.
https://hg.mozilla.org/mozilla-central/rev/cf45b8a01ff0
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
You need to log in
before you can comment on or make changes to this bug.
Description
•