Skip to content

Commit 2b99439

Browse files
committed
minor
1 parent 8cf3082 commit 2b99439

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

internal/lightstep_pb/grpc/server.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func (s *ServerGRPC) Report(ctx context.Context, rq *pb.ReportRequest) (*pb.Repo
9595
spanCount int
9696
)
9797
ctx = client.NewContext(ctx, client.Info{})
98-
receivedAt := time.Now()
98+
receiveTimestamp := time.Now()
9999
ctx = s.obsreport.StartTracesOp(ctx)
100100
spanCount = len(rq.Spans)
101101
s.logger.Debug("report", zap.Any("incoming", rq))
@@ -104,7 +104,7 @@ func (s *ServerGRPC) Report(ctx context.Context, rq *pb.ReportRequest) (*pb.Repo
104104
s.telemetry.IncrementFailed(transport, 1)
105105
return &pb.ReportResponse{
106106
Errors: []string{err.Error()},
107-
ReceiveTimestamp: timestamppb.New(receivedAt),
107+
ReceiveTimestamp: timestamppb.New(receiveTimestamp),
108108
TransmitTimestamp: timestamppb.Now(),
109109
}, err
110110
}
@@ -123,14 +123,14 @@ func (s *ServerGRPC) Report(ctx context.Context, rq *pb.ReportRequest) (*pb.Repo
123123
if err != nil {
124124
return &pb.ReportResponse{
125125
Errors: []string{err.Error()},
126-
ReceiveTimestamp: timestamppb.New(receivedAt),
126+
ReceiveTimestamp: timestamppb.New(receiveTimestamp),
127127
TransmitTimestamp: timestamppb.Now(),
128128
}, err
129129
}
130130

131131
return &pb.ReportResponse{
132132
Errors: nil,
133-
ReceiveTimestamp: timestamppb.New(receivedAt),
133+
ReceiveTimestamp: timestamppb.New(receiveTimestamp),
134134
TransmitTimestamp: timestamppb.Now(),
135135
}, nil
136136
}

0 commit comments

Comments
 (0)