code: func NewAdapter(ctx context.Context, file string, name string, d discovery.Discoverer, logger log.Logger) *Adapter {
  	return &Adapter{
  		ctx:     ctx,
  		disc:    d,
  		groups:  make(map[string]*customSD),
  		manager: discovery.NewManager(ctx, logger),
  		output:  file,
  		name:    name,
  		logger:  logger,
  	}
  }
docs: // NewAdapter creates a new instance of Adapter.