Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Commit

Permalink
Changed return object from JaegerTracerFactory#getTracer
Browse files Browse the repository at this point in the history
Signed-off-by: Juraci Paixão Kröhling <[email protected]>
  • Loading branch information
jpkrohling committed Aug 31, 2018
1 parent dccf3a0 commit 6458d45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,11 @@

import io.jaegertracing.Configuration;
import io.jaegertracing.internal.JaegerTracer;
import io.opentracing.Tracer;
import io.opentracing.contrib.tracerresolver.TracerFactory;

public class JaegerTracerFactory implements TracerFactory {
@Override
public Tracer getTracer() {
return getJaegerTracer();
}

public JaegerTracer getJaegerTracer() {
public JaegerTracer getTracer() {
return Configuration.fromEnv().getTracer();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class JaegerTracerResolver extends TracerResolver {

@Override
protected JaegerTracer resolve() {
return new JaegerTracerFactory().getJaegerTracer();
return new JaegerTracerFactory().getTracer();
}

}

0 comments on commit 6458d45

Please sign in to comment.