-
Notifications
You must be signed in to change notification settings - Fork 113
Collect proxy telemetries from addon #705
Comments
Based on #680 we want to collect: {
source: "TOP_FRECENT_SITES_RESPONSE", // which SQL query produced this list of URLs
count: 17, // the total number of URLs returned by the SQL query
cacheHit: 13, // the number found in our local simple storage cache
cacheMiss: 4, // the number we failed to find and will request from embedly-proxy
success: true, // was the call to embedly-proxy successful
urlsRequested: 4, // how many URLs did we send to the proxy
urlsReceived: 2, // how many URLs did we get back
requestLatency: 13.4, // how long did it take for the call to complete
} from the client's side |
Ah, great. A couple of suggestions:
|
To correlate multiple pings, we will use an eventID which will be shared across multiple pings which correspond to the same 'event', or in this case, a single invocation of a method. We can use the addon SDK's uuid method found here: https://developer.mozilla.org/en-US/Add-ons/SDK/Low-Level_APIs/util_uuid
Tracking a performance ping will have 3 parameters:
We would like to track the following messages in the following places https://github.com/mozilla/activity-stream/blob/master/lib/ActivityStreams.js#L154-L159
activity-stream/lib/PreviewProvider.js Line 288 in 7c51cd6
Redacted:
A single performance ping should contain: (timestamp: unix timestamp, userID: str, eventName: str, eventID: str, value: int) |
Add a description of performance ping #705
feat(metrics): #705 Collect proxy telemetries from addon
We wanted to collect some pings for the proxy related metrics. It needs following steps:
The text was updated successfully, but these errors were encountered: