Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

Conversation

@igorbernstein2
Copy link
Contributor

This is a rough sketch of how I plan on integrating opencensus.

There are 2 main changes being demonstrated in this PR:

  1. Introduction of a Tracer that gets passed around in the ApiCallContext. The Tracer contains methods that correspond to various spans and annotations that will be generated. There are 2 implementations of Tracer: a noop one that will be used for external direct instantiations of the RetryingExecutors in google-cloud-java and the real OpencensusTracer, which will generate real spans and annotations. Each instance of a Tracer corresponds to a single logical operation (an operation can contain multiple rpcs for retries).
  2. Changes to RetryingExecutor and RetryAlgorithm to create them per operation rather then per client. This approach was suggested by @garrettjonesgoogle and is different then the approach I discussed with @vam-google. It avoids the need to break the public surface.

@garrettjonesgoogle & @vam-google take a look at this when you have a moment and let me know if I should continue down this road.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 1, 2018
@Override
public RetryingFuture<ResponseT> futureCall(RequestT request, ApiCallContext inputContext) {
ApiCallContext context = callContextPrototype.nullToSelf(inputContext);
public RetryingFuture<ResponseT> futureCall(RequestT request, ApiCallContext context) {

This comment was marked as spam.

This comment was marked as spam.

public RetryingFuture<ResponseT> futureCall(RequestT request, ApiCallContext inputContext) {
ApiCallContext context = callContextPrototype.nullToSelf(inputContext);
public RetryingFuture<ResponseT> futureCall(RequestT request, ApiCallContext context) {
RetryAlgorithm<ResponseT> retryAlgorithm =

This comment was marked as spam.

This comment was marked as spam.

@igorbernstein2
Copy link
Contributor Author

Closing in favor of #590

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants