Skip to content

Commit

Permalink
refactor(integration): uncomment setTraceHeaderFromContext function c…
Browse files Browse the repository at this point in the history
…all and comment out SetNewGRPCTraceHeaderFromContext function call in NewTraceInterceptor function to fix a bug where the wrong function was being called
  • Loading branch information
shumkovdenis committed May 11, 2023
1 parent 2e934e1 commit cc821c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/integration/helpers/interceptors.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ func NewTraceInterceptor() connect.UnaryInterceptorFunc {
req connect.AnyRequest,
) (connect.AnyResponse, error) {
if req.Spec().IsClient {
// setTraceHeaderFromContext(grpcTraceBinContextKey, req.Header(), ctx)
SetNewGRPCTraceHeaderFromContext(req.Header(), ctx)
setTraceHeaderFromContext(grpcTraceBinContextKey, req.Header(), ctx)
// SetNewGRPCTraceHeaderFromContext(req.Header(), ctx)
} else {
ctx = WithTrace(ctx,
req.Header().Get(traceParentHeader),
Expand Down

0 comments on commit cc821c8

Please sign in to comment.