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

examples/features/csm_observability: use helloworld client and server instead of echo client and server #7945

Merged
merged 5 commits into from
Dec 24, 2024

Conversation

purnesh42H
Copy link
Contributor

@purnesh42H purnesh42H commented Dec 18, 2024

RELEASE NOTES:

  • examples/features/csm_observability: update example client and server to use the helloworld service instead of echo service.

@purnesh42H purnesh42H force-pushed the update-opentelemtry-example-to-hew branch from fe9087f to 690c2c1 Compare December 18, 2024 11:10
@purnesh42H purnesh42H added the Type: Documentation Documentation or examples label Dec 18, 2024
@purnesh42H purnesh42H added this to the 1.70 Release milestone Dec 18, 2024
examples/features/opentelemetry/server/main.go Outdated Show resolved Hide resolved
addr string
}

func (s *echoServer) UnaryEcho(_ context.Context, req *pb.EchoRequest) (*pb.EchoResponse, error) {
return &pb.EchoResponse{Message: fmt.Sprintf("%s (from %s)", req.Message, s.addr)}, nil
// SayHello implements helloworld.GreeterServer
Copy link
Contributor

Choose a reason for hiding this comment

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

SayHello is a method, it's inaccurate to say that it implements an interface. I believe this comment should be on server instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, this is what we have in every example. I just took it from helloworld and observability example

examples/features/opentelemetry/client/main.go Outdated Show resolved Hide resolved
examples/features/opentelemetry/client/main.go Outdated Show resolved Hide resolved
Copy link
Contributor

@arjan-bal arjan-bal left a comment

Choose a reason for hiding this comment

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

Did you manually run the client and server to verify they work?

@arjan-bal arjan-bal assigned purnesh42H and unassigned arjan-bal Dec 18, 2024
@purnesh42H
Copy link
Contributor Author

Did you manually run the client and server to verify they work?

yes, i checked the output on server and client and prometheous

Copy link

codecov bot commented Dec 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.03%. Comparing base (e8d5feb) to head (127f91c).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7945      +/-   ##
==========================================
- Coverage   82.15%   82.03%   -0.12%     
==========================================
  Files         381      381              
  Lines       38539    38539              
==========================================
- Hits        31660    31615      -45     
- Misses       5574     5600      +26     
- Partials     1305     1324      +19     

see 27 files with indirect coverage changes

Copy link
Contributor

@arjan-bal arjan-bal left a comment

Choose a reason for hiding this comment

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

Looks good, should complete testing in k8s before merging.

@purnesh42H purnesh42H force-pushed the update-opentelemtry-example-to-hew branch from 8d08898 to 6db15dc Compare December 19, 2024 19:19
@purnesh42H purnesh42H changed the title examples/features/opentelemetry: use helloworld client and server instead of echo client and server examples/features/csm_observability: use helloworld client and server instead of echo client and server Dec 20, 2024
@purnesh42H purnesh42H force-pushed the update-opentelemtry-example-to-hew branch from b599957 to 127f91c Compare December 24, 2024 11:35
@purnesh42H purnesh42H merged commit 724f450 into grpc:master Dec 24, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Documentation Documentation or examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants