{"action":"created","comment":{"url":"https://api.github.com/repos/census-instrumentation/opencensus-java/pulls/comments/225337778","pull_request_review_id":164921646,"id":225337778,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNTMzNzc3OA==","diff_hunk":"@@ -0,0 +1,206 @@\n+/*\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+\n+package io.opencensus.exporter.trace.ocagent;\n+\n+import com.google.common.annotations.VisibleForTesting;\n+import io.grpc.stub.StreamObserver;\n+import io.opencensus.proto.agent.trace.v1.CurrentLibraryConfig;\n+import io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest;\n+import io.opencensus.proto.agent.trace.v1.ExportTraceServiceResponse;\n+import io.opencensus.proto.agent.trace.v1.UpdatedLibraryConfig;\n+import io.opencensus.trace.Tracing;\n+import io.opencensus.trace.config.TraceConfig;\n+import io.opencensus.trace.config.TraceParams;\n+import java.util.concurrent.atomic.AtomicReference;\n+import java.util.logging.Level;\n+import java.util.logging.Logger;\n+\n+/*>>>\n+import org.checkerframework.checker.nullness.qual.Nullable;\n+*/\n+\n+/** Stream observers of OC-Agent Trace Service. */\n+final class OcAgentTraceServiceStreamObservers {\n+\n+  private OcAgentTraceServiceStreamObservers() {}\n+\n+  private static final Logger logger =\n+      Logger.getLogger(OcAgentTraceServiceStreamObservers.class.getName());\n+\n+  /*\n+   * gRPC-Java has good abstractions over the transport layer, and there's no way we can know the\n+   * connection status directly (nothing like *grpc.ClientConn in Go). Instead, we should verify the\n+   * connection when initiating and sending streams:\n+   *\n+   * 0. On client side we defined exportResponseObserver and updatedLibraryConfigObserver. On server\n+   * side we defined exportRequestObserver and currentConfigObserver.\n+   * Note: client == Agent Exporter, server == OC-Agent.\n+   *\n+   * Think of the whole process as a Finite State Machine.\n+   *\n+   * STATE 1: Unconnected/Disconnected.\n+   *\n+   * 1. First, client will try to establish the streams by calling TraceServiceStub.export and\n+   * TraceServiceStub.config in a daemon thread.\n+   *\n+   *   1-1. If the initial attempt succeeded, the server side observers should be returned to client\n+   *   as callbacks, and we keep a reference of them in the exportRequestObserverRef and\n+   *   currentConfigObserverRef. Same thing happen for client side observers.\n+   *\n+   *   1-2. If the attempt failed, TraceServiceStub.export or TraceServiceStub.config will throw\n+   *   an exception. We should catch the exceptions and keep retrying. Server side observers will\n+   *   not be returned to client and the references are null.\n+   *\n+   *   1-3. Therefore, after each attempt, we will be able to know if the connection succeeded or\n+   *   not by checking the references of exportRequestObserverRef and currentConfigObserverRef.\n+   *   If they're non-null, that means connection succeeded and we can move forward and start\n+   *   sending/receiving streams (move to STATE 2). Otherwise client should retry.\n+   *\n+   * STATE 2: Already connected.\n+   *\n+   * 2. Once streams are open, they should be kept alive. Client sends spans to server by using\n+   * exportRequestObserver.onNext (the callback provided by server). In addition, in another daemon\n+   * thread client watches config updates from server, which is done by server calling back\n+   * updatedConfigObserver.onNext.\n+   *\n+   *   2-1. If for some reason the connection is interrupted, the errors will be caught by\n+   *   the onError method of exportResponseObserver and updatedLibraryConfigObserver. In that case,\n+   *   we consider the connections as disconnected, and reset references of server stream observers\n+   *   to null. Then we will create a new channel and stub, try to connect to server, and try to\n+   *   get another exportRequestObserver and currentConfigObserver from server. (Back to STATE 1.)\n+   *\n+   *   2-2. If for some reason server decided to end the stream by calling onComplete, do the same\n+   *   thing as onError.\n+   *\n+   *\n+   * Therefore we have an invariant throughout the entire process: if the references of\n+   * currentConfigObserverRef and exportRequestObserverRef are non-null, the streams must still be\n+   * open and alive; otherwise streams must be disconnected and we should attempt to re-connect.\n+   */\n+\n+  // A reference to the callback exportRequestObserver returned from Agent server.\n+  // Shared between multiple thread.\n+  // The reference is non-null only when the connection succeeded.\n+  static final AtomicReference</*@Nullable*/ StreamObserver<ExportTraceServiceRequest>>\n+      exportRequestObserverRef = new AtomicReference<>();\n+\n+  // A reference to the callback currentConfigObserver returned from Agent server.\n+  // Shared between multiple threads.\n+  // The reference is non-null only when the connection succeeded.\n+  static final AtomicReference</*@Nullable*/ StreamObserver<CurrentLibraryConfig>>\n+      currentConfigObserverRef = new AtomicReference<>();\n+\n+  // Check if the export() connection is open and alive.\n+  static boolean isExportConnected() {\n+    return exportRequestObserverRef.get() != null;\n+  }\n+\n+  // Check if the config() connection is open and alive.\n+  static boolean isConfigConnected() {\n+    return currentConfigObserverRef.get() != null;\n+  }\n+\n+  static void resetExportClient() {\n+    exportRequestObserverRef.set(null);\n+  }\n+\n+  static void resetConfigClient() {\n+    currentConfigObserverRef.set(null);\n+  }\n+\n+  // Stream observer for ExportTraceServiceResponse.\n+  // This observer ignores the ExportTraceServiceResponse and won't block the thread.\n+  static final StreamObserver<ExportTraceServiceResponse> exportResponseObserver =\n+      new StreamObserver<ExportTraceServiceResponse>() {\n+        @Override\n+        public void onNext(ExportTraceServiceResponse value) {\n+          // Do nothing since ExportTraceServiceResponse is an empty message.\n+        }\n+\n+        @Override\n+        public void onError(Throwable t) {\n+          // If there's an error, reset the reference to exportRequestObserver to force\n+          // re-establish a connection.\n+          // TODO(songya): add retries on this connection before starting a new connection.\n+          logger.log(Level.WARNING, \"Export stream is disconnected because of: {0}\", t);\n+          /*@Nullable*/ StreamObserver<ExportTraceServiceRequest> exportRequestObserver =\n+              exportRequestObserverRef.get();\n+          if (exportRequestObserver != null) {\n+            exportRequestObserver.onError(t); // Tries to notify OC-Agent about the error.\n+            resetExportClient();\n+          }\n+        }\n+\n+        @Override\n+        public void onCompleted() {\n+          resetExportClient();\n+        }\n+      };\n+\n+  // Stream observer for UpdatedLibraryConfig messages. Once there's a new UpdatedLibraryConfig,\n+  // apply it to the global TraceConfig.\n+  static final StreamObserver<UpdatedLibraryConfig> updatedLibraryConfigObserver =\n+      new UpdatedLibraryConfigObserver(Tracing.getTraceConfig());\n+\n+  @VisibleForTesting\n+  static class UpdatedLibraryConfigObserver implements StreamObserver<UpdatedLibraryConfig> {\n+\n+    // Inject a mock TraceConfig in unit tests.\n+    private final TraceConfig traceConfig;\n+\n+    UpdatedLibraryConfigObserver(TraceConfig traceConfig) {\n+      this.traceConfig = traceConfig;\n+    }\n+\n+    @Override\n+    public void onNext(UpdatedLibraryConfig value) {\n+      TraceParams updatedTraceParams = TraceProtoUtils.getUpdatedTraceParams(value, traceConfig);\n+      traceConfig.updateActiveTraceParams(updatedTraceParams);\n+\n+      /*@Nullable*/ StreamObserver<CurrentLibraryConfig> currentConfigObserver =\n+          currentConfigObserverRef.get();\n+      // Add a check in case that connection dropped while config is being updated.\n+      if (currentConfigObserver != null) {\n+        // Bouncing back CurrentLibraryConfig to Agent.\n+        io.opencensus.proto.trace.v1.TraceConfig currentTraceConfigProto =\n+            TraceProtoUtils.getCurrentTraceConfig(traceConfig);\n+        CurrentLibraryConfig currentLibraryConfig =\n+            CurrentLibraryConfig.newBuilder().setConfig(currentTraceConfigProto).build();\n+        currentConfigObserver.onNext(currentLibraryConfig);\n+      }\n+    }\n+\n+    @Override\n+    public void onError(Throwable t) {\n+      // If there's an error, reset the reference to currentConfigObserver to force\n+      // re-establish a connection.\n+      // TODO(songya): add retries on this connection before starting a new connection.\n+      logger.log(Level.WARNING, \"Config stream is disconnected because of: {0}\", t);","path":"exporters/trace/ocagent/src/main/java/io/opencensus/exporter/trace/ocagent/OcAgentTraceServiceStreamObservers.java","position":null,"original_position":192,"commit_id":"00fee65f832693135a5f667126df7bddc286cbb2","original_commit_id":"ae42ff5deb6c510f08094b96362f373be70f5241","user":{"login":"songy23","id":10536136,"node_id":"MDQ6VXNlcjEwNTM2MTM2","avatar_url":"https://avatars3.githubusercontent.com/u/10536136?v=4","gravatar_id":"","url":"https://api.github.com/users/songy23","html_url":"https://github.com/songy23","followers_url":"https://api.github.com/users/songy23/followers","following_url":"https://api.github.com/users/songy23/following{/other_user}","gists_url":"https://api.github.com/users/songy23/gists{/gist_id}","starred_url":"https://api.github.com/users/songy23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/songy23/subscriptions","organizations_url":"https://api.github.com/users/songy23/orgs","repos_url":"https://api.github.com/users/songy23/repos","events_url":"https://api.github.com/users/songy23/events{/privacy}","received_events_url":"https://api.github.com/users/songy23/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2018-10-15T22:29:26Z","updated_at":"2018-10-15T22:57:55Z","html_url":"https://github.com/census-instrumentation/opencensus-java/pull/1492#discussion_r225337778","pull_request_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/pulls/1492","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-java/pulls/comments/225337778"},"html":{"href":"https://github.com/census-instrumentation/opencensus-java/pull/1492#discussion_r225337778"},"pull_request":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-java/pulls/1492"}},"in_reply_to_id":224966905},"pull_request":{"url":"https://api.github.com/repos/census-instrumentation/opencensus-java/pulls/1492","id":222594804,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyNTk0ODA0","html_url":"https://github.com/census-instrumentation/opencensus-java/pull/1492","diff_url":"https://github.com/census-instrumentation/opencensus-java/pull/1492.diff","patch_url":"https://github.com/census-instrumentation/opencensus-java/pull/1492.patch","issue_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/issues/1492","number":1492,"state":"open","locked":false,"title":"Exporter/OcAgent: Add a class that holds the stream observers.","user":{"login":"songy23","id":10536136,"node_id":"MDQ6VXNlcjEwNTM2MTM2","avatar_url":"https://avatars3.githubusercontent.com/u/10536136?v=4","gravatar_id":"","url":"https://api.github.com/users/songy23","html_url":"https://github.com/songy23","followers_url":"https://api.github.com/users/songy23/followers","following_url":"https://api.github.com/users/songy23/following{/other_user}","gists_url":"https://api.github.com/users/songy23/gists{/gist_id}","starred_url":"https://api.github.com/users/songy23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/songy23/subscriptions","organizations_url":"https://api.github.com/users/songy23/orgs","repos_url":"https://api.github.com/users/songy23/repos","events_url":"https://api.github.com/users/songy23/events{/privacy}","received_events_url":"https://api.github.com/users/songy23/received_events","type":"User","site_admin":false},"body":"Updates https://github.com/census-instrumentation/opencensus-java/issues/1408.\r\n\r\nAlso added a long long explanation on the states and how to check streams.","created_at":"2018-10-12T21:48:08Z","updated_at":"2018-10-15T22:57:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fcee677fb63b33ee36124ebfb758db651aa27ad5","assignee":{"login":"songy23","id":10536136,"node_id":"MDQ6VXNlcjEwNTM2MTM2","avatar_url":"https://avatars3.githubusercontent.com/u/10536136?v=4","gravatar_id":"","url":"https://api.github.com/users/songy23","html_url":"https://github.com/songy23","followers_url":"https://api.github.com/users/songy23/followers","following_url":"https://api.github.com/users/songy23/following{/other_user}","gists_url":"https://api.github.com/users/songy23/gists{/gist_id}","starred_url":"https://api.github.com/users/songy23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/songy23/subscriptions","organizations_url":"https://api.github.com/users/songy23/orgs","repos_url":"https://api.github.com/users/songy23/repos","events_url":"https://api.github.com/users/songy23/events{/privacy}","received_events_url":"https://api.github.com/users/songy23/received_events","type":"User","site_admin":false},"assignees":[{"login":"songy23","id":10536136,"node_id":"MDQ6VXNlcjEwNTM2MTM2","avatar_url":"https://avatars3.githubusercontent.com/u/10536136?v=4","gravatar_id":"","url":"https://api.github.com/users/songy23","html_url":"https://github.com/songy23","followers_url":"https://api.github.com/users/songy23/followers","following_url":"https://api.github.com/users/songy23/following{/other_user}","gists_url":"https://api.github.com/users/songy23/gists{/gist_id}","starred_url":"https://api.github.com/users/songy23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/songy23/subscriptions","organizations_url":"https://api.github.com/users/songy23/orgs","repos_url":"https://api.github.com/users/songy23/repos","events_url":"https://api.github.com/users/songy23/events{/privacy}","received_events_url":"https://api.github.com/users/songy23/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":616301408,"node_id":"MDU6TGFiZWw2MTYzMDE0MDg=","url":"https://api.github.com/repos/census-instrumentation/opencensus-java/labels/cla:%20yes","name":"cla: yes","color":"0e8a16","default":false},{"id":678369455,"node_id":"MDU6TGFiZWw2NzgzNjk0NTU=","url":"https://api.github.com/repos/census-instrumentation/opencensus-java/labels/exporters","name":"exporters","color":"c2e0c6","default":false},{"id":566180166,"node_id":"MDU6TGFiZWw1NjYxODAxNjY=","url":"https://api.github.com/repos/census-instrumentation/opencensus-java/labels/tracing","name":"tracing","color":"006b75","default":false}],"milestone":{"url":"https://api.github.com/repos/census-instrumentation/opencensus-java/milestones/20","html_url":"https://github.com/census-instrumentation/opencensus-java/milestone/20","labels_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/milestones/20/labels","id":3661911,"node_id":"MDk6TWlsZXN0b25lMzY2MTkxMQ==","number":20,"title":"Release 0.17.0","description":"","creator":{"login":"songy23","id":10536136,"node_id":"MDQ6VXNlcjEwNTM2MTM2","avatar_url":"https://avatars3.githubusercontent.com/u/10536136?v=4","gravatar_id":"","url":"https://api.github.com/users/songy23","html_url":"https://github.com/songy23","followers_url":"https://api.github.com/users/songy23/followers","following_url":"https://api.github.com/users/songy23/following{/other_user}","gists_url":"https://api.github.com/users/songy23/gists{/gist_id}","starred_url":"https://api.github.com/users/songy23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/songy23/subscriptions","organizations_url":"https://api.github.com/users/songy23/orgs","repos_url":"https://api.github.com/users/songy23/repos","events_url":"https://api.github.com/users/songy23/events{/privacy}","received_events_url":"https://api.github.com/users/songy23/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":9,"state":"open","created_at":"2018-09-17T16:47:41Z","updated_at":"2018-10-12T21:48:15Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/pulls/1492/commits","review_comments_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/pulls/1492/comments","review_comment_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/issues/1492/comments","statuses_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/statuses/00fee65f832693135a5f667126df7bddc286cbb2","head":{"label":"songy23:agent-stream-observers","ref":"agent-stream-observers","sha":"00fee65f832693135a5f667126df7bddc286cbb2","user":{"login":"songy23","id":10536136,"node_id":"MDQ6VXNlcjEwNTM2MTM2","avatar_url":"https://avatars3.githubusercontent.com/u/10536136?v=4","gravatar_id":"","url":"https://api.github.com/users/songy23","html_url":"https://github.com/songy23","followers_url":"https://api.github.com/users/songy23/followers","following_url":"https://api.github.com/users/songy23/following{/other_user}","gists_url":"https://api.github.com/users/songy23/gists{/gist_id}","starred_url":"https://api.github.com/users/songy23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/songy23/subscriptions","organizations_url":"https://api.github.com/users/songy23/orgs","repos_url":"https://api.github.com/users/songy23/repos","events_url":"https://api.github.com/users/songy23/events{/privacy}","received_events_url":"https://api.github.com/users/songy23/received_events","type":"User","site_admin":false},"repo":{"id":83500104,"node_id":"MDEwOlJlcG9zaXRvcnk4MzUwMDEwNA==","name":"instrumentation-java","full_name":"songy23/instrumentation-java","private":false,"owner":{"login":"songy23","id":10536136,"node_id":"MDQ6VXNlcjEwNTM2MTM2","avatar_url":"https://avatars3.githubusercontent.com/u/10536136?v=4","gravatar_id":"","url":"https://api.github.com/users/songy23","html_url":"https://github.com/songy23","followers_url":"https://api.github.com/users/songy23/followers","following_url":"https://api.github.com/users/songy23/following{/other_user}","gists_url":"https://api.github.com/users/songy23/gists{/gist_id}","starred_url":"https://api.github.com/users/songy23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/songy23/subscriptions","organizations_url":"https://api.github.com/users/songy23/orgs","repos_url":"https://api.github.com/users/songy23/repos","events_url":"https://api.github.com/users/songy23/events{/privacy}","received_events_url":"https://api.github.com/users/songy23/received_events","type":"User","site_admin":false},"html_url":"https://github.com/songy23/instrumentation-java","description":"A stats collection framework","fork":true,"url":"https://api.github.com/repos/songy23/instrumentation-java","forks_url":"https://api.github.com/repos/songy23/instrumentation-java/forks","keys_url":"https://api.github.com/repos/songy23/instrumentation-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/songy23/instrumentation-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/songy23/instrumentation-java/teams","hooks_url":"https://api.github.com/repos/songy23/instrumentation-java/hooks","issue_events_url":"https://api.github.com/repos/songy23/instrumentation-java/issues/events{/number}","events_url":"https://api.github.com/repos/songy23/instrumentation-java/events","assignees_url":"https://api.github.com/repos/songy23/instrumentation-java/assignees{/user}","branches_url":"https://api.github.com/repos/songy23/instrumentation-java/branches{/branch}","tags_url":"https://api.github.com/repos/songy23/instrumentation-java/tags","blobs_url":"https://api.github.com/repos/songy23/instrumentation-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/songy23/instrumentation-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/songy23/instrumentation-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/songy23/instrumentation-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/songy23/instrumentation-java/statuses/{sha}","languages_url":"https://api.github.com/repos/songy23/instrumentation-java/languages","stargazers_url":"https://api.github.com/repos/songy23/instrumentation-java/stargazers","contributors_url":"https://api.github.com/repos/songy23/instrumentation-java/contributors","subscribers_url":"https://api.github.com/repos/songy23/instrumentation-java/subscribers","subscription_url":"https://api.github.com/repos/songy23/instrumentation-java/subscription","commits_url":"https://api.github.com/repos/songy23/instrumentation-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/songy23/instrumentation-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/songy23/instrumentation-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/songy23/instrumentation-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/songy23/instrumentation-java/contents/{+path}","compare_url":"https://api.github.com/repos/songy23/instrumentation-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/songy23/instrumentation-java/merges","archive_url":"https://api.github.com/repos/songy23/instrumentation-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/songy23/instrumentation-java/downloads","issues_url":"https://api.github.com/repos/songy23/instrumentation-java/issues{/number}","pulls_url":"https://api.github.com/repos/songy23/instrumentation-java/pulls{/number}","milestones_url":"https://api.github.com/repos/songy23/instrumentation-java/milestones{/number}","notifications_url":"https://api.github.com/repos/songy23/instrumentation-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/songy23/instrumentation-java/labels{/name}","releases_url":"https://api.github.com/repos/songy23/instrumentation-java/releases{/id}","deployments_url":"https://api.github.com/repos/songy23/instrumentation-java/deployments","created_at":"2017-03-01T02:03:46Z","updated_at":"2018-08-29T16:33:12Z","pushed_at":"2018-10-15T22:57:54Z","git_url":"git://github.com/songy23/instrumentation-java.git","ssh_url":"git@github.com:songy23/instrumentation-java.git","clone_url":"https://github.com/songy23/instrumentation-java.git","svn_url":"https://github.com/songy23/instrumentation-java","homepage":"","size":5963,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":false,"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":"809ed22dfe50a21426e0db20c85a28daa8ad028b","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":64431348,"node_id":"MDEwOlJlcG9zaXRvcnk2NDQzMTM0OA==","name":"opencensus-java","full_name":"census-instrumentation/opencensus-java","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-java","description":"A stats collection and distributed tracing framework","fork":false,"url":"https://api.github.com/repos/census-instrumentation/opencensus-java","forks_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/forks","keys_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/teams","hooks_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/hooks","issue_events_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/issues/events{/number}","events_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/events","assignees_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/assignees{/user}","branches_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/branches{/branch}","tags_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/tags","blobs_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/statuses/{sha}","languages_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/languages","stargazers_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/stargazers","contributors_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/contributors","subscribers_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/subscribers","subscription_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/subscription","commits_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/contents/{+path}","compare_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/merges","archive_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/downloads","issues_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/issues{/number}","pulls_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/pulls{/number}","milestones_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/milestones{/number}","notifications_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/labels{/name}","releases_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/releases{/id}","deployments_url":"https://api.github.com/repos/census-instrumentation/opencensus-java/deployments","created_at":"2016-07-28T22:10:03Z","updated_at":"2018-10-15T22:08:55Z","pushed_at":"2018-10-15T22:08:52Z","git_url":"git://github.com/census-instrumentation/opencensus-java.git","ssh_url":"git@github.com:census-instrumentation/opencensus-java.git","clone_url":"https://github.com/census-instrumentation/opencensus-java.git","svn_url":"https://github.com/census-instrumentation/opencensus-java","homepage":"https://opencensus.io","size":5945,"stargazers_count":437,"watchers_count":437,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":112,"mirror_url":null,"archived":false,"open_issues_count":78,"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":112,"open_issues":78,"watchers":437,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-java/pulls/1492"},"html":{"href":"https://github.com/census-instrumentation/opencensus-java/pull/1492"},"issue":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-java/issues/1492"},"comments":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-java/issues/1492/comments"},"review_comments":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-java/pulls/1492/comments"},"review_comment":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-java/pulls/1492/commits"},"statuses":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-java/statuses/00fee65f832693135a5f667126df7bddc286cbb2"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"songy23"}}