Pass request ID to Coredor's exec call
This commit is contained in:
@@ -3,6 +3,7 @@ package corredor
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/go-chi/chi/middleware"
|
||||
"github.com/pkg/errors"
|
||||
"go.uber.org/zap"
|
||||
"google.golang.org/grpc"
|
||||
@@ -402,6 +403,12 @@ func (svc service) exec(ctx context.Context, script string, runAs string, event
|
||||
|
||||
// //// //// //// //// //// //// //// //// //// //// //// //// //// //// //// //// //// //// //// //// //// ////
|
||||
|
||||
ctx = metadata.NewOutgoingContext(ctx, metadata.MD{
|
||||
"x-request-id": []string{middleware.GetReqID(ctx)},
|
||||
})
|
||||
|
||||
// //// //// //// //// //// //// //// //// //// //// //// //// //// //// //// //// //// //// //// //// //// ////
|
||||
|
||||
var header, trailer metadata.MD
|
||||
rsp, err = svc.ssClient.Exec(
|
||||
ctx,
|
||||
|
||||
Reference in New Issue
Block a user