Skip to content

Configure circuit breaker by using method signature  #484

@Ferioney

Description

@Ferioney

I have two methods with the same name but with different signatures:

@FeignClient(
        name = "client",
        path = "/client"
)
public interface Client {
    @PostMapping
    Response create(@RequestBody Options options);

    @PostMapping
    Response create();
}

In spring-cloud-openfeign 2.2.6 I could configure Hystrix's circuit breaker for these two methods:

hystrix.command.Client#create(Options).execution.isolation.thread.timeoutInMilliseconds
hystrix.command.Client#create().execution.isolation.thread.timeoutInMilliseconds

but as I see from version 2.2.7. circuit breaker name follows the pattern clientName_methodName, so I don't see a possibility to configure the circuit breakers separately.
Is it possible now to configure circuit breakers by using method signature?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions