kafka

package
v1.0.22 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKafkaConsumerSpan

func CreateKafkaConsumerSpan(ctx context.Context, message *kafka.Message) (context.Context, *trace.Span)

CreateKafkaConsumerSpan creates consumer span

func CreateKafkaProducerSpan

func CreateKafkaProducerSpan(ctx context.Context, message *kafka.Message) (context.Context, *trace.Span)

CreateKafkaProducerSpan creates producer span

Types

type KafkaCarrier

type KafkaCarrier struct {
	Headers []kafka.Header
}

func (*KafkaCarrier) Get

func (c *KafkaCarrier) Get(key string) string

func (*KafkaCarrier) Keys

func (c *KafkaCarrier) Keys() []string

func (*KafkaCarrier) Set

func (c *KafkaCarrier) Set(key string, value string)

Jump to

Keyboard shortcuts

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