code: func (c Configuration) NewOptions(iOpts instrument.Options) Options {
  	opts := NewOptions().
  		SetRetryOptions(c.Retry.NewOptions(iOpts.MetricsScope())).
  		SetInstrumentOptions(iOpts)
  	if c.KeepAliveEnabled != nil {
  		opts = opts.SetTCPConnectionKeepAlive(*c.KeepAliveEnabled)
  	}
  	if c.KeepAlivePeriod != nil {
  		opts = opts.SetTCPConnectionKeepAlivePeriod(*c.KeepAlivePeriod)
  	}
  	return opts
  }
docs: // NewOptions creates server options.