Documentation ¶
Index ¶
- Constants
- Variables
- func GetCometService() (addrs map[string]string, err error)
- func GetCometServiceMetas() (metas map[string]map[string]string, err error)
- func GetCurrentDir() string
- func InstanceDiscovery() error
- func NewZipkinReporter() reporter.Reporter
- func NewZipkinSpanFromCtx(ctx context.Context, f zipkinTracerFunc) (span zipkingo.Span, newCtx context.Context, err error)
- func NewZipkinTracer(opts ...zipkingo.TracerOption) (*zipkingo.Tracer, error)
- func SetPid(curPath string) int
- type FieldsFunc
- type LogFields
- type ZipkinTag
Constants ¶
View Source
const ( ZIPKIN_OPTION_TAG = 1 + iota ZIPKIN_OPTION_ANNOTATE )
Variables ¶
View Source
var ( ServiceRegistrar *consulsd.Registrar ServiceInstancer *consulsd.Instancer )
View Source
var ( ErrRouter = errors.New("router rpc is not available") ErrDecodeKey = errors.New("decode key error") ErrNetworkAddr = errors.New("network addrs error, must network@address") ErrConnectArgs = errors.New("connect rpc args error") ErrDisconnectArgs = errors.New("disconnect rpc args error") )
View Source
var ( Conf *conf.Config Logger logger )
Functions ¶
func GetCometService ¶
func GetCometServiceMetas ¶
func GetCurrentDir ¶
func GetCurrentDir() string
func InstanceDiscovery ¶
func InstanceDiscovery() error
func NewZipkinReporter ¶
func NewZipkinSpanFromCtx ¶
func NewZipkinTracer ¶
func NewZipkinTracer(opts ...zipkingo.TracerOption) (*zipkingo.Tracer, error)
Types ¶
type FieldsFunc ¶
type FieldsFunc func() *LogFields
type LogFields ¶
type LogFields struct {
// contains filtered or unexported fields
}
func NewLogFields ¶
func NewLogFields() *LogFields
Click to show internal directories.
Click to hide internal directories.