tracing

package
v0.0.0-...-52d9df3 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MessageType           = "messaging.type"
	MessageName           = "messaging.name"
	Payload               = "messaging.payload"
	Headers               = "messaging.headers"
	MessagingErrorMessage = "messaging.error_message"
)

Variables

View Source
var MessagingTracer trace.Tracer

Functions

func TraceMessagingErrFromContext

func TraceMessagingErrFromContext(ctx context.Context, err error) error

func TraceMessagingErrFromSpan

func TraceMessagingErrFromSpan(span trace.Span, err error) error

TraceMessagingErrFromSpan setting span with status error with error message

Types

type MessageCarrier

type MessageCarrier struct {
	// contains filtered or unexported fields
}

func NewMessageCarrier

func NewMessageCarrier(meta *metadata.Metadata) MessageCarrier

func (MessageCarrier) Get

func (a MessageCarrier) Get(key string) string

func (MessageCarrier) Keys

func (a MessageCarrier) Keys() []string

func (MessageCarrier) Set

func (a MessageCarrier) Set(key string, value string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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