Skip to content

Commit

Permalink
feat(grpc.go): add traceParentHeader to client requests to enable tra…
Browse files Browse the repository at this point in the history
…cing in downstream services
  • Loading branch information
shumkovdenis committed May 12, 2023
1 parent 9e5330a commit f1d7e59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions services/gateway/helpers/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ func NewTraceInterceptor() connect.UnaryInterceptorFunc {
req connect.AnyRequest,
) (connect.AnyResponse, error) {
if req.Spec().IsClient {
SetTraceHeader(ctx, req.Header(), traceParentHeader)
SetTraceHeader(ctx, req.Header(), grpcTraceBinHeader)
} else {
ctx = WithAllTraceHeader(ctx, req.Header())
Expand Down

0 comments on commit f1d7e59

Please sign in to comment.