Skip to content
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

Added gRPC telemetry instrumentation example. #163

Merged
merged 7 commits into from
Dec 4, 2023
Merged

Added gRPC telemetry instrumentation example. #163

merged 7 commits into from
Dec 4, 2023

Conversation

marvin-hansen
Copy link
Contributor

Resolves issue: #162

Added end-to-end example to instrument gRPC service with graceful shutdown and health service for K8s deployment.

Updated example Readme.

Copy link
Member

@mellowagain mellowagain left a comment

Choose a reason for hiding this comment

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

hey, thanks for your contribution! a few nits here and there but else it looks good! could you also run cargo fmt so the formatting is all good? ill then run the CI on it and merge it if it passes

examples/grpc-http/src/server.rs Outdated Show resolved Hide resolved
examples/grpc-http/src/server.rs Outdated Show resolved Hide resolved
examples/README.md Outdated Show resolved Hide resolved
examples/grpc-http/README.md Outdated Show resolved Hide resolved
examples/grpc-http/src/main.rs Outdated Show resolved Hide resolved
examples/grpc-http/Cargo.toml Outdated Show resolved Hide resolved
@marvin-hansen
Copy link
Contributor Author

marvin-hansen commented Dec 1, 2023 via email

… SIGINT, SIGTERM, SIGQUIT and that works on Windows, Linux, and Mac.

Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
@marvin-hansen
Copy link
Contributor Author

@mellowagain

Ok, I added the fixes you mentioned, improved the signal handler to work on all major operating systems,
and added SLO's to the API to showcase how easy it is to monitor API performance.

Please review again and, if no objection, feel free to merge.

Copy link
Member

@mellowagain mellowagain left a comment

Choose a reason for hiding this comment

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

last small nit but else looks good

examples/grpc-http/src/server.rs Outdated Show resolved Hide resolved
@marvin-hansen
Copy link
Contributor Author

marvin-hansen commented Dec 4, 2023 via email

@mellowagain mellowagain enabled auto-merge (squash) December 4, 2023 12:11
@mellowagain mellowagain merged commit fb06b33 into autometrics-dev:main Dec 4, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants