GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: add batch throttled time to tracer by mutianf · Pull Request #1463 · googleapis/gax-java

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

Conversation

@mutianf

@mutianf mutianf commented Aug 18, 2021

Copy link
Copy Markdown
Contributor

Add ApiTracer#batchRequestThrottled to track total throttled time of a batch. In BatcherImpl, add throttled time to ApiCallContext so it can be accessed from callable chains and recorded in ApiTracer.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@mutianf
feat: add batch throttled time to tracer
298c7bf
@mutianf
mutianf requested review from a team August 18, 2021 16:02
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Aug 18, 2021
mutianf added 2 commits August 18, 2021 18:39
@mutianf
deflake test
fa3ef6f
@mutianf
Merge branch 'master' into batcher_stats
35975a5
igorbernstein2
igorbernstein2 reviewed Oct 21, 2021
View reviewed changes
Comment thread gax/src/main/java/com/google/api/gax/batching/BatcherImpl.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread gax/src/main/java/com/google/api/gax/batching/BatcherImpl.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread gax/src/main/java/com/google/api/gax/batching/BatcherImpl.java Outdated
private SettableApiFuture<Void> closeFuture;
private final BatcherStats batcherStats = new BatcherStats();
private final FlowController flowController;
private ApiCallContext callContext;

@igorbernstein2 igorbernstein2 Oct 21, 2021

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be final

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread gax/src/main/java/com/google/api/gax/batching/BatcherImpl.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread gax/src/main/java/com/google/api/gax/batching/BatcherImpl.java Outdated
if (callContext != null) {
callContext =
callContext.withOption(THROTTLED_TIME_KEY, accumulatedBatch.totalThrottledTimeMs);
unaryCallable.withDefaultCallContext(callContext);

@igorbernstein2 igorbernstein2 Oct 21, 2021

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a typo

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread gax/src/main/java/com/google/api/gax/tracing/ApiTracer.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

mutianf added 2 commits October 25, 2021 10:33
@mutianf
Deprecate constructors and update call context
357ac17
@mutianf
update docs
9eb045e
igorbernstein2
igorbernstein2 approved these changes Oct 27, 2021
View reviewed changes
@igorbernstein2
Merge branch 'main' into batcher_stats
200c759
@igorbernstein2 igorbernstein2 added the automerge Merge the pull request once unit tests and other checks pass. label Oct 27, 2021
@gcf-merge-on-green
Merge branch 'main' into batcher_stats
06ce4f2
@gcf-merge-on-green
gcf-merge-on-green Bot merged commit 14c25cd into googleapis:main Oct 27, 2021
@gcf-merge-on-green gcf-merge-on-green Bot removed the automerge Merge the pull request once unit tests and other checks pass. label Oct 27, 2021
@mutianf mutianf mentioned this pull request Oct 29, 2021
feat: add batch throttled ms metric googleapis/java-bigtable#888
Merged
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@igorbernstein2 igorbernstein2 igorbernstein2 approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

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

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@mutianf @igorbernstein2
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.