Documentation ¶
Index ¶
- type MessageCarrier
- type PubSub
- func (p *PubSub) Publish(queue string, messages ...*message.Message) error
- func (p *PubSub) PublishWithOpts(queue string, msg *message.Message, opts ...spi.Option) error
- func (p *PubSub) Subscribe(ctx context.Context, queue string) (<-chan *message.Message, error)
- func (p *PubSub) SubscribeWithOpts(ctx context.Context, queue string, opts ...spi.Option) (<-chan *message.Message, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageCarrier ¶
type MessageCarrier struct {
// contains filtered or unexported fields
}
MessageCarrier injects and extracts traces from a Message.
func NewMessageCarrier ¶
func NewMessageCarrier(msg *message.Message) *MessageCarrier
NewMessageCarrier creates a new MessageCarrier.
func (*MessageCarrier) Get ¶
func (c *MessageCarrier) Get(key string) string
Get retrieves a single value for a given key.
func (*MessageCarrier) Keys ¶
func (c *MessageCarrier) Keys() []string
Keys returns a slice of all key identifiers in the carrier.
type PubSub ¶
type PubSub struct {
// contains filtered or unexported fields
}
PubSub wraps the publisher/subscriber to inject/collect OpenTelemetry tracing data.
func (*PubSub) Publish ¶
Publish injects OpenTelemetry tracing data before publishing the given messages.
func (*PubSub) PublishWithOpts ¶
PublishWithOpts injects OpenTelemetry tracing data before publishing the given message.
Click to show internal directories.
Click to hide internal directories.