Documentation ¶
Overview ¶
Copyright The OpenTelemetry Authors SPDX-License-Identifier: Apache-2.0
Copyright The OpenTelemetry Authors SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Topic = "orders" ProtocolVersion = sarama.V3_0_0_0 GroupID = "accountingservice" )
Functions ¶
func StartConsumerGroup ¶
Types ¶
type OTelInterceptor ¶
type OTelInterceptor struct {
// contains filtered or unexported fields
}
func NewOTelInterceptor ¶
func NewOTelInterceptor(groupID string) *OTelInterceptor
NewOTelInterceptor processes span for intercepted messages and add some headers with the span data.
func (*OTelInterceptor) OnConsume ¶
func (oi *OTelInterceptor) OnConsume(msg *sarama.ConsumerMessage)
Click to show internal directories.
Click to hide internal directories.