kafka

package
v0.0.0-...-05982b2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

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

func StartConsumerGroup(ctx context.Context, brokers []string, log *logrus.Logger) (sarama.ConsumerGroup, error)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL