Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GetSwContext = func(rCtx *routing.Context) context.Context { if swContext, ok := rCtx.Get(swCtxKey).(context.Context); ok && swContext != nil { return swContext } return context.Background() } GetOperationName = func(rCtx *routing.Context) string { return fmt.Sprintf("%s:%s", rCtx.Method(), rCtx.Path()) } SetSwContext = func(rCtx *routing.Context, spanCtx context.Context) { rCtx.Set(swCtxKey, spanCtx) } )
Functions ¶
Types ¶
type Option ¶ added in v0.17.0
type Option func(opts *options)
func WithLog4xxBody ¶ added in v0.17.0
func WithLog4xxBody() Option
func WithLogError ¶ added in v0.17.0
func WithLogError() Option
Click to show internal directories.
Click to hide internal directories.