trace

package
v0.0.0-...-70cb23a Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName = "trace"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TRACE_PROVIDER

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

type Trace

type Trace struct {
	ioc.ObjectImpl

	Enable   bool           `json:"enable" yaml:"enable" toml:"enable" env:"TRACE_ENABLE"`
	Provider TRACE_PROVIDER `toml:"provider" json:"provider" yaml:"provider" env:"TRACE_PROVIDER"`
	Endpoint string         `toml:"endpoint" json:"endpoint" yaml:"endpoint" env:"TRACE_ENDPOINT"`
}

func Get

func Get() *Trace

func (*Trace) Init

func (t *Trace) Init() error

func (*Trace) Name

func (i *Trace) Name() string

func (*Trace) Priority

func (i *Trace) Priority() int

优先初始化, 以供后面的组件使用

Jump to

Keyboard shortcuts

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