pubsub

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextFromMessage

func ContextFromMessage(msg *message.Message) context.Context

ContextFromMessage returns a new Context which may include OpenTelemetry tracing data.

func InjectContext

func InjectContext(ctx context.Context, msg *message.Message)

InjectContext adds OpenTelemetry tracing data to the message header (if available).

func NewMessage

func NewMessage(ctx context.Context, payload []byte) *message.Message

NewMessage creates a new message which may include OpenTelemetry tracing data in the header.

Types

This section is empty.

Directories

Path Synopsis
mocks
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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