jaeger

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

README

go-client-jaeger

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Tracer opentracing.Tracer

Tracer

Functions

func NewJaegerClient

func NewJaegerClient(config *Config)

NewJaegerClient 新建 Jaeger 客户端

Types

type Config

type Config struct {
	// 服务名
	Name string `yaml:"name" json:"name"`
	// 是否启用
	Enable bool `yaml:"enable" json:"enable"`
	// 采样率
	Sampler float64 `yaml:"sampler" json:"sampler"`
	// 端点
	Endpoint string `yaml:"endpoint" json:"endpoint"`
}

定义 jaeger 设置项

func DefaultConfig

func DefaultConfig() *Config

默认设置

func (*Config) Check

func (c *Config) Check()

设置项检查

func (*Config) String

func (c *Config) String() string

重写 String 方法

Jump to

Keyboard shortcuts

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