Documentation ¶
Index ¶
- Constants
- Variables
- func NewLogger(l zapcore.Level, jsonMode bool, options ...zap.Option)
- func NewTextLoggerWithSink(level log.LevelEnabler, sink io.Writer, options ...zap.Option) log.TypeOfLogger
- func SetupContext()
- func SetupLogger(jsonMode bool) error
- func SetupVisorSubject()
- func VisorSubject() observer.Subject
- type Deps
- type ErrVisor
- type Printer
- type THClient
- type THClosableClient
- type Visor
- type VisorSubjectClosed
Constants ¶
View Source
const ( // LoggerLevel log level AppLoggerLevel config.ValueT[string] = "logger/level" // ServicesDefDialDuration default dial duraton to conect a service [optional] ServicesDefDialDuration config.ValueT[time.Duration] = "extapi/svc/def-daial-duration" // TrDialDuration trace-hub service dial duration [optional] TrDialDuration config.ValueT[time.Duration] = "extapi/svc/tracehub/dial-duration" // TrAddress service address [mandatory] TrAddress config.ValueT[string] = "extapi/svc/tracehub/address" // UseCompression enable compression for grpc messages UseCompression config.ValueT[bool] = "extapi/svc/tracehub/use-compression" // UserAgent UserAgent config.ValueT[string] = "useragent" )
Variables ¶
Functions ¶
func NewTextLoggerWithSink ¶
func NewTextLoggerWithSink(level log.LevelEnabler, sink io.Writer, options ...zap.Option) log.TypeOfLogger
Types ¶
type Printer ¶
type Printer interface {
Print([]model.FetchTraceModel)
}
type THClosableClient ¶
type THClosableClient = thAPI.ClosableClient
THClosableClient is an alias to 'thAPI.ClosableClient'
func NewTHClient ¶
func NewTHClient(ctx context.Context) (*THClosableClient, error)
NewTHClient makes 'trace-hub' API client
Source Files ¶
Click to show internal directories.
Click to hide internal directories.