Skip to content

Commit fd63b7d

Browse files
committed
cp dines
1 parent 92b521a commit fd63b7d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cmd/overlaybd-snapshotter/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ func requestIDInterceptor(ctx context.Context, req interface{}, info *grpc.Unary
5151
requestID := tracing.GetRequestID(ctx)
5252
if requestID == "" {
5353
requestID = mylog.GenerateRequestID()
54+
ctx = tracing.SetRequestID(ctx, requestID)
5455
}
5556

5657
ctx = mylog.WithRequestID(ctx, requestID)
@@ -143,7 +144,7 @@ func main() {
143144
tracing.WithServerTracing(),
144145
grpc.UnaryInterceptor(requestIDInterceptor),
145146
)
146-
snapshotsapi.RegisterSnapshotsServer(srv, snapshotservice.FromSnapshotter(sn))
147+
snapshotsapi.RegisterSnapshotsServer(srv, tracing.WithTracing(snapshotservice.FromSnapshotter(sn)))
147148

148149
address := strings.TrimSpace(pconfig.Address)
149150

0 commit comments

Comments
 (0)