expand

package
v0.0.0-...-21ca16f Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: LGPL-2.1 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrometheusBoot

func PrometheusBoot(addr string)

Types

type Jaeger

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

func NewJaegerTracer

func NewJaegerTracer(serviceName string, addr string, types string, param float64, ls bool, bf int64) (*Jaeger, error)

func (*Jaeger) GetJaeger

func (j *Jaeger) GetJaeger() opentracing.Tracer

type Logger

type Logger struct {
	Logger *zap.Logger
}

func NewZapLogger

func NewZapLogger(zp *ZapLoggerConfig) *Logger

实例化 zap logger 日志服务

type ZapLoggerConfig

type ZapLoggerConfig struct {
	Filename   string
	MaxSize    int
	MaxBackups int
	MaxAge     int
	LocalTime  bool
	Compress   bool
}

Jump to

Keyboard shortcuts

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