Help us shape the future of Go! Take the 2026 Go Developer Survey

trace

package
v1.25.10 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: Apache-2.0 Imports: 14 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GrpcEndpoint = "localhost:4317"
)

Functions

func ConnectTracer

func ConnectTracer(stop chan struct{}, serviceName string, grpcEndpoint string)

func ConnectTracerWithReady added in v1.15.5

func ConnectTracerWithReady(stop chan struct{}, ready chan struct{}, serviceName string, grpcEndpoint string)

func ExtractAMQPHeaders

func ExtractAMQPHeaders(ctx context.Context, headers map[string]any) context.Context

ExtractAMQPHeaders extracts the tracing from the header and puts it into the context

func InjectAMQPHeaders

func InjectAMQPHeaders(ctx context.Context) map[string]any

InjectAMQPHeaders injects the tracing from the context into the header map

func StartTracing added in v1.4.7

func StartTracing(stop chan struct{}, cancelChan chan os.Signal, serviceName string, grpcEndpoint string)

Types

type AmqpHeadersCarrier

type AmqpHeadersCarrier map[string]any

func (AmqpHeadersCarrier) Get

func (a AmqpHeadersCarrier) Get(key string) string

func (AmqpHeadersCarrier) Keys

func (a AmqpHeadersCarrier) Keys() []string

func (AmqpHeadersCarrier) Set

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

Jump to

Keyboard shortcuts

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