Documentation ¶
Overview ¶
Package otel is the implementation of instrumentation.Tracer for OpenTelemetry.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init() (instrumentation.Tracer, error)
Init initializes the global tracer provider and meter provider for OpenTelemetry.
Types ¶
type MessageCarrier ¶
MessageCarrier implements the otel TextMapCarrier interface for kafka.Message.
func NewMessageCarrier ¶
func NewMessageCarrier(msg *kafka.Message) *MessageCarrier
NewMessageCarrier creates a new MessageCarrier from the given kafka.Message.
func (*MessageCarrier) Get ¶
func (kc *MessageCarrier) Get(key string) string
Get returns the value associated with the passed key.
func (*MessageCarrier) Keys ¶
func (kc *MessageCarrier) Keys() []string
Keys lists the keys stored in this carrier.
func (*MessageCarrier) Set ¶
func (kc *MessageCarrier) Set(key string, value string)
Set stores the key-value pair.
Click to show internal directories.
Click to hide internal directories.