CopyPastor

Detecting plagiarism made easy.

Score: 1.8167286282493955; Reported for: String similarity, Exact paragraph match Open both answers

Possible Plagiarism

Reposted on 2023-09-19
by Sanjay Bharwani

Original Post

Original - Posted on 2023-09-19
by Sanjay Bharwani



            
Present in both answers; Present only in the new answer; Present only in the old answer;

In our case, we are using `ReactiveKafkaProducerTemplate` to publish records to Kafka. And extra logs were being written by `TracingProducerInterceptor` which was registered in the bean of `ReactiveKafkaProducerTemplate` @Bean public ReactiveKafkaProducerTemplate<YourModelEventKey, YourModelEvent> reactiveKafkaProducerTemplate( final KafkaProperties properties) { var props = properties.buildProducerProperties(); props.put(ProducerConfig.INTERCEPTOR_CLASSES_CONFIG, Collections.singletonList(TracingProducerInterceptor.class)); return new ReactiveKafkaProducerTemplate<>(SenderOptions.create(props)); }
Solution: `logging.level.brave.Tracer=warn` for application.properties and for application.yaml use below
logging.level brave.Tracer: warn
Note: we are interested only in warnings or errors. If you want, you can fully disable by setting `OFF`
In our case, extra logs were being written by `TracingProducerInterceptor` which was registered in the bean of `ReactiveKafkaProducerTemplate`

@Bean public ReactiveKafkaProducerTemplate<YourModelEventKey, YourModelEvent> reactiveKafkaProducerTemplate( final KafkaProperties properties) { var props = properties.buildProducerProperties(); props.put(ProducerConfig.INTERCEPTOR_CLASSES_CONFIG, Collections.singletonList(TracingProducerInterceptor.class)); return new ReactiveKafkaProducerTemplate<>(SenderOptions.create(props)); }
Solution: `logging.level.brave.Tracer=warn` for application.properties and for application.yaml use below
logging.level brave.Tracer: warn
Note: we are interested only in warnings or errors. If you want, you can fully disable by setting `OFF`

        
Present in both answers; Present only in the new answer; Present only in the old answer;