-
Notifications
You must be signed in to change notification settings - Fork 3.9k
examples: Health example #9991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
examples: Health example #9991
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This commit adds sleep in `close()` for metrics and/or traces to be flushed before closing observability. Currently sleep is set to 2 * [Metrics export interval (30 secs)].
Everywhere else is using androidx.test.ext.junit.runners.AndroidJUnit4, and google internally only has that variant.
This will be used to generate more useful debugging information in cases such as headers size exceeding the limit.
Add an example using waitForReady Part of fixit. Fixes b/259286751
This PR adds a default custom tag for metrics, irrespective of custom tags being present in the observability configuration. OpenCensus by default adds a custom tag [opencenus_task](https://docs.google.com/document/d/1sWC-XD277cM0PXxAhzJKY2X0Uj2W7bVoSv-jvnA0N8Q/edit?resourcekey=0-l-wqh1fctxZXHCUrvZv2BQ#heading=h.xy85j580eik0) for metrics which gets overriden if custom tags are set. The unique custom tag is required to ensure the uniqueness of the Timeseries. The format of the default custom tag is: `java-{PID}@{HOSTNAME}`, if `{PID}` is not available a random number will be used.
* add examples for gcp-observability
It uses the echo service for both unary and bidi RPCs, to show the various cancellation circumstances and APIs.
* Added s390x platform support * Adapt to existing platform naming scheme * Updated s390_64 library whitelist * Use g++ compiler version 8.x for s390x * Introduced dedicated Docker container for building s390x artifacts Minor fix --------- Signed-off-by: Dirk Haubenreisser <[email protected]> Co-authored-by: Eric Anderson <[email protected]>
Add round robin to the example. fixed
Rebase pulled in a lot of commit history, but that doesn't seem to show up in the modified files so should go away when I squash and merge. |
temawi
reviewed
Mar 30, 2023
examples/src/main/java/io/grpc/examples/healthservice/HealthServiceClient.java
Outdated
Show resolved
Hide resolved
examples/src/main/java/io/grpc/examples/healthservice/HealthServiceClient.java
Outdated
Show resolved
Hide resolved
examples/src/main/java/io/grpc/examples/healthservice/HealthServiceClient.java
Outdated
Show resolved
Hide resolved
examples/src/main/java/io/grpc/examples/healthservice/HealthServiceServer.java
Outdated
Show resolved
Hide resolved
examples/src/main/java/io/grpc/examples/healthservice/HealthServiceClient.java
Show resolved
Hide resolved
temawi
approved these changes
Mar 30, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Create an example of using the health service and accessing it from a client
Fixes b/259310953 for example fixit