Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ClientFilter = filter.ClientChain{traces.ClientFilter(), prometheus.ClientFilter()}.Filter
View Source
var DefaultRecoveryHandler = func(ctx context.Context, panicErr interface{}) error { return fmt.Errorf("panic:%v", panicErr) }
DefaultRecoveryHandler default recovery handler can be set by user
View Source
var DefaultSampler sdktrace.Sampler
DefaultSampler sampler could be set by user
View Source
var ParseConfig = func(configDec plugin.Decoder) (*config.Config, error) { cfg := &config.Config{} *cfg = config.DefaultConfig() if err := configDec.Decode(cfg); err != nil { return nil, err } return cfg, nil }
ParseConfig can be set by the user to override the config
View Source
var ServerFilter = filter.ServerChain{traces.ServerFilter(), prometheus.ServerFilter(), logs.LogRecoveryFilter()}.Filter
Functions ¶
func RegisterTextMapSupplier ¶
func RegisterTextMapSupplier(carrier func(md codec.MetaData, msg codec.Msg) propagation.TextMapCarrier)
RegisterTextMapSupplier .
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package codes trpc
|
Package codes trpc |
Package consts
|
Package consts |
example
|
|
greeter
Module
|
|
log
Package log keep the function signatures of trpc-go log
|
Package log keep the function signatures of trpc-go log |
prometheus
Package prometheus metrics
|
Package prometheus metrics |
Package traces
|
Package traces |
Click to show internal directories.
Click to hide internal directories.