{"action":"created","comment":{"url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/pulls/comments/199676693","pull_request_review_id":133840460,"id":199676693,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTY3NjY5Mw==","diff_hunk":"@@ -0,0 +1,154 @@\n+// Copyright 2018, OpenCensus Authors\n+//\n+// Licensed under the Apache License, Version 2.0 (the \"License\");\n+// you may not use this file except in compliance with the License.\n+// 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\n+// distributed under the License is distributed on an \"AS IS\" BASIS,\n+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+// See the License for the specific language governing permissions and\n+// limitations under the License.\n+\n+// Example RPC server using gRPC.\n+\n+#include <cstdlib>\n+#include <iostream>\n+#include <memory>\n+#include <string>\n+\n+#include <grpcpp/grpcpp.h>\n+\n+#include \"absl/strings/numbers.h\"\n+#include \"absl/strings/str_cat.h\"\n+#include \"examples/grpc/hello.grpc.pb.h\"\n+#include \"examples/grpc/hello.pb.h\"\n+#include \"examples/grpc/stackdriver.h\"\n+#include \"include/grpcpp/opencensus.h\"\n+#include \"opencensus/exporters/stats/prometheus/prometheus_exporter.h\"\n+#include \"opencensus/exporters/stats/stackdriver/stackdriver_exporter.h\"\n+#include \"opencensus/exporters/stats/stdout/stdout_exporter.h\"\n+#include \"opencensus/exporters/trace/stackdriver/stackdriver_exporter.h\"\n+#include \"opencensus/exporters/trace/stdout/stdout_exporter.h\"\n+#include \"opencensus/stats/stats.h\"\n+#include \"opencensus/trace/sampler.h\"\n+#include \"opencensus/trace/span.h\"\n+#include \"opencensus/trace/trace_config.h\"\n+#include \"prometheus/exposer.h\"\n+#include \"src/cpp/ext/filters/census/grpc_plugin.h\"","path":"examples/grpc/hello_server.cc","position":40,"original_position":40,"commit_id":"f53a78830e693c14c9f2e7a9474b92f831b2b972","original_commit_id":"f53a78830e693c14c9f2e7a9474b92f831b2b972","user":{"login":"g-easy","id":29616524,"node_id":"MDQ6VXNlcjI5NjE2NTI0","avatar_url":"https://avatars1.githubusercontent.com/u/29616524?v=4","gravatar_id":"","url":"https://api.github.com/users/g-easy","html_url":"https://github.com/g-easy","followers_url":"https://api.github.com/users/g-easy/followers","following_url":"https://api.github.com/users/g-easy/following{/other_user}","gists_url":"https://api.github.com/users/g-easy/gists{/gist_id}","starred_url":"https://api.github.com/users/g-easy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/g-easy/subscriptions","organizations_url":"https://api.github.com/users/g-easy/orgs","repos_url":"https://api.github.com/users/g-easy/repos","events_url":"https://api.github.com/users/g-easy/events{/privacy}","received_events_url":"https://api.github.com/users/g-easy/received_events","type":"User","site_admin":false},"body":"Is this needed? Is this an internal header?","created_at":"2018-07-03T03:47:43Z","updated_at":"2018-07-03T03:49:39Z","html_url":"https://github.com/census-instrumentation/opencensus-cpp/pull/166#discussion_r199676693","pull_request_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/pulls/166","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/pulls/comments/199676693"},"html":{"href":"https://github.com/census-instrumentation/opencensus-cpp/pull/166#discussion_r199676693"},"pull_request":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/pulls/166"}}},"pull_request":{"url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/pulls/166","id":198217574,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4MjE3NTc0","html_url":"https://github.com/census-instrumentation/opencensus-cpp/pull/166","diff_url":"https://github.com/census-instrumentation/opencensus-cpp/pull/166.diff","patch_url":"https://github.com/census-instrumentation/opencensus-cpp/pull/166.patch","issue_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/issues/166","number":166,"state":"open","locked":false,"title":"Adding examples back to OpenCensus repo.","user":{"login":"Vizerai","id":6879942,"node_id":"MDQ6VXNlcjY4Nzk5NDI=","avatar_url":"https://avatars3.githubusercontent.com/u/6879942?v=4","gravatar_id":"","url":"https://api.github.com/users/Vizerai","html_url":"https://github.com/Vizerai","followers_url":"https://api.github.com/users/Vizerai/followers","following_url":"https://api.github.com/users/Vizerai/following{/other_user}","gists_url":"https://api.github.com/users/Vizerai/gists{/gist_id}","starred_url":"https://api.github.com/users/Vizerai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vizerai/subscriptions","organizations_url":"https://api.github.com/users/Vizerai/orgs","repos_url":"https://api.github.com/users/Vizerai/repos","events_url":"https://api.github.com/users/Vizerai/events{/privacy}","received_events_url":"https://api.github.com/users/Vizerai/received_events","type":"User","site_admin":false},"body":"References and build file have been fixed to work with new setup where the filter lies in the grpc repo.","created_at":"2018-06-29T05:21:44Z","updated_at":"2018-07-03T03:49:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3195c2c11b1bf4bc1702b2d02984ea2f3d0213cd","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/pulls/166/commits","review_comments_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/pulls/166/comments","review_comment_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/issues/166/comments","statuses_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/statuses/f53a78830e693c14c9f2e7a9474b92f831b2b972","head":{"label":"Vizerai:examples","ref":"examples","sha":"f53a78830e693c14c9f2e7a9474b92f831b2b972","user":{"login":"Vizerai","id":6879942,"node_id":"MDQ6VXNlcjY4Nzk5NDI=","avatar_url":"https://avatars3.githubusercontent.com/u/6879942?v=4","gravatar_id":"","url":"https://api.github.com/users/Vizerai","html_url":"https://github.com/Vizerai","followers_url":"https://api.github.com/users/Vizerai/followers","following_url":"https://api.github.com/users/Vizerai/following{/other_user}","gists_url":"https://api.github.com/users/Vizerai/gists{/gist_id}","starred_url":"https://api.github.com/users/Vizerai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vizerai/subscriptions","organizations_url":"https://api.github.com/users/Vizerai/orgs","repos_url":"https://api.github.com/users/Vizerai/repos","events_url":"https://api.github.com/users/Vizerai/events{/privacy}","received_events_url":"https://api.github.com/users/Vizerai/received_events","type":"User","site_admin":false},"repo":{"id":116201834,"node_id":"MDEwOlJlcG9zaXRvcnkxMTYyMDE4MzQ=","name":"opencensus-cpp","full_name":"Vizerai/opencensus-cpp","owner":{"login":"Vizerai","id":6879942,"node_id":"MDQ6VXNlcjY4Nzk5NDI=","avatar_url":"https://avatars3.githubusercontent.com/u/6879942?v=4","gravatar_id":"","url":"https://api.github.com/users/Vizerai","html_url":"https://github.com/Vizerai","followers_url":"https://api.github.com/users/Vizerai/followers","following_url":"https://api.github.com/users/Vizerai/following{/other_user}","gists_url":"https://api.github.com/users/Vizerai/gists{/gist_id}","starred_url":"https://api.github.com/users/Vizerai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vizerai/subscriptions","organizations_url":"https://api.github.com/users/Vizerai/orgs","repos_url":"https://api.github.com/users/Vizerai/repos","events_url":"https://api.github.com/users/Vizerai/events{/privacy}","received_events_url":"https://api.github.com/users/Vizerai/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Vizerai/opencensus-cpp","description":"A stats collection and distributed tracing framework","fork":true,"url":"https://api.github.com/repos/Vizerai/opencensus-cpp","forks_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/forks","keys_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/teams","hooks_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/hooks","issue_events_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/issues/events{/number}","events_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/events","assignees_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/assignees{/user}","branches_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/branches{/branch}","tags_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/tags","blobs_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/statuses/{sha}","languages_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/languages","stargazers_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/stargazers","contributors_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/contributors","subscribers_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/subscribers","subscription_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/subscription","commits_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/contents/{+path}","compare_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/merges","archive_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/downloads","issues_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/issues{/number}","pulls_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/pulls{/number}","milestones_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/milestones{/number}","notifications_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/labels{/name}","releases_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/releases{/id}","deployments_url":"https://api.github.com/repos/Vizerai/opencensus-cpp/deployments","created_at":"2018-01-04T01:55:05Z","updated_at":"2018-06-27T08:39:30Z","pushed_at":"2018-06-30T03:06:36Z","git_url":"git://github.com/Vizerai/opencensus-cpp.git","ssh_url":"git@github.com:Vizerai/opencensus-cpp.git","clone_url":"https://github.com/Vizerai/opencensus-cpp.git","svn_url":"https://github.com/Vizerai/opencensus-cpp","homepage":"http://opencensus.io/","size":3396,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"census-instrumentation:master","ref":"master","sha":"893e0835a45d749221f049d0d167e157b67b6d9c","user":{"login":"census-instrumentation","id":26944525,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2OTQ0NTI1","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":91836765,"node_id":"MDEwOlJlcG9zaXRvcnk5MTgzNjc2NQ==","name":"opencensus-cpp","full_name":"census-instrumentation/opencensus-cpp","owner":{"login":"census-instrumentation","id":26944525,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2OTQ0NTI1","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-cpp","description":"A stats collection and distributed tracing framework","fork":false,"url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp","forks_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/forks","keys_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/teams","hooks_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/hooks","issue_events_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/issues/events{/number}","events_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/events","assignees_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/assignees{/user}","branches_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/branches{/branch}","tags_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/tags","blobs_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/git/refs{/sha}","trees_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/statuses/{sha}","languages_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/languages","stargazers_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/stargazers","contributors_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/contributors","subscribers_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/subscribers","subscription_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/subscription","commits_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/commits{/sha}","git_commits_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/git/commits{/sha}","comments_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/comments{/number}","issue_comment_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/issues/comments{/number}","contents_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/contents/{+path}","compare_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/merges","archive_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/downloads","issues_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/issues{/number}","pulls_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/pulls{/number}","milestones_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/milestones{/number}","notifications_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/labels{/name}","releases_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/releases{/id}","deployments_url":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/deployments","created_at":"2017-05-19T18:59:46Z","updated_at":"2018-06-24T18:38:55Z","pushed_at":"2018-06-30T03:06:37Z","git_url":"git://github.com/census-instrumentation/opencensus-cpp.git","ssh_url":"git@github.com:census-instrumentation/opencensus-cpp.git","clone_url":"https://github.com/census-instrumentation/opencensus-cpp.git","svn_url":"https://github.com/census-instrumentation/opencensus-cpp","homepage":"https://opencensus.io/","size":515,"stargazers_count":56,"watchers_count":56,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":13,"mirror_url":null,"archived":false,"open_issues_count":11,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":13,"open_issues":11,"watchers":56,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/pulls/166"},"html":{"href":"https://github.com/census-instrumentation/opencensus-cpp/pull/166"},"issue":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/issues/166"},"comments":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/issues/166/comments"},"review_comments":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/pulls/166/comments"},"review_comment":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/pulls/166/commits"},"statuses":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-cpp/statuses/f53a78830e693c14c9f2e7a9474b92f831b2b972"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"g-easy"}}