trace

package
v0.0.0-...-1225d9a Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	AppName = "trace"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Provider TRACE_PROVIDER `toml:"provider" json:"provider" yaml:"provider" env:"TRACE_PROVIDER"`
	Endpoint string         `toml:"endpoint" json:"endpoint" yaml:"endpoint" env:"TRACE_PROVIDER_ENDPOINT"`
	Enabled  bool           `toml:"enabled" json:"enabled" yaml:"enabled" env:"TRACE_ENABLED"`

	ioc.ObjectImpl
}

func C

func C() *Config

func (*Config) Init

func (t *Config) Init() error

func (*Config) Name

func (t *Config) Name() string

func (*Config) Priority

func (i *Config) Priority() int

优先级最高,要优于日志,日志模块需要依赖trace进行包装

type TRACE_PROVIDER

type TRACE_PROVIDER string
const (
	TRACE_PROVIDER_JAEGER TRACE_PROVIDER = "jaeger"
)

Jump to

Keyboard shortcuts

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