{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla-services/pageshot/issues/2218","repository_url":"https://api.github.com/repos/mozilla-services/pageshot","labels_url":"https://api.github.com/repos/mozilla-services/pageshot/issues/2218/labels{/name}","comments_url":"https://api.github.com/repos/mozilla-services/pageshot/issues/2218/comments","events_url":"https://api.github.com/repos/mozilla-services/pageshot/issues/2218/events","html_url":"https://github.com/mozilla-services/pageshot/issues/2218","id":210113605,"number":2218,"title":"Implement Telemetry","user":{"login":"ianb","id":44390,"avatar_url":"https://avatars2.githubusercontent.com/u/44390?v=3","gravatar_id":"","url":"https://api.github.com/users/ianb","html_url":"https://github.com/ianb","followers_url":"https://api.github.com/users/ianb/followers","following_url":"https://api.github.com/users/ianb/following{/other_user}","gists_url":"https://api.github.com/users/ianb/gists{/gist_id}","starred_url":"https://api.github.com/users/ianb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianb/subscriptions","organizations_url":"https://api.github.com/users/ianb/orgs","repos_url":"https://api.github.com/users/ianb/repos","events_url":"https://api.github.com/users/ianb/events{/privacy}","received_events_url":"https://api.github.com/users/ianb/received_events","type":"User","site_admin":false},"labels":[{"id":551763369,"url":"https://api.github.com/repos/mozilla-services/pageshot/labels/beta%20blocker","name":"beta blocker","color":"d93f0b","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/mozilla-services/pageshot/milestones/20","html_url":"https://github.com/mozilla-services/pageshot/milestone/20","labels_url":"https://api.github.com/repos/mozilla-services/pageshot/milestones/20/labels","id":2319765,"number":20,"title":"Page Shot in 54","description":"Due date targets uplift to 54 Beta.\r\n\r\nBig things we need before then: (1) Conversion to a Web Extension (2) Code changes based on Ops/scaling needs (3) Product/UX updates ([Trello](https://trello.com/b/96EgnIs1/page-shot-in-54-launch-features))\r\n\r\n ","creator":{"login":"ckprice","id":8632184,"avatar_url":"https://avatars3.githubusercontent.com/u/8632184?v=3","gravatar_id":"","url":"https://api.github.com/users/ckprice","html_url":"https://github.com/ckprice","followers_url":"https://api.github.com/users/ckprice/followers","following_url":"https://api.github.com/users/ckprice/following{/other_user}","gists_url":"https://api.github.com/users/ckprice/gists{/gist_id}","starred_url":"https://api.github.com/users/ckprice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckprice/subscriptions","organizations_url":"https://api.github.com/users/ckprice/orgs","repos_url":"https://api.github.com/users/ckprice/repos","events_url":"https://api.github.com/users/ckprice/events{/privacy}","received_events_url":"https://api.github.com/users/ckprice/received_events","type":"User","site_admin":false},"open_issues":46,"closed_issues":15,"state":"open","created_at":"2017-02-13T18:46:02Z","updated_at":"2017-03-06T21:11:55Z","due_on":"2017-04-18T07:00:00Z","closed_at":null},"comments":1,"created_at":"2017-02-24T17:45:37Z","updated_at":"2017-03-06T23:15:58Z","closed_at":null,"body":"We should probably use [scalars](http://gecko.readthedocs.io/en/latest/toolkit/components/telemetry/telemetry/collection/scalars.html).  This would be something like:\r\n\r\n```js\r\nServices.telemetry.scalarAdd('PAGESHOT_CLICK_BUTTON', 1);\r\nServices.telemetry.scalarAdd('PAGESHOT_DOWNLOAD', 1);\r\nServices.telemetry.scalarAdd('PAGESHOT_UPLOAD', 1);\r\nServices.telemetry.scalarAdd('PAGESHOT_CANCEL', 1);\r\nServices.telemetry.scalarAdd('PAGESHOT_ERROR', 1);\r\n```\r\n\r\nAll of these (`PAGESHOT_*`) have to go in [Scalars.yaml](http://gecko.readthedocs.io/en/latest/toolkit/components/telemetry/telemetry/collection/scalars.html#the-yaml-definition-file) in the main Firefox source.\r\n\r\nWe'll have to do a [Hybrid WebExtension](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Embedded_WebExtensions) to support this.  @groovecoder did [an experiment](https://github.com/groovecoder/web-ext-telemetry-api-experiment) which may be a basis for how we do this communication."},"comment":{"url":"https://api.github.com/repos/mozilla-services/pageshot/issues/comments/284566351","html_url":"https://github.com/mozilla-services/pageshot/issues/2218#issuecomment-284566351","issue_url":"https://api.github.com/repos/mozilla-services/pageshot/issues/2218","id":284566351,"user":{"login":"wresuolc","id":16946141,"avatar_url":"https://avatars0.githubusercontent.com/u/16946141?v=3","gravatar_id":"","url":"https://api.github.com/users/wresuolc","html_url":"https://github.com/wresuolc","followers_url":"https://api.github.com/users/wresuolc/followers","following_url":"https://api.github.com/users/wresuolc/following{/other_user}","gists_url":"https://api.github.com/users/wresuolc/gists{/gist_id}","starred_url":"https://api.github.com/users/wresuolc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wresuolc/subscriptions","organizations_url":"https://api.github.com/users/wresuolc/orgs","repos_url":"https://api.github.com/users/wresuolc/repos","events_url":"https://api.github.com/users/wresuolc/events{/privacy}","received_events_url":"https://api.github.com/users/wresuolc/received_events","type":"User","site_admin":false},"created_at":"2017-03-06T23:15:58Z","updated_at":"2017-03-06T23:15:58Z","body":"I think we can remove this from `beta blocker` and Page Shot in 54 milestone?"}}
{"actor":{"display_login":"wresuolc"}}