yurishkuro / opentracing-tutorial

A collection of tutorials for the OpenTracing API
Apache License 2.0
1.57k stars 404 forks source link

Latest version of jaeger-client and opentracing for Java #62

Closed prateeksahu closed 4 years ago

prateeksahu commented 4 years ago

Hi, I noticed that the versions of opentracing and jaeger-client being used is quite old. A lot of methods have changed and/or depricated. I have successfully ported most of the methods to latest version but extract method, used in lib/Tracing.java is giving me issue -

ERROR] /home/prateek/workspace/research/opentracing-tutorial/java/src/main/java/lib/Tracing.java:[52,47] method extract in interface io.opentracing.Tracer cannot be applied to given types;
  required: io.opentracing.propagation.Format<C>,C
  found: io.opentracing.propagation.Format<io.opentracing.propagation.TextMap>,io.opentracing.propagation.TextMapExtractAdapter
  reason: inference variable C has incompatible bounds
    equality constraints: io.opentracing.propagation.TextMap
    lower bounds: io.opentracing.propagation.TextMapExtractAdapter

Could you update the tutorial to latest versions and/or help me with the issue?