{"action":"created","comment":{"url":"https://api.github.com/repos/census-instrumentation/opencensus-node/pulls/comments/235132172","pull_request_review_id":176928534,"id":235132172,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNTEzMjE3Mg==","diff_hunk":"@@ -0,0 +1,41 @@\n+/**\n+ * Copyright 2018 Google LLC\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+\n+/**\n+ * Internal utility methods for working with tag keys, tag values, and metric\n+ * names.\n+ */\n+export class StringUtils {\n+  /**\n+   * Determines whether the String contains only printable characters.\n+   *\n+   * @param {string} str the String to be validated.\n+   * @return whether the String contains only printable characters.\n+   */\n+  static isPrintableString(str: string): boolean {\n+    for (let i = 0; i < str.length; i++) {\n+      const ch: string = str.charAt(i);\n+      if (!StringUtils.isPrintableChar(ch)) {\n+        return false;\n+      }\n+    }\n+    return true;\n+  }\n+","path":"packages/opencensus-core/src/internal/string-utils.ts","position":37,"original_position":37,"commit_id":"0577e51fb158f644c0d5646527ec67262d7f6941","original_commit_id":"0577e51fb158f644c0d5646527ec67262d7f6941","user":{"login":"isaikevych","id":44039947,"node_id":"MDQ6VXNlcjQ0MDM5OTQ3","avatar_url":"https://avatars2.githubusercontent.com/u/44039947?v=4","gravatar_id":"","url":"https://api.github.com/users/isaikevych","html_url":"https://github.com/isaikevych","followers_url":"https://api.github.com/users/isaikevych/followers","following_url":"https://api.github.com/users/isaikevych/following{/other_user}","gists_url":"https://api.github.com/users/isaikevych/gists{/gist_id}","starred_url":"https://api.github.com/users/isaikevych/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isaikevych/subscriptions","organizations_url":"https://api.github.com/users/isaikevych/orgs","repos_url":"https://api.github.com/users/isaikevych/repos","events_url":"https://api.github.com/users/isaikevych/events{/privacy}","received_events_url":"https://api.github.com/users/isaikevych/received_events","type":"User","site_admin":false},"body":"Please add jsdoc with description","created_at":"2018-11-20T19:07:08Z","updated_at":"2018-11-20T19:48:51Z","html_url":"https://github.com/census-instrumentation/opencensus-node/pull/193#discussion_r235132172","pull_request_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/pulls/193","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-node/pulls/comments/235132172"},"html":{"href":"https://github.com/census-instrumentation/opencensus-node/pull/193#discussion_r235132172"},"pull_request":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-node/pulls/193"}}},"pull_request":{"url":"https://api.github.com/repos/census-instrumentation/opencensus-node/pulls/193","id":232061468,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyMDYxNDY4","html_url":"https://github.com/census-instrumentation/opencensus-node/pull/193","diff_url":"https://github.com/census-instrumentation/opencensus-node/pull/193.diff","patch_url":"https://github.com/census-instrumentation/opencensus-node/pull/193.patch","issue_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/issues/193","number":193,"state":"open","locked":false,"title":"Add Resource API","user":{"login":"mayurkale22","id":6525361,"node_id":"MDQ6VXNlcjY1MjUzNjE=","avatar_url":"https://avatars2.githubusercontent.com/u/6525361?v=4","gravatar_id":"","url":"https://api.github.com/users/mayurkale22","html_url":"https://github.com/mayurkale22","followers_url":"https://api.github.com/users/mayurkale22/followers","following_url":"https://api.github.com/users/mayurkale22/following{/other_user}","gists_url":"https://api.github.com/users/mayurkale22/gists{/gist_id}","starred_url":"https://api.github.com/users/mayurkale22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mayurkale22/subscriptions","organizations_url":"https://api.github.com/users/mayurkale22/orgs","repos_url":"https://api.github.com/users/mayurkale22/repos","events_url":"https://api.github.com/users/mayurkale22/events{/privacy}","received_events_url":"https://api.github.com/users/mayurkale22/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-19T17:53:09Z","updated_at":"2018-11-20T19:48:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1bed772ef7e36e53cbccb68bdd228628ad5f3cd1","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1133192707,"node_id":"MDU6TGFiZWwxMTMzMTkyNzA3","url":"https://api.github.com/repos/census-instrumentation/opencensus-node/labels/Resource","name":"Resource","color":"d4c5f9","default":false},{"id":925574611,"node_id":"MDU6TGFiZWw5MjU1NzQ2MTE=","url":"https://api.github.com/repos/census-instrumentation/opencensus-node/labels/cla:%20yes","name":"cla: yes","color":"14a839","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/pulls/193/commits","review_comments_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/pulls/193/comments","review_comment_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/pulls/comments{/number}","comments_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/issues/193/comments","statuses_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/statuses/0577e51fb158f644c0d5646527ec67262d7f6941","head":{"label":"mayurkale22:resourceAPI","ref":"resourceAPI","sha":"0577e51fb158f644c0d5646527ec67262d7f6941","user":{"login":"mayurkale22","id":6525361,"node_id":"MDQ6VXNlcjY1MjUzNjE=","avatar_url":"https://avatars2.githubusercontent.com/u/6525361?v=4","gravatar_id":"","url":"https://api.github.com/users/mayurkale22","html_url":"https://github.com/mayurkale22","followers_url":"https://api.github.com/users/mayurkale22/followers","following_url":"https://api.github.com/users/mayurkale22/following{/other_user}","gists_url":"https://api.github.com/users/mayurkale22/gists{/gist_id}","starred_url":"https://api.github.com/users/mayurkale22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mayurkale22/subscriptions","organizations_url":"https://api.github.com/users/mayurkale22/orgs","repos_url":"https://api.github.com/users/mayurkale22/repos","events_url":"https://api.github.com/users/mayurkale22/events{/privacy}","received_events_url":"https://api.github.com/users/mayurkale22/received_events","type":"User","site_admin":false},"repo":{"id":156600148,"node_id":"MDEwOlJlcG9zaXRvcnkxNTY2MDAxNDg=","name":"opencensus-node","full_name":"mayurkale22/opencensus-node","private":false,"owner":{"login":"mayurkale22","id":6525361,"node_id":"MDQ6VXNlcjY1MjUzNjE=","avatar_url":"https://avatars2.githubusercontent.com/u/6525361?v=4","gravatar_id":"","url":"https://api.github.com/users/mayurkale22","html_url":"https://github.com/mayurkale22","followers_url":"https://api.github.com/users/mayurkale22/followers","following_url":"https://api.github.com/users/mayurkale22/following{/other_user}","gists_url":"https://api.github.com/users/mayurkale22/gists{/gist_id}","starred_url":"https://api.github.com/users/mayurkale22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mayurkale22/subscriptions","organizations_url":"https://api.github.com/users/mayurkale22/orgs","repos_url":"https://api.github.com/users/mayurkale22/repos","events_url":"https://api.github.com/users/mayurkale22/events{/privacy}","received_events_url":"https://api.github.com/users/mayurkale22/received_events","type":"User","site_admin":false},"html_url":"https://github.com/mayurkale22/opencensus-node","description":"A stats collection and distributed tracing framework","fork":true,"url":"https://api.github.com/repos/mayurkale22/opencensus-node","forks_url":"https://api.github.com/repos/mayurkale22/opencensus-node/forks","keys_url":"https://api.github.com/repos/mayurkale22/opencensus-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mayurkale22/opencensus-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mayurkale22/opencensus-node/teams","hooks_url":"https://api.github.com/repos/mayurkale22/opencensus-node/hooks","issue_events_url":"https://api.github.com/repos/mayurkale22/opencensus-node/issues/events{/number}","events_url":"https://api.github.com/repos/mayurkale22/opencensus-node/events","assignees_url":"https://api.github.com/repos/mayurkale22/opencensus-node/assignees{/user}","branches_url":"https://api.github.com/repos/mayurkale22/opencensus-node/branches{/branch}","tags_url":"https://api.github.com/repos/mayurkale22/opencensus-node/tags","blobs_url":"https://api.github.com/repos/mayurkale22/opencensus-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mayurkale22/opencensus-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mayurkale22/opencensus-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/mayurkale22/opencensus-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mayurkale22/opencensus-node/statuses/{sha}","languages_url":"https://api.github.com/repos/mayurkale22/opencensus-node/languages","stargazers_url":"https://api.github.com/repos/mayurkale22/opencensus-node/stargazers","contributors_url":"https://api.github.com/repos/mayurkale22/opencensus-node/contributors","subscribers_url":"https://api.github.com/repos/mayurkale22/opencensus-node/subscribers","subscription_url":"https://api.github.com/repos/mayurkale22/opencensus-node/subscription","commits_url":"https://api.github.com/repos/mayurkale22/opencensus-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/mayurkale22/opencensus-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/mayurkale22/opencensus-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/mayurkale22/opencensus-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/mayurkale22/opencensus-node/contents/{+path}","compare_url":"https://api.github.com/repos/mayurkale22/opencensus-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mayurkale22/opencensus-node/merges","archive_url":"https://api.github.com/repos/mayurkale22/opencensus-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mayurkale22/opencensus-node/downloads","issues_url":"https://api.github.com/repos/mayurkale22/opencensus-node/issues{/number}","pulls_url":"https://api.github.com/repos/mayurkale22/opencensus-node/pulls{/number}","milestones_url":"https://api.github.com/repos/mayurkale22/opencensus-node/milestones{/number}","notifications_url":"https://api.github.com/repos/mayurkale22/opencensus-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mayurkale22/opencensus-node/labels{/name}","releases_url":"https://api.github.com/repos/mayurkale22/opencensus-node/releases{/id}","deployments_url":"https://api.github.com/repos/mayurkale22/opencensus-node/deployments","created_at":"2018-11-07T19:50:40Z","updated_at":"2018-11-19T23:52:12Z","pushed_at":"2018-11-20T19:21:00Z","git_url":"git://github.com/mayurkale22/opencensus-node.git","ssh_url":"git@github.com:mayurkale22/opencensus-node.git","clone_url":"https://github.com/mayurkale22/opencensus-node.git","svn_url":"https://github.com/mayurkale22/opencensus-node","homepage":"https://opencensus.io","size":1665,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"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":"dfa4612478dda0236765a4f514b7a366e5ca8583","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":109782875,"node_id":"MDEwOlJlcG9zaXRvcnkxMDk3ODI4NzU=","name":"opencensus-node","full_name":"census-instrumentation/opencensus-node","private":false,"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},"html_url":"https://github.com/census-instrumentation/opencensus-node","description":"A stats collection and distributed tracing framework","fork":false,"url":"https://api.github.com/repos/census-instrumentation/opencensus-node","forks_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/forks","keys_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/teams","hooks_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/hooks","issue_events_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/issues/events{/number}","events_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/events","assignees_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/assignees{/user}","branches_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/branches{/branch}","tags_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/tags","blobs_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/statuses/{sha}","languages_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/languages","stargazers_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/stargazers","contributors_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/contributors","subscribers_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/subscribers","subscription_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/subscription","commits_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/contents/{+path}","compare_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/merges","archive_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/downloads","issues_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/issues{/number}","pulls_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/pulls{/number}","milestones_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/milestones{/number}","notifications_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/labels{/name}","releases_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/releases{/id}","deployments_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/deployments","created_at":"2017-11-07T03:35:31Z","updated_at":"2018-11-19T23:51:38Z","pushed_at":"2018-11-20T19:21:02Z","git_url":"git://github.com/census-instrumentation/opencensus-node.git","ssh_url":"git@github.com:census-instrumentation/opencensus-node.git","clone_url":"https://github.com/census-instrumentation/opencensus-node.git","svn_url":"https://github.com/census-instrumentation/opencensus-node","homepage":"https://opencensus.io","size":1634,"stargazers_count":101,"watchers_count":101,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":36,"mirror_url":null,"archived":false,"open_issues_count":42,"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":36,"open_issues":42,"watchers":101,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-node/pulls/193"},"html":{"href":"https://github.com/census-instrumentation/opencensus-node/pull/193"},"issue":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-node/issues/193"},"comments":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-node/issues/193/comments"},"review_comments":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-node/pulls/193/comments"},"review_comment":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-node/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-node/pulls/193/commits"},"statuses":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-node/statuses/0577e51fb158f644c0d5646527ec67262d7f6941"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"isaikevych"}}