code: func New() logdog.ServicesServer {
  	return &logdog.DecoratedServices{
  		Service: &server{},
  		Prelude: func(c context.Context, methodName string, req proto.Message) (context.Context, error) {
  			// Only service users may access this endpoint.
  			if err := coordinator.IsServiceUser(c); err != nil {
  				log.WithError(err).Errorf(c, "Failed to authenticate user as a service.")
  
  				if !coordinator.IsMembershipError(err) {
  					// Not a membership error. Something went wrong on the server's end.
  					return nil, grpcutil.Internal
  				}
  				return nil, grpcutil.PermissionDenied
  			}
  
  			return maybeEnterProjectNamespace(c, req)
  		},
  	}
  }
docs: // New creates a new authenticating ServicesServer instance.