lightstep-tracer-java icon indicating copy to clipboard operation
lightstep-tracer-java copied to clipboard

Help Needed! ProviderNotFoundException: No functional collector client provider found. Try adding a dependency on the tracer-okhttp or tracer-grpc artifact

Open sherry-ummen-zalando opened this issue 1 year ago • 0 comments

I am having dependency issues with the lighstep trace library. With runtime exception

Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'openTracingSupport.OpenTracingFilterConfiguration': Unsatisfied dependency expressed through field 'tracer'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lightstepTracer' defined in class path resource [com/collection/tracing/OpenTracingSupport$OpenTracingConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.opentracing.Tracer]: Factory method 'lightstepTracer' threw exception; nested exception is com.lightstep.tracer.shared.CollectorClientProvider$ProviderNotFoundException: No functional collector client provider found. Try adding a dependency on the tracer-okhttp or tracer-grpc artifact

I have the following dependencies

implementation 'com.lightstep.tracer:lightstep-tracer-jre:0.30.5'
compileOnly 'com.lightstep.tracer:tracer-okhttp:0.30.3'

How can I resolve this?

Earlier I was using bundle jar, but since it had a non-compatible kotlin version. I had to move to the jre jar. But I am unable to get this working. Any help here?

sherry-ummen-zalando avatar Mar 27 '23 14:03 sherry-ummen-zalando