connect traceID for retrieve (#27804)

/kind improvement

Signed-off-by: MrPresent-Han <chun.han@zilliz.com>
pull/27810/head
MrPresent-Han 2023-10-19 19:22:10 +08:00 committed by GitHub
parent 020ad9a6bc
commit af61a80f73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -366,7 +366,7 @@ func (s *LocalSegment) Retrieve(ctx context.Context, plan *RetrievePlan) (*segco
return nil, merr.WrapErrSegmentNotLoaded(s.segmentID, "segment released")
}
log := log.With(
log := log.Ctx(ctx).With(
zap.Int64("collectionID", s.Collection()),
zap.Int64("partitionID", s.Partition()),
zap.Int64("segmentID", s.ID()),