Documentation ¶
Index ¶
- func ContextFromDelivery(msg amqp091.Delivery) context.Context
- type Channel
- func (ch *Channel) Consume(queue, consumer string, autoAck, exclusive, noLocal, noWait bool, ...) (<-chan amqp091.Delivery, error)
- func (ch *Channel) Get(queue string, autoAck bool) (msg amqp091.Delivery, ok bool, err error)
- func (ch *Channel) PublishWithContext(ctx context.Context, exchange, key string, mandatory, immediate bool, ...) error
- func (ch *Channel) PublishWithDeferredConfirmWithContext(ctx context.Context, exchange, key string, mandatory, immediate bool, ...) (*amqp091.DeferredConfirmation, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextFromDelivery ¶
ContextFromDelivery returns the context that contains the traces associated with the amqp091.Delivery. If the delivery does not contain traces, it returns a background context. Consumer can use this function to continue the distributed tracing.
Types ¶
type Channel ¶
type Channel struct { *amqp091.Channel // contains filtered or unexported fields }
Channel wraps an amqp091.Channel with OpenTelemetry tracing instrumentation.
func NewChannel ¶
NewChannel returns an amqp091.Channel with OpenTelemetry tracing instrumentation.
func (*Channel) PublishWithContext ¶
type Option ¶
type Option func(*config)
Option sets optional config properties.
func WithPropagators ¶
func WithPropagators(propagators propagation.TextMapPropagator) Option
WithPropagators sets the propagators.
func WithTracerProvider ¶
func WithTracerProvider(provider trace.TracerProvider) Option
WithTracerProvider sets the tracer provider.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.