Documentation
¶
Index ¶
- func GetSpan(c context.Context) (opentracing.Span, bool)
- func RequestTracer(opts ...OptionFunc) gin.HandlerFunc
- type OptionFunc
- func SetAfterHook(fn func(opentracing.Span, *gin.Context)) OptionFunc
- func SetBeforeHook(fn func(opentracing.Span, *gin.Context)) OptionFunc
- func SetErrorFn(fn func(*gin.Context) bool) OptionFunc
- func SetOperationNameFn(fn func(*gin.Context) string) OptionFunc
- func SetResourceNameFn(fn func(*gin.Context) string) OptionFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestTracer ¶
func RequestTracer(opts ...OptionFunc) gin.HandlerFunc
Types ¶
type OptionFunc ¶
type OptionFunc func(*options)
func SetAfterHook ¶
func SetAfterHook(fn func(opentracing.Span, *gin.Context)) OptionFunc
func SetBeforeHook ¶
func SetBeforeHook(fn func(opentracing.Span, *gin.Context)) OptionFunc
func SetErrorFn ¶
func SetErrorFn(fn func(*gin.Context) bool) OptionFunc
func SetOperationNameFn ¶
func SetOperationNameFn(fn func(*gin.Context) string) OptionFunc
func SetResourceNameFn ¶
func SetResourceNameFn(fn func(*gin.Context) string) OptionFunc
Click to show internal directories.
Click to hide internal directories.