Skip to content

Commit

Permalink
chore(http.go): comment out unused traceparent metadata to improve co…
Browse files Browse the repository at this point in the history
…de readability and maintainability
  • Loading branch information
shumkovdenis committed May 13, 2023
1 parent 92bb1a9 commit 73d1d60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/gateway/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (s *HTTPServer) GRPC(c *fiber.Ctx) error {
client := pb.NewGreeterClient(conn)

ctx := metadata.AppendToOutgoingContext(c.UserContext(), "dapr-app-id", "integration-grpc")
ctx = metadata.AppendToOutgoingContext(ctx, "traceparent", helpers.ExtractTraceHeader(c.UserContext(), "traceparent"))
// ctx = metadata.AppendToOutgoingContext(ctx, "traceparent", helpers.ExtractTraceHeader(c.UserContext(), "traceparent"))

out, err := client.SayHello(ctx, &pb.HelloRequest{Name: "gateway"})
if err != nil {
Expand Down

0 comments on commit 73d1d60

Please sign in to comment.