Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcEventCostUs ¶
CalcEventCostUs calculates the duration between start and end and returns in microsecond.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller controls tracers.
func (*Controller) Append ¶
func (ctl *Controller) Append(col tracer.Tracer)
Append appends a new tracer to the controller.
func (*Controller) DoFinish ¶
func (ctl *Controller) DoFinish(ctx context.Context, c *app.RequestContext, err error)
DoFinish calls the tracers in reversed order.
func (*Controller) DoStart ¶
func (ctl *Controller) DoStart(ctx context.Context, c *app.RequestContext) context.Context
DoStart starts the tracers.
func (*Controller) HasTracer ¶
func (ctl *Controller) HasTracer() bool
Click to show internal directories.
Click to hide internal directories.