Registry / observability / contrib-instrumentation-github-com-shopify-sarama-otelsarama

contrib-instrumentation-github-com-shopify-sarama-otelsarama

JSON →
librarygogounverified

OpenTelemetry instrumentation for the Shopify/sarama Kafka client library.

go get go.opentelemetry.io/contrib/instrumentation/github.com/Shopify/sarama/otelsarama
INSTALL
IMPORT
SIG · CONTRIB-INSTRUMENT
C
contrib-instrumentation-github-com-shopify-sarama-otelsarama
observabilitygo
harness data pending
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.

Agent activity
32 hits · last 30 days
node
30
OpenAI (training)
1
Resources
contrib-instrumentation-github-com-shopify-sarama-otelsarama — go get contrib-instrumentation-github-com-shopify-sarama-otelsarama · libregistry