{"action":"created","issue":{"url":"https://api.github.com/repos/sitespeedio/sitespeed.io/issues/1323","repository_url":"https://api.github.com/repos/sitespeedio/sitespeed.io","labels_url":"https://api.github.com/repos/sitespeedio/sitespeed.io/issues/1323/labels{/name}","comments_url":"https://api.github.com/repos/sitespeedio/sitespeed.io/issues/1323/comments","events_url":"https://api.github.com/repos/sitespeedio/sitespeed.io/issues/1323/events","html_url":"https://github.com/sitespeedio/sitespeed.io/issues/1323","id":189374414,"number":1323,"title":"How to report multiple asynchronous metrics","user":{"login":"gajus","id":973543,"avatar_url":"https://avatars.githubusercontent.com/u/973543?v=3","gravatar_id":"","url":"https://api.github.com/users/gajus","html_url":"https://github.com/gajus","followers_url":"https://api.github.com/users/gajus/followers","following_url":"https://api.github.com/users/gajus/following{/other_user}","gists_url":"https://api.github.com/users/gajus/gists{/gist_id}","starred_url":"https://api.github.com/users/gajus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gajus/subscriptions","organizations_url":"https://api.github.com/users/gajus/orgs","repos_url":"https://api.github.com/users/gajus/repos","events_url":"https://api.github.com/users/gajus/events{/privacy}","received_events_url":"https://api.github.com/users/gajus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-11-15T12:05:23Z","updated_at":"2016-11-16T21:40:14Z","closed_at":null,"body":"The browsertime [`--script`](https://github.com/sitespeedio/browsertime/blob/master/docs/examples/advance.md) option enables to:\r\n\r\n> Add custom Javascript to run on page (that returns a number). Note that --script can be passed multiple times if you want to collect multiple metrics. The metrics will automatically be pushed to the summary/detailed summary and each individual page + sent to Graphite/InfluxDB.\r\n\r\ni.e. to capture a single value for a pre-defined name metric.\r\n\r\nHowever, the requirement I have is to capture the loading time of every ad slot on the page.\r\n\r\nA code to capture the ad load event would look like this:\r\n\r\n```js\r\nadsService.addEventListener('slotRenderEnded', (event) => {\r\n  console.log({\r\n    name: event.positionName,\r\n    time: event.loadTime\r\n  });\r\n});\r\n```\r\n\r\nI'd like register data for each of these events."},"comment":{"url":"https://api.github.com/repos/sitespeedio/sitespeed.io/issues/comments/261080809","html_url":"https://github.com/sitespeedio/sitespeed.io/issues/1323#issuecomment-261080809","issue_url":"https://api.github.com/repos/sitespeedio/sitespeed.io/issues/1323","id":261080809,"user":{"login":"gajus","id":973543,"avatar_url":"https://avatars.githubusercontent.com/u/973543?v=3","gravatar_id":"","url":"https://api.github.com/users/gajus","html_url":"https://github.com/gajus","followers_url":"https://api.github.com/users/gajus/followers","following_url":"https://api.github.com/users/gajus/following{/other_user}","gists_url":"https://api.github.com/users/gajus/gists{/gist_id}","starred_url":"https://api.github.com/users/gajus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gajus/subscriptions","organizations_url":"https://api.github.com/users/gajus/orgs","repos_url":"https://api.github.com/users/gajus/repos","events_url":"https://api.github.com/users/gajus/events{/privacy}","received_events_url":"https://api.github.com/users/gajus/received_events","type":"User","site_admin":false},"created_at":"2016-11-16T21:40:14Z","updated_at":"2016-11-16T21:40:14Z","body":"> I think the best way to fix it is as @tobli suggested even though it needs adding specific code in the front end.\r\n\r\nUnfortunately, I don't have access to the code.\r\n\r\nSounds like I will be looking into the proxy option.\r\n\r\nIs it in your plans to support this?"}}
{"actor":{"display_login":"gajus"}}