code: func (s *server) GetConfig(c context.Context, req *empty.Empty) (*logdog.GetConfigResponse, error) {
  	gcfg, err := endpoints.GetServices(c).Config(c)
  	if err != nil {
  		log.WithError(err).Errorf(c, "Failed to load configuration.")
  		return nil, grpcutil.Internal
  	}
  
  	// Load our config service host from settings.
  	settings, err := gaeconfig.FetchCachedSettings(c)
  	if err != nil {
  		log.WithError(err).Errorf(c, "Failed to load settings.")
  		return nil, grpcutil.Internal
  	}
  
  	return &logdog.GetConfigResponse{
  		ConfigServiceHost: settings.ConfigServiceHost,
  		ConfigSet:         string(gcfg.ConfigSet),
  		ServiceConfigPath: gcfg.ServiceConfigPath,
  
  		// TODO(dnj): Deprecate this field once everything has switched over to
  		// using host.
  		ConfigServiceUrl: gcfg.ConfigServiceURL.String(),
  	}, nil
  }
docs: // GetConfig allows a service to retrieve the current service configuration
  // parameters.