{"action":"created","comment":{"url":"https://api.github.com/repos/kamon-io/Kamon/pulls/comments/37777226","id":37777226,"diff_hunk":"@@ -0,0 +1,140 @@\n+/*\n+ * =========================================================================================\n+ * Copyright © 2013-2015 the kamon project <http://kamon.io/>\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file\n+ * except in compliance with the License. You may obtain a copy of the License at\n+ *\n+ *   http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software distributed under the\n+ * License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,\n+ * either express or implied. See the License for the specific language governing permissions\n+ * and limitations under the License.\n+ * =========================================================================================\n+ */\n+\n+package kamon.util.executors\n+\n+import kamon.Kamon\n+import kamon.metric.Entity\n+import java.util.concurrent.{ ForkJoinPool ⇒ JavaForkJoinPool }\n+import java.util.concurrent.{ ExecutorService, ThreadPoolExecutor }\n+\n+import scala.concurrent.forkjoin.ForkJoinPool\n+import scala.util.control.NoStackTrace\n+\n+object ExecutorServiceMetrics {","path":"kamon-core/src/main/scala/kamon/util/executors/ExecutorServiceMetrics.scala","position":27,"original_position":27,"commit_id":"8b7516af6fb4942c48e189405ea8c2ee16452cd3","original_commit_id":"0fc4b6dd41bf1368a70e4c8530cb2c1c28448126","user":{"login":"dpsoft","id":2567525,"avatar_url":"https://avatars.githubusercontent.com/u/2567525?v=3","gravatar_id":"","url":"https://api.github.com/users/dpsoft","html_url":"https://github.com/dpsoft","followers_url":"https://api.github.com/users/dpsoft/followers","following_url":"https://api.github.com/users/dpsoft/following{/other_user}","gists_url":"https://api.github.com/users/dpsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/dpsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpsoft/subscriptions","organizations_url":"https://api.github.com/users/dpsoft/orgs","repos_url":"https://api.github.com/users/dpsoft/repos","events_url":"https://api.github.com/users/dpsoft/events{/privacy}","received_events_url":"https://api.github.com/users/dpsoft/received_events","type":"User","site_admin":false},"body":"I don't see the use case where the user can do something with the recorder's. I think that for now we should return `Unit`.","created_at":"2015-08-24T17:29:19Z","updated_at":"2015-08-24T17:29:19Z","html_url":"https://github.com/kamon-io/Kamon/pull/246#discussion_r37777226","pull_request_url":"https://api.github.com/repos/kamon-io/Kamon/pulls/246","_links":{"self":{"href":"https://api.github.com/repos/kamon-io/Kamon/pulls/comments/37777226"},"html":{"href":"https://github.com/kamon-io/Kamon/pull/246#discussion_r37777226"},"pull_request":{"href":"https://api.github.com/repos/kamon-io/Kamon/pulls/246"}}},"pull_request":{"url":"https://api.github.com/repos/kamon-io/Kamon/pulls/246","id":43121196,"html_url":"https://github.com/kamon-io/Kamon/pull/246","diff_url":"https://github.com/kamon-io/Kamon/pull/246.diff","patch_url":"https://github.com/kamon-io/Kamon/pull/246.patch","issue_url":"https://api.github.com/repos/kamon-io/Kamon/issues/246","number":246,"state":"open","locked":false,"title":"! core: generalize ThreadPoolExecutors metrics","user":{"login":"dpsoft","id":2567525,"avatar_url":"https://avatars.githubusercontent.com/u/2567525?v=3","gravatar_id":"","url":"https://api.github.com/users/dpsoft","html_url":"https://github.com/dpsoft","followers_url":"https://api.github.com/users/dpsoft/followers","following_url":"https://api.github.com/users/dpsoft/following{/other_user}","gists_url":"https://api.github.com/users/dpsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/dpsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpsoft/subscriptions","organizations_url":"https://api.github.com/users/dpsoft/orgs","repos_url":"https://api.github.com/users/dpsoft/repos","events_url":"https://api.github.com/users/dpsoft/events{/privacy}","received_events_url":"https://api.github.com/users/dpsoft/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-23T13:22:47Z","updated_at":"2015-08-24T17:29:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"77c21abb852071c3145f71c07c3827dbdc3ae200","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kamon-io/Kamon/pulls/246/commits","review_comments_url":"https://api.github.com/repos/kamon-io/Kamon/pulls/246/comments","review_comment_url":"https://api.github.com/repos/kamon-io/Kamon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kamon-io/Kamon/issues/246/comments","statuses_url":"https://api.github.com/repos/kamon-io/Kamon/statuses/8b7516af6fb4942c48e189405ea8c2ee16452cd3","head":{"label":"kamon-io:executors","ref":"executors","sha":"8b7516af6fb4942c48e189405ea8c2ee16452cd3","user":{"login":"kamon-io","id":5789105,"avatar_url":"https://avatars.githubusercontent.com/u/5789105?v=3","gravatar_id":"","url":"https://api.github.com/users/kamon-io","html_url":"https://github.com/kamon-io","followers_url":"https://api.github.com/users/kamon-io/followers","following_url":"https://api.github.com/users/kamon-io/following{/other_user}","gists_url":"https://api.github.com/users/kamon-io/gists{/gist_id}","starred_url":"https://api.github.com/users/kamon-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamon-io/subscriptions","organizations_url":"https://api.github.com/users/kamon-io/orgs","repos_url":"https://api.github.com/users/kamon-io/repos","events_url":"https://api.github.com/users/kamon-io/events{/privacy}","received_events_url":"https://api.github.com/users/kamon-io/received_events","type":"Organization","site_admin":false},"repo":{"id":9843572,"name":"Kamon","full_name":"kamon-io/Kamon","owner":{"login":"kamon-io","id":5789105,"avatar_url":"https://avatars.githubusercontent.com/u/5789105?v=3","gravatar_id":"","url":"https://api.github.com/users/kamon-io","html_url":"https://github.com/kamon-io","followers_url":"https://api.github.com/users/kamon-io/followers","following_url":"https://api.github.com/users/kamon-io/following{/other_user}","gists_url":"https://api.github.com/users/kamon-io/gists{/gist_id}","starred_url":"https://api.github.com/users/kamon-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamon-io/subscriptions","organizations_url":"https://api.github.com/users/kamon-io/orgs","repos_url":"https://api.github.com/users/kamon-io/repos","events_url":"https://api.github.com/users/kamon-io/events{/privacy}","received_events_url":"https://api.github.com/users/kamon-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kamon-io/Kamon","description":"Reactive Applications Monitoring","fork":false,"url":"https://api.github.com/repos/kamon-io/Kamon","forks_url":"https://api.github.com/repos/kamon-io/Kamon/forks","keys_url":"https://api.github.com/repos/kamon-io/Kamon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kamon-io/Kamon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kamon-io/Kamon/teams","hooks_url":"https://api.github.com/repos/kamon-io/Kamon/hooks","issue_events_url":"https://api.github.com/repos/kamon-io/Kamon/issues/events{/number}","events_url":"https://api.github.com/repos/kamon-io/Kamon/events","assignees_url":"https://api.github.com/repos/kamon-io/Kamon/assignees{/user}","branches_url":"https://api.github.com/repos/kamon-io/Kamon/branches{/branch}","tags_url":"https://api.github.com/repos/kamon-io/Kamon/tags","blobs_url":"https://api.github.com/repos/kamon-io/Kamon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kamon-io/Kamon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kamon-io/Kamon/git/refs{/sha}","trees_url":"https://api.github.com/repos/kamon-io/Kamon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kamon-io/Kamon/statuses/{sha}","languages_url":"https://api.github.com/repos/kamon-io/Kamon/languages","stargazers_url":"https://api.github.com/repos/kamon-io/Kamon/stargazers","contributors_url":"https://api.github.com/repos/kamon-io/Kamon/contributors","subscribers_url":"https://api.github.com/repos/kamon-io/Kamon/subscribers","subscription_url":"https://api.github.com/repos/kamon-io/Kamon/subscription","commits_url":"https://api.github.com/repos/kamon-io/Kamon/commits{/sha}","git_commits_url":"https://api.github.com/repos/kamon-io/Kamon/git/commits{/sha}","comments_url":"https://api.github.com/repos/kamon-io/Kamon/comments{/number}","issue_comment_url":"https://api.github.com/repos/kamon-io/Kamon/issues/comments{/number}","contents_url":"https://api.github.com/repos/kamon-io/Kamon/contents/{+path}","compare_url":"https://api.github.com/repos/kamon-io/Kamon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kamon-io/Kamon/merges","archive_url":"https://api.github.com/repos/kamon-io/Kamon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kamon-io/Kamon/downloads","issues_url":"https://api.github.com/repos/kamon-io/Kamon/issues{/number}","pulls_url":"https://api.github.com/repos/kamon-io/Kamon/pulls{/number}","milestones_url":"https://api.github.com/repos/kamon-io/Kamon/milestones{/number}","notifications_url":"https://api.github.com/repos/kamon-io/Kamon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kamon-io/Kamon/labels{/name}","releases_url":"https://api.github.com/repos/kamon-io/Kamon/releases{/id}","created_at":"2013-05-03T20:02:45Z","updated_at":"2015-08-22T00:37:53Z","pushed_at":"2015-08-24T17:24:33Z","git_url":"git://github.com/kamon-io/Kamon.git","ssh_url":"git@github.com:kamon-io/Kamon.git","clone_url":"https://github.com/kamon-io/Kamon.git","svn_url":"https://github.com/kamon-io/Kamon","homepage":"http://kamon.io","size":9574,"stargazers_count":450,"watchers_count":450,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":85,"mirror_url":null,"open_issues_count":60,"forks":85,"open_issues":60,"watchers":450,"default_branch":"master"}},"base":{"label":"kamon-io:master","ref":"master","sha":"7f96f925670f1b8578e20b2bb171eac1cf2dfbfe","user":{"login":"kamon-io","id":5789105,"avatar_url":"https://avatars.githubusercontent.com/u/5789105?v=3","gravatar_id":"","url":"https://api.github.com/users/kamon-io","html_url":"https://github.com/kamon-io","followers_url":"https://api.github.com/users/kamon-io/followers","following_url":"https://api.github.com/users/kamon-io/following{/other_user}","gists_url":"https://api.github.com/users/kamon-io/gists{/gist_id}","starred_url":"https://api.github.com/users/kamon-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamon-io/subscriptions","organizations_url":"https://api.github.com/users/kamon-io/orgs","repos_url":"https://api.github.com/users/kamon-io/repos","events_url":"https://api.github.com/users/kamon-io/events{/privacy}","received_events_url":"https://api.github.com/users/kamon-io/received_events","type":"Organization","site_admin":false},"repo":{"id":9843572,"name":"Kamon","full_name":"kamon-io/Kamon","owner":{"login":"kamon-io","id":5789105,"avatar_url":"https://avatars.githubusercontent.com/u/5789105?v=3","gravatar_id":"","url":"https://api.github.com/users/kamon-io","html_url":"https://github.com/kamon-io","followers_url":"https://api.github.com/users/kamon-io/followers","following_url":"https://api.github.com/users/kamon-io/following{/other_user}","gists_url":"https://api.github.com/users/kamon-io/gists{/gist_id}","starred_url":"https://api.github.com/users/kamon-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamon-io/subscriptions","organizations_url":"https://api.github.com/users/kamon-io/orgs","repos_url":"https://api.github.com/users/kamon-io/repos","events_url":"https://api.github.com/users/kamon-io/events{/privacy}","received_events_url":"https://api.github.com/users/kamon-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kamon-io/Kamon","description":"Reactive Applications Monitoring","fork":false,"url":"https://api.github.com/repos/kamon-io/Kamon","forks_url":"https://api.github.com/repos/kamon-io/Kamon/forks","keys_url":"https://api.github.com/repos/kamon-io/Kamon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kamon-io/Kamon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kamon-io/Kamon/teams","hooks_url":"https://api.github.com/repos/kamon-io/Kamon/hooks","issue_events_url":"https://api.github.com/repos/kamon-io/Kamon/issues/events{/number}","events_url":"https://api.github.com/repos/kamon-io/Kamon/events","assignees_url":"https://api.github.com/repos/kamon-io/Kamon/assignees{/user}","branches_url":"https://api.github.com/repos/kamon-io/Kamon/branches{/branch}","tags_url":"https://api.github.com/repos/kamon-io/Kamon/tags","blobs_url":"https://api.github.com/repos/kamon-io/Kamon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kamon-io/Kamon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kamon-io/Kamon/git/refs{/sha}","trees_url":"https://api.github.com/repos/kamon-io/Kamon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kamon-io/Kamon/statuses/{sha}","languages_url":"https://api.github.com/repos/kamon-io/Kamon/languages","stargazers_url":"https://api.github.com/repos/kamon-io/Kamon/stargazers","contributors_url":"https://api.github.com/repos/kamon-io/Kamon/contributors","subscribers_url":"https://api.github.com/repos/kamon-io/Kamon/subscribers","subscription_url":"https://api.github.com/repos/kamon-io/Kamon/subscription","commits_url":"https://api.github.com/repos/kamon-io/Kamon/commits{/sha}","git_commits_url":"https://api.github.com/repos/kamon-io/Kamon/git/commits{/sha}","comments_url":"https://api.github.com/repos/kamon-io/Kamon/comments{/number}","issue_comment_url":"https://api.github.com/repos/kamon-io/Kamon/issues/comments{/number}","contents_url":"https://api.github.com/repos/kamon-io/Kamon/contents/{+path}","compare_url":"https://api.github.com/repos/kamon-io/Kamon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kamon-io/Kamon/merges","archive_url":"https://api.github.com/repos/kamon-io/Kamon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kamon-io/Kamon/downloads","issues_url":"https://api.github.com/repos/kamon-io/Kamon/issues{/number}","pulls_url":"https://api.github.com/repos/kamon-io/Kamon/pulls{/number}","milestones_url":"https://api.github.com/repos/kamon-io/Kamon/milestones{/number}","notifications_url":"https://api.github.com/repos/kamon-io/Kamon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kamon-io/Kamon/labels{/name}","releases_url":"https://api.github.com/repos/kamon-io/Kamon/releases{/id}","created_at":"2013-05-03T20:02:45Z","updated_at":"2015-08-22T00:37:53Z","pushed_at":"2015-08-24T17:24:33Z","git_url":"git://github.com/kamon-io/Kamon.git","ssh_url":"git@github.com:kamon-io/Kamon.git","clone_url":"https://github.com/kamon-io/Kamon.git","svn_url":"https://github.com/kamon-io/Kamon","homepage":"http://kamon.io","size":9574,"stargazers_count":450,"watchers_count":450,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":85,"mirror_url":null,"open_issues_count":60,"forks":85,"open_issues":60,"watchers":450,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kamon-io/Kamon/pulls/246"},"html":{"href":"https://github.com/kamon-io/Kamon/pull/246"},"issue":{"href":"https://api.github.com/repos/kamon-io/Kamon/issues/246"},"comments":{"href":"https://api.github.com/repos/kamon-io/Kamon/issues/246/comments"},"review_comments":{"href":"https://api.github.com/repos/kamon-io/Kamon/pulls/246/comments"},"review_comment":{"href":"https://api.github.com/repos/kamon-io/Kamon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kamon-io/Kamon/pulls/246/commits"},"statuses":{"href":"https://api.github.com/repos/kamon-io/Kamon/statuses/8b7516af6fb4942c48e189405ea8c2ee16452cd3"}}}}