Skip to content

Commit

Permalink
Suppression decorateur
Browse files Browse the repository at this point in the history
  • Loading branch information
ldechoux committed Nov 21, 2023
1 parent 737cb35 commit a5de566
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions internal/service/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,12 @@ func (container *Container) getKafkaBaseClient() kafka.Client {
originalKafkaProducer := container.GetKafkaProducer()
var kafkaProducer kafka.KafkaProducer = originalKafkaProducer

if container.Cfg.OtelCollectorEndpoint != "" {
// In case OpenTelemetry endpoint is enabled, decorate the Kafka producer.
kafkaProducer = container.decorateKafkaClientWithOpenTelemetry(originalKafkaProducer)
}
/*
if container.Cfg.OtelCollectorEndpoint != "" {
// In case OpenTelemetry endpoint is enabled, decorate the Kafka producer.
kafkaProducer = container.decorateKafkaClientWithOpenTelemetry(originalKafkaProducer)
}
*/

return kafka.NewClient(kafkaProducer)
}
Expand Down

0 comments on commit a5de566

Please sign in to comment.