You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have a service named MyService , the current implementation generates a constructor (MyServiceServer) with 3 parameters:
MyService
Optional<MeterRegistry>
Optional<Tracer>
The problem is that if you exclude opentracing & micrometer from the classpath, new MyServiceServer(myService, Optional.empty(), Optional.empty()) fails at runtime because it refers to the missing classes. There is a workaround for it:
Hi!
If I have a service named
MyService
, the current implementation generates a constructor (MyServiceServer
) with 3 parameters:MyService
Optional<MeterRegistry>
Optional<Tracer>
The problem is that if you exclude opentracing & micrometer from the classpath,
new MyServiceServer(myService, Optional.empty(), Optional.empty())
fails at runtime because it refers to the missing classes. There is a workaround for it:But it would be nice if the generator will create an additional constructor, without optionals and
@Inject
at all:and delegate to
this(service, Optional.empty(), Optional.empty());
Not everyone is using opentracing and/or micrometer and it will help to not have them on classpath
The text was updated successfully, but these errors were encountered: