public static Endpoint setInstanceInfo(Endpoint endpoint, InstanceInfo instanceInfo) {
        requireNonNull(endpoint, "endpoint");
        requireNonNull(instanceInfo, "instanceInfo");
        return endpoint.withAttr(INSTANCE_INFO, instanceInfo);
    }
Sets the Eureka {@link InstanceInfo} parameter to the {@link Endpoint} as an attribute.

@param endpoint The {@link Endpoint} to which the {@link InstanceInfo} will be set as an attribute.
@return The same {@link Endpoint} passed as a parameter.
eureka/src/main/java/com/linecorp/armeria/common/eureka/InstanceInfo.java