tracing

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitTracer

func InitTracer(opts ...Option)

Types

type Option

type Option func(*traceConfig)

func WithEndpoint

func WithEndpoint(endpoint string) Option

WithEndpoint ... 自定义 jaeger 入口

func WithRatioBased

func WithRatioBased(fraction float64) Option

WithRatioBased ... 设置采样比率

func WithServiceName

func WithServiceName(name string) Option

WithServiceName ...自定义上报服务名

type TracingConf

type TracingConf interface {
	GetEndpoint() string
	GetCustomName() string
}

Jump to

Keyboard shortcuts

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