func (s *MockSpan) FinishWithOptions(opts opentracing.FinishOptions) {
	s.Lock()
	s.FinishTime = opts.FinishTime
	s.Unlock()

	// Handle any late-bound LogRecords.
	for _, lr := range opts.LogRecords {
		s.logFieldsWithTimestamp(lr.Timestamp, lr.Fields...)
	}
	// Handle (deprecated) BulkLogData.
	for _, ld := range opts.BulkLogData {
		if ld.Payload != nil {
			s.logFieldsWithTimestamp(
				ld.Timestamp,
				log.String("event", ld.Event),
				log.Object("payload", ld.Payload))
		} else {
			s.logFieldsWithTimestamp(
				ld.Timestamp,
				log.String("event", ld.Event))
		}
	}

	s.tracer.recordSpan(s)
}
func (s *MockSpan) FinishWithOptions(opts opentracing.FinishOptions) {
	s.Lock()
	s.FinishTime = opts.FinishTime
	s.Unlock()

	
	for _, lr := range opts.LogRecords {
		s.logFieldsWithTimestamp(lr.Timestamp, lr.Fields...)
	}
	
	for _, ld := range opts.BulkLogData {
		if ld.Payload != nil {
			s.logFieldsWithTimestamp(
				ld.Timestamp,
				log.String("event", ld.Event),
				log.Object("payload", ld.Payload))
		} else {
			s.logFieldsWithTimestamp(
				ld.Timestamp,
				log.String("event", ld.Event))
		}
	}

	s.tracer.recordSpan(s)
}
func ( s * MockSpan ) FinishWithOptions ( opts opentracing . FinishOptions ) { s . Lock ( ) s . FinishTime = opts . FinishTime s . Unlock ( ) // Handle any late-bound LogRecords. for _ , lr := range opts . LogRecords { s . logFieldsWithTimestamp ( lr . Timestamp , lr . Fields ... ) } // Handle (deprecated) BulkLogData. for _ , ld := range opts . BulkLogData { if ld . Payload != nil { s . logFieldsWithTimestamp ( ld . Timestamp , log . String ( " " , ld . Event ) , log . Object ( " " , ld . Payload ) ) } else { s . logFieldsWithTimestamp ( ld . Timestamp , log . String ( " " , ld . Event ) ) } } s . tracer . recordSpan ( s ) }
// FinishWithOptions belongs to the Span interface
FinishWithOptions belongs to the Span interface