tracing

package
v0.0.0-...-9fb010f Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TraceReceiving

func TraceReceiving(ctx context.Context, tracer trace.Tracer, carrier Traced) (context.Context, trace.Span)

TraceReceiving takes attributes from the carried message and sets the trace with the relevant attributes.

func TraceSending

func TraceSending(ctx context.Context, tracer trace.Tracer, carrier Traced) (context.Context, trace.Span)

TraceSending

Types

type Traced

type Traced interface {
	propagation.TextMapCarrier
	Topic() string
	Offset() int64
	Partition() int
}

Traced is an interface that allows setting and receiving contextual information.

Jump to

Keyboard shortcuts

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