Registry /
observability / contrib-instrumentation-github-com-shopify-sarama-otelsarama
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
otelsarama
✓ go.opentelemetry.io/contrib/instrumentation/github.com/Shopify/sarama/otelsarama
Wraps a Sarama sync producer with OpenTelemetry instrumentation.
package main
import (
"github.com/Shopify/sarama"
"go.opentelemetry.io/contrib/instrumentation/github.com/Shopify/sarama/otelsarama"
)
func main() {
config := sarama.NewConfig()
producer, _ := sarama.NewSyncProducer([]string{"localhost:9092"}, config)
wrappedProducer := otelsarama.WrapSyncProducer(config, producer)
wrappedProducer.SendMessage(&sarama.ProducerMessage{Topic: "test", Value: sarama.StringEncoder("hello")})
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
Breaking-change detection hasn't run for this library yet.
Audit
Dependencies
No dependency data recorded yet.