We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0637030 commit 8d08898Copy full SHA for 8d08898
examples/features/opentelemetry/server/main.go
@@ -40,14 +40,14 @@ var (
40
prometheusEndpoint = flag.String("prometheus_endpoint", ":9464", "the Prometheus exporter endpoint")
41
)
42
43
+// server is used to implement helloworld.GreeterServer.
44
type server struct {
45
pb.UnimplementedGreeterServer
46
addr string
47
}
48
49
// SayHello implements helloworld.GreeterServer
50
func (s *server) SayHello(_ context.Context, in *pb.HelloRequest) (*pb.HelloReply, error) {
- log.Printf("Received: %v", in.GetName())
51
return &pb.HelloReply{Message: "Hello " + in.GetName()}, nil
52
53
0 commit comments