Documentation
¶
Index ¶
- type Context
- func (c *Context) Debugf(format string, args ...interface{})
- func (c *Context) Error(err error)
- func (c *Context) Errorf(err error, format string, args ...interface{})
- func (c *Context) GetSpan() trace.Span
- func (c *Context) HasSpanStarted() bool
- func (c *Context) IsDebug() bool
- func (c *Context) IsTrace() bool
- func (c *Context) StartSpan(name string) (*Context, trace.Span)
- func (c *Context) Tracef(format string, args ...interface{})
- func (c *Context) WithTracer(tracer trace.Tracer)
- func (c *Context) WithValue(key, val interface{}) *Context
- type ContextOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
func NewContext ¶
func NewContext(opts ...ContextOptions) *Context
func (*Context) HasSpanStarted ¶
func (*Context) WithTracer ¶
type ContextOptions ¶
type ContextOptions func(*Context)
func WithDebugFn ¶
func WithDebugFn(fn func(*Context) bool) ContextOptions
func WithLogger ¶
func WithLogger(log logger.Logger) ContextOptions
func WithTraceFn ¶
func WithTraceFn(fn func(*Context) bool) ContextOptions
func WithTracer ¶
func WithTracer(tracer trace.Tracer) ContextOptions
Click to show internal directories.
Click to hide internal directories.