{"action":"created","comment":{"url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/pulls/comments/41369235","id":41369235,"diff_hunk":"@@ -0,0 +1,160 @@\n+/*\n+ * Copyright (c) 2015 Snowplow Analytics Ltd. All rights reserved.\n+ *\n+ * This program is licensed to you under the Apache License Version 2.0,\n+ * and you may not use this file except in compliance with the Apache License Version 2.0.\n+ * You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0.\n+ *\n+ * Unless required by applicable law or agreed to in writing,\n+ * software distributed under the Apache License Version 2.0 is distributed on an\n+ * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.\n+ */\n+package com.snowplowanalytics.snowplow.scalatracker\n+\n+// Scala\n+import scala.concurrent.{ Await, Future }\n+import scala.concurrent.duration._\n+import scala.util.control.NonFatal\n+\n+// Akka\n+import akka.util.Timeout\n+\n+// Spray\n+import spray.http._\n+import spray.client.pipelining._\n+\n+// json4s\n+import org.json4s._\n+import org.json4s.JsonDSL._\n+import org.json4s.jackson.JsonMethods._\n+\n+// This library\n+import emitters.RequestUtils\n+\n+/**\n+ * Trait with parsing EC2 meta data logic\n+ * http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html\n+ */\n+object Ec2Metadata {\n+  import RequestUtils.system\n+  import system.dispatcher\n+  val shortTimeout = 10.seconds\n+  implicit val timeout = Timeout(shortTimeout)","path":"src/main/scala/com.snowplowanalytics.snowplow/scalatracker/Ec2Metadata.scala","position":43,"original_position":43,"commit_id":"c71d22ad132a17310997b4b76e51a2b0c8b466e2","original_commit_id":"c71d22ad132a17310997b4b76e51a2b0c8b466e2","user":{"login":"fblundun","id":5892914,"avatar_url":"https://avatars.githubusercontent.com/u/5892914?v=3","gravatar_id":"","url":"https://api.github.com/users/fblundun","html_url":"https://github.com/fblundun","followers_url":"https://api.github.com/users/fblundun/followers","following_url":"https://api.github.com/users/fblundun/following{/other_user}","gists_url":"https://api.github.com/users/fblundun/gists{/gist_id}","starred_url":"https://api.github.com/users/fblundun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fblundun/subscriptions","organizations_url":"https://api.github.com/users/fblundun/orgs","repos_url":"https://api.github.com/users/fblundun/repos","events_url":"https://api.github.com/users/fblundun/events{/privacy}","received_events_url":"https://api.github.com/users/fblundun/received_events","type":"User","site_admin":false},"body":"Nice.","created_at":"2015-10-07T09:30:55Z","updated_at":"2015-10-07T09:30:55Z","html_url":"https://github.com/snowplow/snowplow-scala-tracker/pull/23#discussion_r41369235","pull_request_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/pulls/comments/41369235"},"html":{"href":"https://github.com/snowplow/snowplow-scala-tracker/pull/23#discussion_r41369235"},"pull_request":{"href":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/pulls/23","id":46891886,"html_url":"https://github.com/snowplow/snowplow-scala-tracker/pull/23","diff_url":"https://github.com/snowplow/snowplow-scala-tracker/pull/23.diff","patch_url":"https://github.com/snowplow/snowplow-scala-tracker/pull/23.patch","issue_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/issues/23","number":23,"state":"open","locked":false,"title":"Release/0.2.0","user":{"login":"chuwy","id":681171,"avatar_url":"https://avatars.githubusercontent.com/u/681171?v=3","gravatar_id":"","url":"https://api.github.com/users/chuwy","html_url":"https://github.com/chuwy","followers_url":"https://api.github.com/users/chuwy/followers","following_url":"https://api.github.com/users/chuwy/following{/other_user}","gists_url":"https://api.github.com/users/chuwy/gists{/gist_id}","starred_url":"https://api.github.com/users/chuwy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuwy/subscriptions","organizations_url":"https://api.github.com/users/chuwy/orgs","repos_url":"https://api.github.com/users/chuwy/repos","events_url":"https://api.github.com/users/chuwy/events{/privacy}","received_events_url":"https://api.github.com/users/chuwy/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-06T11:40:51Z","updated_at":"2015-10-07T09:30:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3efa8347c97c1efa046de436bd36d2839ede9c9f","assignee":{"login":"fblundun","id":5892914,"avatar_url":"https://avatars.githubusercontent.com/u/5892914?v=3","gravatar_id":"","url":"https://api.github.com/users/fblundun","html_url":"https://github.com/fblundun","followers_url":"https://api.github.com/users/fblundun/followers","following_url":"https://api.github.com/users/fblundun/following{/other_user}","gists_url":"https://api.github.com/users/fblundun/gists{/gist_id}","starred_url":"https://api.github.com/users/fblundun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fblundun/subscriptions","organizations_url":"https://api.github.com/users/fblundun/orgs","repos_url":"https://api.github.com/users/fblundun/repos","events_url":"https://api.github.com/users/fblundun/events{/privacy}","received_events_url":"https://api.github.com/users/fblundun/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/milestones/2","html_url":"https://github.com/snowplow/snowplow-scala-tracker/milestones/Version%200.2.0","labels_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/milestones/2/labels","id":1117890,"number":2,"title":"Version 0.2.0","description":"","creator":{"login":"alexanderdean","id":200511,"avatar_url":"https://avatars.githubusercontent.com/u/200511?v=3","gravatar_id":"","url":"https://api.github.com/users/alexanderdean","html_url":"https://github.com/alexanderdean","followers_url":"https://api.github.com/users/alexanderdean/followers","following_url":"https://api.github.com/users/alexanderdean/following{/other_user}","gists_url":"https://api.github.com/users/alexanderdean/gists{/gist_id}","starred_url":"https://api.github.com/users/alexanderdean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexanderdean/subscriptions","organizations_url":"https://api.github.com/users/alexanderdean/orgs","repos_url":"https://api.github.com/users/alexanderdean/repos","events_url":"https://api.github.com/users/alexanderdean/events{/privacy}","received_events_url":"https://api.github.com/users/alexanderdean/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":0,"state":"open","created_at":"2015-05-19T10:40:07Z","updated_at":"2015-10-06T11:41:32Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/pulls/23/commits","review_comments_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/pulls/23/comments","review_comment_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/issues/23/comments","statuses_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/statuses/c71d22ad132a17310997b4b76e51a2b0c8b466e2","head":{"label":"snowplow:release/0.2.0","ref":"release/0.2.0","sha":"c71d22ad132a17310997b4b76e51a2b0c8b466e2","user":{"login":"snowplow","id":1476001,"avatar_url":"https://avatars.githubusercontent.com/u/1476001?v=3","gravatar_id":"","url":"https://api.github.com/users/snowplow","html_url":"https://github.com/snowplow","followers_url":"https://api.github.com/users/snowplow/followers","following_url":"https://api.github.com/users/snowplow/following{/other_user}","gists_url":"https://api.github.com/users/snowplow/gists{/gist_id}","starred_url":"https://api.github.com/users/snowplow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snowplow/subscriptions","organizations_url":"https://api.github.com/users/snowplow/orgs","repos_url":"https://api.github.com/users/snowplow/repos","events_url":"https://api.github.com/users/snowplow/events{/privacy}","received_events_url":"https://api.github.com/users/snowplow/received_events","type":"Organization","site_admin":false},"repo":{"id":32916535,"name":"snowplow-scala-tracker","full_name":"snowplow/snowplow-scala-tracker","owner":{"login":"snowplow","id":1476001,"avatar_url":"https://avatars.githubusercontent.com/u/1476001?v=3","gravatar_id":"","url":"https://api.github.com/users/snowplow","html_url":"https://github.com/snowplow","followers_url":"https://api.github.com/users/snowplow/followers","following_url":"https://api.github.com/users/snowplow/following{/other_user}","gists_url":"https://api.github.com/users/snowplow/gists{/gist_id}","starred_url":"https://api.github.com/users/snowplow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snowplow/subscriptions","organizations_url":"https://api.github.com/users/snowplow/orgs","repos_url":"https://api.github.com/users/snowplow/repos","events_url":"https://api.github.com/users/snowplow/events{/privacy}","received_events_url":"https://api.github.com/users/snowplow/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/snowplow/snowplow-scala-tracker","description":"Snowplow event tracker for Scala. Add analytics to your Scala, Akka and Play apps and servers","fork":false,"url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker","forks_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/forks","keys_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/teams","hooks_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/hooks","issue_events_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/issues/events{/number}","events_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/events","assignees_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/assignees{/user}","branches_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/branches{/branch}","tags_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/tags","blobs_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/git/refs{/sha}","trees_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/statuses/{sha}","languages_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/languages","stargazers_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/stargazers","contributors_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/contributors","subscribers_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/subscribers","subscription_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/subscription","commits_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/commits{/sha}","git_commits_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/git/commits{/sha}","comments_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/comments{/number}","issue_comment_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/issues/comments{/number}","contents_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/contents/{+path}","compare_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/merges","archive_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/downloads","issues_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/issues{/number}","pulls_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/pulls{/number}","milestones_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/milestones{/number}","notifications_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/labels{/name}","releases_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/releases{/id}","created_at":"2015-03-26T08:48:33Z","updated_at":"2015-08-18T14:33:04Z","pushed_at":"2015-10-07T08:05:22Z","git_url":"git://github.com/snowplow/snowplow-scala-tracker.git","ssh_url":"git@github.com:snowplow/snowplow-scala-tracker.git","clone_url":"https://github.com/snowplow/snowplow-scala-tracker.git","svn_url":"https://github.com/snowplow/snowplow-scala-tracker","homepage":"http://snowplowanalytics.com","size":313,"stargazers_count":2,"watchers_count":2,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":19,"forks":2,"open_issues":19,"watchers":2,"default_branch":"master"}},"base":{"label":"snowplow:master","ref":"master","sha":"e3baa652696332fb82c5fb8c84542c205b79a82e","user":{"login":"snowplow","id":1476001,"avatar_url":"https://avatars.githubusercontent.com/u/1476001?v=3","gravatar_id":"","url":"https://api.github.com/users/snowplow","html_url":"https://github.com/snowplow","followers_url":"https://api.github.com/users/snowplow/followers","following_url":"https://api.github.com/users/snowplow/following{/other_user}","gists_url":"https://api.github.com/users/snowplow/gists{/gist_id}","starred_url":"https://api.github.com/users/snowplow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snowplow/subscriptions","organizations_url":"https://api.github.com/users/snowplow/orgs","repos_url":"https://api.github.com/users/snowplow/repos","events_url":"https://api.github.com/users/snowplow/events{/privacy}","received_events_url":"https://api.github.com/users/snowplow/received_events","type":"Organization","site_admin":false},"repo":{"id":32916535,"name":"snowplow-scala-tracker","full_name":"snowplow/snowplow-scala-tracker","owner":{"login":"snowplow","id":1476001,"avatar_url":"https://avatars.githubusercontent.com/u/1476001?v=3","gravatar_id":"","url":"https://api.github.com/users/snowplow","html_url":"https://github.com/snowplow","followers_url":"https://api.github.com/users/snowplow/followers","following_url":"https://api.github.com/users/snowplow/following{/other_user}","gists_url":"https://api.github.com/users/snowplow/gists{/gist_id}","starred_url":"https://api.github.com/users/snowplow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snowplow/subscriptions","organizations_url":"https://api.github.com/users/snowplow/orgs","repos_url":"https://api.github.com/users/snowplow/repos","events_url":"https://api.github.com/users/snowplow/events{/privacy}","received_events_url":"https://api.github.com/users/snowplow/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/snowplow/snowplow-scala-tracker","description":"Snowplow event tracker for Scala. Add analytics to your Scala, Akka and Play apps and servers","fork":false,"url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker","forks_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/forks","keys_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/teams","hooks_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/hooks","issue_events_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/issues/events{/number}","events_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/events","assignees_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/assignees{/user}","branches_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/branches{/branch}","tags_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/tags","blobs_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/git/refs{/sha}","trees_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/statuses/{sha}","languages_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/languages","stargazers_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/stargazers","contributors_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/contributors","subscribers_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/subscribers","subscription_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/subscription","commits_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/commits{/sha}","git_commits_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/git/commits{/sha}","comments_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/comments{/number}","issue_comment_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/issues/comments{/number}","contents_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/contents/{+path}","compare_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/merges","archive_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/downloads","issues_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/issues{/number}","pulls_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/pulls{/number}","milestones_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/milestones{/number}","notifications_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/labels{/name}","releases_url":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/releases{/id}","created_at":"2015-03-26T08:48:33Z","updated_at":"2015-08-18T14:33:04Z","pushed_at":"2015-10-07T08:05:22Z","git_url":"git://github.com/snowplow/snowplow-scala-tracker.git","ssh_url":"git@github.com:snowplow/snowplow-scala-tracker.git","clone_url":"https://github.com/snowplow/snowplow-scala-tracker.git","svn_url":"https://github.com/snowplow/snowplow-scala-tracker","homepage":"http://snowplowanalytics.com","size":313,"stargazers_count":2,"watchers_count":2,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":19,"forks":2,"open_issues":19,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/pulls/23"},"html":{"href":"https://github.com/snowplow/snowplow-scala-tracker/pull/23"},"issue":{"href":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/issues/23"},"comments":{"href":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/snowplow/snowplow-scala-tracker/statuses/c71d22ad132a17310997b4b76e51a2b0c8b466e2"}}}}