tracer

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitContextWithTrace

func InitContextWithTrace(ctx context.Context, t32, s16 string) context.Context

func InitTracer

func InitTracer(conf TraceConf) func(context.Context) error

func TraceIdFromContext

func TraceIdFromContext(ctx context.Context) string

Types

type TraceConf

type TraceConf struct {
	ServiceName       string                `mapstructure:"serviceName"`
	CollectorURL      string                `mapstructure:"collectorURL"`
	Insecure          bool                  `mapstructure:"insecure"`
	TransportProtocol TransportProtocolType `mapstructure:"transportProtocol"`
}

type TransportProtocolType added in v0.0.8

type TransportProtocolType string
const (
	TransportProtocolHTTP TransportProtocolType = "HTTP"
	TransportProtocolGRPC TransportProtocolType = "GRPC"
)

Jump to

Keyboard shortcuts

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