From cabb7712308d9feef05c9b7e4ef41e38332f4b5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Paj=C4=85k?= Date: Mon, 12 Jul 2021 12:38:57 +0200 Subject: [PATCH] Update producer.go --- .../github.com/Shopify/sarama/otelsarama/producer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instrumentation/github.com/Shopify/sarama/otelsarama/producer.go b/instrumentation/github.com/Shopify/sarama/otelsarama/producer.go index 993a7df1f49..baec003062c 100644 --- a/instrumentation/github.com/Shopify/sarama/otelsarama/producer.go +++ b/instrumentation/github.com/Shopify/sarama/otelsarama/producer.go @@ -168,7 +168,7 @@ func WrapAsyncProducer(saramaConfig *sarama.Config, p sarama.AsyncProducer, opts span: span, } - // Remember specific metadata with span id + // Remember metadata using span ID as a cache key msg.Metadata = span.SpanContext().SpanID() if saramaConfig.Producer.Return.Successes { mtx.Lock()