Documentation
¶
Overview ¶
Package rabbitmq provides helpers for configuring RabbitMQ clients with OpenTelemetry tracing (for both producers and consumers).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractAMQPHeaders ¶
ExtractAMQPHeaders extracts the tracing from the header and puts it into the context
Returns a new context with the tracing information from the headers
func InjectAMQPHeaders ¶
InjectAMQPHeaders injects the tracing from the context into the header map
Types ¶
type AmqpHeadersCarrier ¶
type AmqpHeadersCarrier map[string]interface{}
AmqpHeadersCarrier is a map of headers that implements the TextMapCarrier interface
func (AmqpHeadersCarrier) Get ¶
func (a AmqpHeadersCarrier) Get(key string) string
Get returns the value for the key
func (AmqpHeadersCarrier) Keys ¶
func (a AmqpHeadersCarrier) Keys() []string
Keys returns the keys of the carrier
func (AmqpHeadersCarrier) Set ¶
func (a AmqpHeadersCarrier) Set(key string, value string)
Set sets the value for the key
Click to show internal directories.
Click to hide internal directories.