Skip to content

Adding examples and modifying grpc to add interceptor for streaming #1684

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

Open
wants to merge 18 commits into
base: development
Choose a base branch
from

Conversation

coolwednesday
Copy link
Contributor

@coolwednesday coolwednesday commented Apr 30, 2025

  • This PR adds examples for the current gofr-cli approach to additionally also let user generate gRPC streaming handlers with all the observability features, i.e. logs, metrics, traces.
  • This PR can only be merged after merging CLI PR : Adding template to generate grpc streaming code gofr-cli#48
  • gRPC Streaming on the server side can be of three types. Below are the screenshots of a running streaming gRPC Server (added in the example) with all three types of methods defined on it :
    Logs :
Screenshot 2025-04-30 at 8 58 08 AM **Metrics :** Screenshot 2025-04-30 at 8 59 01 AM **Traces:** Screenshot 2025-04-30 at 8 58 39 AM

- Server Side Streaming
Screenshot 2025-04-30 at 8 56 28 AM

- Client Side Streaming
Screenshot 2025-04-30 at 8 57 12 AM

- Bi-directional Streaming
Screenshot 2025-04-30 at 8 57 40 AM

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.

2 participants