{"action":"created","comment":{"url":"https://api.github.com/repos/census-instrumentation/opencensus-python/pulls/comments/134020778","pull_request_review_id":57272595,"id":134020778,"diff_hunk":"@@ -12,6 +12,13 @@\n # See the License for the specific language governing permissions and\n # limitations under the License.\n \n-from opencensus.trace.tracer.middleware.request import RequestMiddleware\n \n-__all__ = ['RequestMiddleware']\n+def get_func_name(func):\n+    \"\"\"Return a name which includes the module name and function name.\"\"\"\n+    func_name = getattr(func, '__name__', func.__class__.__name__)\n+\n+    if hasattr(func, '__module__'):\n+        module_name = func.__module__\n+        return '{}.{}'.format(module_name, func_name)","path":"trace/opencensus/trace/ext/utils.py","position":22,"original_position":19,"commit_id":"b6858e53c7cd648c4dbee78a7af485b4bfa96032","original_commit_id":"11b846532a15694e2a194684dfd3373ec5d5f031","user":{"login":"liyanhui1228","id":12888824,"avatar_url":"https://avatars3.githubusercontent.com/u/12888824?v=4","gravatar_id":"","url":"https://api.github.com/users/liyanhui1228","html_url":"https://github.com/liyanhui1228","followers_url":"https://api.github.com/users/liyanhui1228/followers","following_url":"https://api.github.com/users/liyanhui1228/following{/other_user}","gists_url":"https://api.github.com/users/liyanhui1228/gists{/gist_id}","starred_url":"https://api.github.com/users/liyanhui1228/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liyanhui1228/subscriptions","organizations_url":"https://api.github.com/users/liyanhui1228/orgs","repos_url":"https://api.github.com/users/liyanhui1228/repos","events_url":"https://api.github.com/users/liyanhui1228/events{/privacy}","received_events_url":"https://api.github.com/users/liyanhui1228/received_events","type":"User","site_admin":false},"body":"It's the fully qualified package name.","created_at":"2017-08-18T18:06:13Z","updated_at":"2017-08-18T18:06:13Z","html_url":"https://github.com/census-instrumentation/opencensus-python/pull/17#discussion_r134020778","pull_request_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-python/pulls/comments/134020778"},"html":{"href":"https://github.com/census-instrumentation/opencensus-python/pull/17#discussion_r134020778"},"pull_request":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-python/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/census-instrumentation/opencensus-python/pulls/17","id":136124691,"html_url":"https://github.com/census-instrumentation/opencensus-python/pull/17","diff_url":"https://github.com/census-instrumentation/opencensus-python/pull/17.diff","patch_url":"https://github.com/census-instrumentation/opencensus-python/pull/17.patch","issue_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/issues/17","number":17,"state":"open","locked":false,"title":"[WIP] Django integration for tracing requests automatically","user":{"login":"liyanhui1228","id":12888824,"avatar_url":"https://avatars3.githubusercontent.com/u/12888824?v=4","gravatar_id":"","url":"https://api.github.com/users/liyanhui1228","html_url":"https://github.com/liyanhui1228","followers_url":"https://api.github.com/users/liyanhui1228/followers","following_url":"https://api.github.com/users/liyanhui1228/following{/other_user}","gists_url":"https://api.github.com/users/liyanhui1228/gists{/gist_id}","starred_url":"https://api.github.com/users/liyanhui1228/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liyanhui1228/subscriptions","organizations_url":"https://api.github.com/users/liyanhui1228/orgs","repos_url":"https://api.github.com/users/liyanhui1228/repos","events_url":"https://api.github.com/users/liyanhui1228/events{/privacy}","received_events_url":"https://api.github.com/users/liyanhui1228/received_events","type":"User","site_admin":false},"body":"Remove the django tracer, instead adding the trace logic in the django middleware to enable tracing requests automatically.","created_at":"2017-08-16T21:17:08Z","updated_at":"2017-08-18T18:06:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b51e6e939f0a9491f82c61356812bd9495bf3f20","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/pulls/17/commits","review_comments_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/pulls/17/comments","review_comment_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/issues/17/comments","statuses_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/statuses/b6858e53c7cd648c4dbee78a7af485b4bfa96032","head":{"label":"liyanhui1228:django","ref":"django","sha":"b6858e53c7cd648c4dbee78a7af485b4bfa96032","user":{"login":"liyanhui1228","id":12888824,"avatar_url":"https://avatars3.githubusercontent.com/u/12888824?v=4","gravatar_id":"","url":"https://api.github.com/users/liyanhui1228","html_url":"https://github.com/liyanhui1228","followers_url":"https://api.github.com/users/liyanhui1228/followers","following_url":"https://api.github.com/users/liyanhui1228/following{/other_user}","gists_url":"https://api.github.com/users/liyanhui1228/gists{/gist_id}","starred_url":"https://api.github.com/users/liyanhui1228/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liyanhui1228/subscriptions","organizations_url":"https://api.github.com/users/liyanhui1228/orgs","repos_url":"https://api.github.com/users/liyanhui1228/repos","events_url":"https://api.github.com/users/liyanhui1228/events{/privacy}","received_events_url":"https://api.github.com/users/liyanhui1228/received_events","type":"User","site_admin":false},"repo":{"id":98222117,"name":"opencensus-python","full_name":"liyanhui1228/opencensus-python","owner":{"login":"liyanhui1228","id":12888824,"avatar_url":"https://avatars3.githubusercontent.com/u/12888824?v=4","gravatar_id":"","url":"https://api.github.com/users/liyanhui1228","html_url":"https://github.com/liyanhui1228","followers_url":"https://api.github.com/users/liyanhui1228/followers","following_url":"https://api.github.com/users/liyanhui1228/following{/other_user}","gists_url":"https://api.github.com/users/liyanhui1228/gists{/gist_id}","starred_url":"https://api.github.com/users/liyanhui1228/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liyanhui1228/subscriptions","organizations_url":"https://api.github.com/users/liyanhui1228/orgs","repos_url":"https://api.github.com/users/liyanhui1228/repos","events_url":"https://api.github.com/users/liyanhui1228/events{/privacy}","received_events_url":"https://api.github.com/users/liyanhui1228/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/liyanhui1228/opencensus-python","description":null,"fork":true,"url":"https://api.github.com/repos/liyanhui1228/opencensus-python","forks_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/forks","keys_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/teams","hooks_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/hooks","issue_events_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/issues/events{/number}","events_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/events","assignees_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/assignees{/user}","branches_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/branches{/branch}","tags_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/tags","blobs_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/statuses/{sha}","languages_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/languages","stargazers_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/stargazers","contributors_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/contributors","subscribers_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/subscribers","subscription_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/subscription","commits_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/contents/{+path}","compare_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/merges","archive_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/downloads","issues_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/issues{/number}","pulls_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/pulls{/number}","milestones_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/milestones{/number}","notifications_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/labels{/name}","releases_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/releases{/id}","deployments_url":"https://api.github.com/repos/liyanhui1228/opencensus-python/deployments","created_at":"2017-07-24T18:29:15Z","updated_at":"2017-07-24T18:29:17Z","pushed_at":"2017-08-18T17:30:17Z","git_url":"git://github.com/liyanhui1228/opencensus-python.git","ssh_url":"git@github.com:liyanhui1228/opencensus-python.git","clone_url":"https://github.com/liyanhui1228/opencensus-python.git","svn_url":"https://github.com/liyanhui1228/opencensus-python","homepage":null,"size":159,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"census-instrumentation:master","ref":"master","sha":"4af6265dace1bfe611ef9d8c3cdfbfea93f4a348","user":{"login":"census-instrumentation","id":26944525,"avatar_url":"https://avatars0.githubusercontent.com/u/26944525?v=4","gravatar_id":"","url":"https://api.github.com/users/census-instrumentation","html_url":"https://github.com/census-instrumentation","followers_url":"https://api.github.com/users/census-instrumentation/followers","following_url":"https://api.github.com/users/census-instrumentation/following{/other_user}","gists_url":"https://api.github.com/users/census-instrumentation/gists{/gist_id}","starred_url":"https://api.github.com/users/census-instrumentation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/census-instrumentation/subscriptions","organizations_url":"https://api.github.com/users/census-instrumentation/orgs","repos_url":"https://api.github.com/users/census-instrumentation/repos","events_url":"https://api.github.com/users/census-instrumentation/events{/privacy}","received_events_url":"https://api.github.com/users/census-instrumentation/received_events","type":"Organization","site_admin":false},"repo":{"id":96581030,"name":"opencensus-python","full_name":"census-instrumentation/opencensus-python","owner":{"login":"census-instrumentation","id":26944525,"avatar_url":"https://avatars0.githubusercontent.com/u/26944525?v=4","gravatar_id":"","url":"https://api.github.com/users/census-instrumentation","html_url":"https://github.com/census-instrumentation","followers_url":"https://api.github.com/users/census-instrumentation/followers","following_url":"https://api.github.com/users/census-instrumentation/following{/other_user}","gists_url":"https://api.github.com/users/census-instrumentation/gists{/gist_id}","starred_url":"https://api.github.com/users/census-instrumentation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/census-instrumentation/subscriptions","organizations_url":"https://api.github.com/users/census-instrumentation/orgs","repos_url":"https://api.github.com/users/census-instrumentation/repos","events_url":"https://api.github.com/users/census-instrumentation/events{/privacy}","received_events_url":"https://api.github.com/users/census-instrumentation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/census-instrumentation/opencensus-python","description":"A stats collection and distributed tracing framework","fork":false,"url":"https://api.github.com/repos/census-instrumentation/opencensus-python","forks_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/forks","keys_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/teams","hooks_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/hooks","issue_events_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/issues/events{/number}","events_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/events","assignees_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/assignees{/user}","branches_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/branches{/branch}","tags_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/tags","blobs_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/statuses/{sha}","languages_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/languages","stargazers_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/stargazers","contributors_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/contributors","subscribers_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/subscribers","subscription_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/subscription","commits_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/contents/{+path}","compare_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/merges","archive_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/downloads","issues_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/issues{/number}","pulls_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/pulls{/number}","milestones_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/milestones{/number}","notifications_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/labels{/name}","releases_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/releases{/id}","deployments_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/deployments","created_at":"2017-07-07T22:28:28Z","updated_at":"2017-08-15T17:42:13Z","pushed_at":"2017-08-18T17:30:18Z","git_url":"git://github.com/census-instrumentation/opencensus-python.git","ssh_url":"git@github.com:census-instrumentation/opencensus-python.git","clone_url":"https://github.com/census-instrumentation/opencensus-python.git","svn_url":"https://github.com/census-instrumentation/opencensus-python","homepage":"","size":66,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-python/pulls/17"},"html":{"href":"https://github.com/census-instrumentation/opencensus-python/pull/17"},"issue":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-python/issues/17"},"comments":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-python/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-python/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-python/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-python/statuses/b6858e53c7cd648c4dbee78a7af485b4bfa96032"}}}}
{"actor":{"display_login":"liyanhui1228"}}