question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consider integrating with TracerResolver

See original GitHub issue

I’m trying to use TracingConsumerInterceptor and TracingProducerInterceptor to add tracing to some Kafka connectors with a jaeger implementation under the hood. I am trying to do this via kafka connect connect configuration parameters but I’m unable to register the jaeger tracer to the global tracer in this case.

I was wondering if it would be feasible to integrate the opentracing-kafka-client with opentracing-contrib/java-traceresolver. That way the Jaeger tracer would be resolved if the jaeger tracerresolver jar was in the classpath.

I think this would be a somewhat simple change. It would just be replacing GlobalTracer.get() with TracerResolver.resolveTracer(). This function falls back to using the GlobalTracer.get() if a tracer has already been registered there, so I think it shouldn’t break anything any existing implementations.

I’d be happy to submit a PR for this if that helps, or let me know if I’m missing or misunderstanding something and this change will not work.

Let me know what you think. Thanks for your help!

-Marc

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
riferreicommented, Jun 14, 2019

@mzbyszynski, you may wanna take a look on this:

https://github.com/riferrei/kafka-tracing-support

I used the TracerResolver utility to resolve the tracer, in case I need to use the interceptors with Kafka Connect, REST Proxy, and KSQL.

0reactions
sacoefranciscommented, Mar 11, 2021

@mzbyszynski , am too facing same issue in connect-distributed and connect-standalone add below config producer.interceptor.classes=io.opentracing.contrib.kafka.TracingProducerInterceptor consumer.interceptor.classes=io.opentracing.contrib.kafka.TracingConsumerInterceptor and added below jars on /usr/share/java/kafka path opentracing-api-0.33.0.jar opentracing-kafka-client-0.1.15.jar opentracing-kafka-streams-0.1.15.jar opentracing-noop-0.31.0.jar opentracing-specialagent-1.7.4.jar opentracing-tracerresolver-0.1.0.jar opentracing-tracerresolver-0.1.8.jar jaeger-client-1.5.0.jar jaeger-tracerresolver-0.31.0.jar

and passed JAEGER_SERVICE_NAME: jaeger as environment variable. used filesource connector used kafka connect to put record into topic, header is not automatically getting created service is not coming into JaegerUI

Can you please help me in this ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Integrating Opentracing.io / jaegertracing.io with Spring MVC
And I have added the configuration that I consider important and below you can find my Application.class which contains all the Jaeger ...
Read more >
opentracing/public - Gitter
I'm starting to think that it could be related to our implementation - will followup with one of our java gurus. Pavol Loffay....
Read more >
TAFJJEE_EAR.ear getting error while starting JBoss
Hi Team am getting below message while deploying TAFJJEE_EAR.ear in R21 area, Kindly give solution. {"WFLYCTL0080: Failed services" => {.
Read more >
Chapter 8. Configuring a Thorntail application
yml file on your classpath. Example 8.5. Specifying configuration files on the command line. Consider the following application execution:.
Read more >
OpenTracing for EJB modules - Google Groups
... EJB tracing is expected to work with current OpenTracing integration, ... The most challenging I believe was the Infinispan upgrade that ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found