github.com/pinpoint-apm/pinpoint-go-agent/plugin/sarama (go): Package ppsarama instruments the Shopify/sarama package (https://github.com/Shopify/sarama).  This package instruments Kafka consumers and producers.  To instrument a Kafka consumer, use ConsumeMessageContext. In order to display the kafka broker on the pinpoint screen, a context with broker addresses must be created and delivered using NewContext.  ConsumePartition example:  ConsumerGroupHandler example:  ConsumeMessageContext passes a context added pinpoint.Tracer to HandlerContextFunc. In HandlerContextFunc, this tracer can be obtained by using the pinpoint.FromContext function.  To instrument a Kafka producer, use NewSyncProducer or NewAsyncProducer.  It is necessary to pass the context containing the pinpoint.Tracer to sarama.SyncProducer (or sarama.AsyncProducer) using WithContext function.
Keywords: agent|apm|distributed-tracing|go|monitoring|performance|pinpoint