trace

package
v1.0.28 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Default = StdConfig().Build()
)

Functions

func BizID

func BizID() string

BizID return application trace biz id

func ID

func ID() string

ID return application trace uid

func ReqID

func ReqID() string

ReqID return application trace request id

func SpanID

func SpanID() string

SpanID return application trace span id

Types

type Config

type Config struct {
	TraceUID    string `config:"traceUid"`
	TraceReqID  string `config:"traceReqId"`
	TraceSpanID string `config:"traceSpanId"`
	TraceBizID  string `config:"traceBizId"`
}

Config of system

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig of trace

func StdConfig

func StdConfig() *Config

StdConfig get from config

func (*Config) Build

func (c *Config) Build() *Trace

Build Trace

func (*Config) Path

func (c *Config) Path() string

type Trace

type Trace struct {
	// contains filtered or unexported fields
}

Trace is application's information

Jump to

Keyboard shortcuts

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