otel

package
v5.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() (instrumentation.Tracer, error)

func ShutDown

func ShutDown()

Types

type KafkaCarrier

type KafkaCarrier struct {
	*cKafka.Message
	// contains filtered or unexported fields
}

func NewKafkaCarrier

func NewKafkaCarrier(msg *kafka.Message) *KafkaCarrier

func (*KafkaCarrier) Get

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

Get returns the value associated with the passed key.

func (*KafkaCarrier) Keys

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

Keys lists the keys stored in this carrier.

func (*KafkaCarrier) Set

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

Set stores the key-value pair.

Jump to

Keyboard shortcuts

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