ppatierno/kafka-opentelemetry

Kafka agent cannot link the producer and consumer trace when use auto-instrumentation java agent.

sweetxiaodai opened this issue · 1 comments

Please see the issue in attached image.
Screenshot 2022-09-25 at 14 58 51
I will also attach my consumer code here. Just copy from spring apache kafka exmaples.

@SpringBootApplication
public class ConsumerApplication {

	public static void main(String[] args) {
		SpringApplication.run(ConsumerApplication.class, args);
	}
	@Bean
	public NewTopic topic() {
		return TopicBuilder.name("topic1")
				.partitions(10)
				.replicas(1)
				.build();
	}

	@KafkaListener(id = "myId", topics = "topic1")
	public void listen(String in) {
		System.out.println(in);
	}
}

I would close this issue and continue the discussion on open-telemetry/opentelemetry.io#1781