{"action":"closed","number":4,"pull_request":{"url":"https://api.github.com/repos/honeycombio/libhoney-go/pulls/4","id":89445442,"html_url":"https://github.com/honeycombio/libhoney-go/pull/4","diff_url":"https://github.com/honeycombio/libhoney-go/pull/4.diff","patch_url":"https://github.com/honeycombio/libhoney-go/pull/4.patch","issue_url":"https://api.github.com/repos/honeycombio/libhoney-go/issues/4","number":4,"state":"closed","locked":false,"title":"Only initialize default txClient if needed/lazily","user":{"login":"christineyen","id":188595,"avatar_url":"https://avatars.githubusercontent.com/u/188595?v=3","gravatar_id":"","url":"https://api.github.com/users/christineyen","html_url":"https://github.com/christineyen","followers_url":"https://api.github.com/users/christineyen/followers","following_url":"https://api.github.com/users/christineyen/following{/other_user}","gists_url":"https://api.github.com/users/christineyen/gists{/gist_id}","starred_url":"https://api.github.com/users/christineyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christineyen/subscriptions","organizations_url":"https://api.github.com/users/christineyen/orgs","repos_url":"https://api.github.com/users/christineyen/repos","events_url":"https://api.github.com/users/christineyen/events{/privacy}","received_events_url":"https://api.github.com/users/christineyen/received_events","type":"User","site_admin":false},"body":"In PR #2 , I made `Init()` no longer required to allow folks to (naively) do something like:\r\n\r\n    ev := libhoney.NewEvent()\r\n    ev.Dataset = \"mine\"\r\n    ev.WriteKey = \"writekey\"\r\n    ev.AddField(\"field\", \"value\")\r\n    ev.Send()\r\n\r\nand just have it work. The package-level `init()` of the transmission client broke the ability to call `Init()`, then `Close()`, then `Init()` again, which is something that `honeytail`'s tests do (and is technically supposed to be a legal option.\r\n\r\nSo, hopefully, by initializing it lazily + protecting with a `sync.Once`, we should be able to make all parties happy.","created_at":"2016-10-14T19:58:53Z","updated_at":"2016-10-14T21:18:53Z","closed_at":"2016-10-14T21:18:53Z","merged_at":"2016-10-14T21:18:53Z","merge_commit_sha":"0da152d745a7c6b1632e3b4f2ad7817671ddca18","assignee":{"login":"toshok","id":24245,"avatar_url":"https://avatars.githubusercontent.com/u/24245?v=3","gravatar_id":"","url":"https://api.github.com/users/toshok","html_url":"https://github.com/toshok","followers_url":"https://api.github.com/users/toshok/followers","following_url":"https://api.github.com/users/toshok/following{/other_user}","gists_url":"https://api.github.com/users/toshok/gists{/gist_id}","starred_url":"https://api.github.com/users/toshok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toshok/subscriptions","organizations_url":"https://api.github.com/users/toshok/orgs","repos_url":"https://api.github.com/users/toshok/repos","events_url":"https://api.github.com/users/toshok/events{/privacy}","received_events_url":"https://api.github.com/users/toshok/received_events","type":"User","site_admin":false},"assignees":[{"login":"toshok","id":24245,"avatar_url":"https://avatars.githubusercontent.com/u/24245?v=3","gravatar_id":"","url":"https://api.github.com/users/toshok","html_url":"https://github.com/toshok","followers_url":"https://api.github.com/users/toshok/followers","following_url":"https://api.github.com/users/toshok/following{/other_user}","gists_url":"https://api.github.com/users/toshok/gists{/gist_id}","starred_url":"https://api.github.com/users/toshok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toshok/subscriptions","organizations_url":"https://api.github.com/users/toshok/orgs","repos_url":"https://api.github.com/users/toshok/repos","events_url":"https://api.github.com/users/toshok/events{/privacy}","received_events_url":"https://api.github.com/users/toshok/received_events","type":"User","site_admin":false},{"login":"maplebed","id":361454,"avatar_url":"https://avatars.githubusercontent.com/u/361454?v=3","gravatar_id":"","url":"https://api.github.com/users/maplebed","html_url":"https://github.com/maplebed","followers_url":"https://api.github.com/users/maplebed/followers","following_url":"https://api.github.com/users/maplebed/following{/other_user}","gists_url":"https://api.github.com/users/maplebed/gists{/gist_id}","starred_url":"https://api.github.com/users/maplebed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maplebed/subscriptions","organizations_url":"https://api.github.com/users/maplebed/orgs","repos_url":"https://api.github.com/users/maplebed/repos","events_url":"https://api.github.com/users/maplebed/events{/privacy}","received_events_url":"https://api.github.com/users/maplebed/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/honeycombio/libhoney-go/pulls/4/commits","review_comments_url":"https://api.github.com/repos/honeycombio/libhoney-go/pulls/4/comments","review_comment_url":"https://api.github.com/repos/honeycombio/libhoney-go/pulls/comments{/number}","comments_url":"https://api.github.com/repos/honeycombio/libhoney-go/issues/4/comments","statuses_url":"https://api.github.com/repos/honeycombio/libhoney-go/statuses/8a93f0ce19efe821cf6da86af845afc113309591","head":{"label":"honeycombio:christine.cleaner-start","ref":"christine.cleaner-start","sha":"8a93f0ce19efe821cf6da86af845afc113309591","user":{"login":"honeycombio","id":15988027,"avatar_url":"https://avatars.githubusercontent.com/u/15988027?v=3","gravatar_id":"","url":"https://api.github.com/users/honeycombio","html_url":"https://github.com/honeycombio","followers_url":"https://api.github.com/users/honeycombio/followers","following_url":"https://api.github.com/users/honeycombio/following{/other_user}","gists_url":"https://api.github.com/users/honeycombio/gists{/gist_id}","starred_url":"https://api.github.com/users/honeycombio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honeycombio/subscriptions","organizations_url":"https://api.github.com/users/honeycombio/orgs","repos_url":"https://api.github.com/users/honeycombio/repos","events_url":"https://api.github.com/users/honeycombio/events{/privacy}","received_events_url":"https://api.github.com/users/honeycombio/received_events","type":"Organization","site_admin":false},"repo":{"id":65243472,"name":"libhoney-go","full_name":"honeycombio/libhoney-go","owner":{"login":"honeycombio","id":15988027,"avatar_url":"https://avatars.githubusercontent.com/u/15988027?v=3","gravatar_id":"","url":"https://api.github.com/users/honeycombio","html_url":"https://github.com/honeycombio","followers_url":"https://api.github.com/users/honeycombio/followers","following_url":"https://api.github.com/users/honeycombio/following{/other_user}","gists_url":"https://api.github.com/users/honeycombio/gists{/gist_id}","starred_url":"https://api.github.com/users/honeycombio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honeycombio/subscriptions","organizations_url":"https://api.github.com/users/honeycombio/orgs","repos_url":"https://api.github.com/users/honeycombio/repos","events_url":"https://api.github.com/users/honeycombio/events{/privacy}","received_events_url":"https://api.github.com/users/honeycombio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/honeycombio/libhoney-go","description":"Go library for sending data to Honeycomb","fork":false,"url":"https://api.github.com/repos/honeycombio/libhoney-go","forks_url":"https://api.github.com/repos/honeycombio/libhoney-go/forks","keys_url":"https://api.github.com/repos/honeycombio/libhoney-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/honeycombio/libhoney-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/honeycombio/libhoney-go/teams","hooks_url":"https://api.github.com/repos/honeycombio/libhoney-go/hooks","issue_events_url":"https://api.github.com/repos/honeycombio/libhoney-go/issues/events{/number}","events_url":"https://api.github.com/repos/honeycombio/libhoney-go/events","assignees_url":"https://api.github.com/repos/honeycombio/libhoney-go/assignees{/user}","branches_url":"https://api.github.com/repos/honeycombio/libhoney-go/branches{/branch}","tags_url":"https://api.github.com/repos/honeycombio/libhoney-go/tags","blobs_url":"https://api.github.com/repos/honeycombio/libhoney-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/honeycombio/libhoney-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/honeycombio/libhoney-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/honeycombio/libhoney-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/honeycombio/libhoney-go/statuses/{sha}","languages_url":"https://api.github.com/repos/honeycombio/libhoney-go/languages","stargazers_url":"https://api.github.com/repos/honeycombio/libhoney-go/stargazers","contributors_url":"https://api.github.com/repos/honeycombio/libhoney-go/contributors","subscribers_url":"https://api.github.com/repos/honeycombio/libhoney-go/subscribers","subscription_url":"https://api.github.com/repos/honeycombio/libhoney-go/subscription","commits_url":"https://api.github.com/repos/honeycombio/libhoney-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/honeycombio/libhoney-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/honeycombio/libhoney-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/honeycombio/libhoney-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/honeycombio/libhoney-go/contents/{+path}","compare_url":"https://api.github.com/repos/honeycombio/libhoney-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/honeycombio/libhoney-go/merges","archive_url":"https://api.github.com/repos/honeycombio/libhoney-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/honeycombio/libhoney-go/downloads","issues_url":"https://api.github.com/repos/honeycombio/libhoney-go/issues{/number}","pulls_url":"https://api.github.com/repos/honeycombio/libhoney-go/pulls{/number}","milestones_url":"https://api.github.com/repos/honeycombio/libhoney-go/milestones{/number}","notifications_url":"https://api.github.com/repos/honeycombio/libhoney-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/honeycombio/libhoney-go/labels{/name}","releases_url":"https://api.github.com/repos/honeycombio/libhoney-go/releases{/id}","deployments_url":"https://api.github.com/repos/honeycombio/libhoney-go/deployments","created_at":"2016-08-08T22:18:35Z","updated_at":"2016-09-28T16:42:09Z","pushed_at":"2016-10-14T21:18:53Z","git_url":"git://github.com/honeycombio/libhoney-go.git","ssh_url":"git@github.com:honeycombio/libhoney-go.git","clone_url":"https://github.com/honeycombio/libhoney-go.git","svn_url":"https://github.com/honeycombio/libhoney-go","homepage":null,"size":50,"stargazers_count":2,"watchers_count":2,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"honeycombio:master","ref":"master","sha":"6ea62557dce2fd9fbc8a77c6c0ab93056c11b6b3","user":{"login":"honeycombio","id":15988027,"avatar_url":"https://avatars.githubusercontent.com/u/15988027?v=3","gravatar_id":"","url":"https://api.github.com/users/honeycombio","html_url":"https://github.com/honeycombio","followers_url":"https://api.github.com/users/honeycombio/followers","following_url":"https://api.github.com/users/honeycombio/following{/other_user}","gists_url":"https://api.github.com/users/honeycombio/gists{/gist_id}","starred_url":"https://api.github.com/users/honeycombio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honeycombio/subscriptions","organizations_url":"https://api.github.com/users/honeycombio/orgs","repos_url":"https://api.github.com/users/honeycombio/repos","events_url":"https://api.github.com/users/honeycombio/events{/privacy}","received_events_url":"https://api.github.com/users/honeycombio/received_events","type":"Organization","site_admin":false},"repo":{"id":65243472,"name":"libhoney-go","full_name":"honeycombio/libhoney-go","owner":{"login":"honeycombio","id":15988027,"avatar_url":"https://avatars.githubusercontent.com/u/15988027?v=3","gravatar_id":"","url":"https://api.github.com/users/honeycombio","html_url":"https://github.com/honeycombio","followers_url":"https://api.github.com/users/honeycombio/followers","following_url":"https://api.github.com/users/honeycombio/following{/other_user}","gists_url":"https://api.github.com/users/honeycombio/gists{/gist_id}","starred_url":"https://api.github.com/users/honeycombio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honeycombio/subscriptions","organizations_url":"https://api.github.com/users/honeycombio/orgs","repos_url":"https://api.github.com/users/honeycombio/repos","events_url":"https://api.github.com/users/honeycombio/events{/privacy}","received_events_url":"https://api.github.com/users/honeycombio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/honeycombio/libhoney-go","description":"Go library for sending data to Honeycomb","fork":false,"url":"https://api.github.com/repos/honeycombio/libhoney-go","forks_url":"https://api.github.com/repos/honeycombio/libhoney-go/forks","keys_url":"https://api.github.com/repos/honeycombio/libhoney-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/honeycombio/libhoney-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/honeycombio/libhoney-go/teams","hooks_url":"https://api.github.com/repos/honeycombio/libhoney-go/hooks","issue_events_url":"https://api.github.com/repos/honeycombio/libhoney-go/issues/events{/number}","events_url":"https://api.github.com/repos/honeycombio/libhoney-go/events","assignees_url":"https://api.github.com/repos/honeycombio/libhoney-go/assignees{/user}","branches_url":"https://api.github.com/repos/honeycombio/libhoney-go/branches{/branch}","tags_url":"https://api.github.com/repos/honeycombio/libhoney-go/tags","blobs_url":"https://api.github.com/repos/honeycombio/libhoney-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/honeycombio/libhoney-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/honeycombio/libhoney-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/honeycombio/libhoney-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/honeycombio/libhoney-go/statuses/{sha}","languages_url":"https://api.github.com/repos/honeycombio/libhoney-go/languages","stargazers_url":"https://api.github.com/repos/honeycombio/libhoney-go/stargazers","contributors_url":"https://api.github.com/repos/honeycombio/libhoney-go/contributors","subscribers_url":"https://api.github.com/repos/honeycombio/libhoney-go/subscribers","subscription_url":"https://api.github.com/repos/honeycombio/libhoney-go/subscription","commits_url":"https://api.github.com/repos/honeycombio/libhoney-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/honeycombio/libhoney-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/honeycombio/libhoney-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/honeycombio/libhoney-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/honeycombio/libhoney-go/contents/{+path}","compare_url":"https://api.github.com/repos/honeycombio/libhoney-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/honeycombio/libhoney-go/merges","archive_url":"https://api.github.com/repos/honeycombio/libhoney-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/honeycombio/libhoney-go/downloads","issues_url":"https://api.github.com/repos/honeycombio/libhoney-go/issues{/number}","pulls_url":"https://api.github.com/repos/honeycombio/libhoney-go/pulls{/number}","milestones_url":"https://api.github.com/repos/honeycombio/libhoney-go/milestones{/number}","notifications_url":"https://api.github.com/repos/honeycombio/libhoney-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/honeycombio/libhoney-go/labels{/name}","releases_url":"https://api.github.com/repos/honeycombio/libhoney-go/releases{/id}","deployments_url":"https://api.github.com/repos/honeycombio/libhoney-go/deployments","created_at":"2016-08-08T22:18:35Z","updated_at":"2016-09-28T16:42:09Z","pushed_at":"2016-10-14T21:18:53Z","git_url":"git://github.com/honeycombio/libhoney-go.git","ssh_url":"git@github.com:honeycombio/libhoney-go.git","clone_url":"https://github.com/honeycombio/libhoney-go.git","svn_url":"https://github.com/honeycombio/libhoney-go","homepage":null,"size":50,"stargazers_count":2,"watchers_count":2,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/honeycombio/libhoney-go/pulls/4"},"html":{"href":"https://github.com/honeycombio/libhoney-go/pull/4"},"issue":{"href":"https://api.github.com/repos/honeycombio/libhoney-go/issues/4"},"comments":{"href":"https://api.github.com/repos/honeycombio/libhoney-go/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/honeycombio/libhoney-go/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/honeycombio/libhoney-go/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/honeycombio/libhoney-go/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/honeycombio/libhoney-go/statuses/8a93f0ce19efe821cf6da86af845afc113309591"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"christineyen","id":188595,"avatar_url":"https://avatars.githubusercontent.com/u/188595?v=3","gravatar_id":"","url":"https://api.github.com/users/christineyen","html_url":"https://github.com/christineyen","followers_url":"https://api.github.com/users/christineyen/followers","following_url":"https://api.github.com/users/christineyen/following{/other_user}","gists_url":"https://api.github.com/users/christineyen/gists{/gist_id}","starred_url":"https://api.github.com/users/christineyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christineyen/subscriptions","organizations_url":"https://api.github.com/users/christineyen/orgs","repos_url":"https://api.github.com/users/christineyen/repos","events_url":"https://api.github.com/users/christineyen/events{/privacy}","received_events_url":"https://api.github.com/users/christineyen/received_events","type":"User","site_admin":false},"comments":0,"review_comments":2,"commits":1,"additions":19,"deletions":15,"changed_files":1}}
{"actor":{"display_login":"christineyen"}}