Versions in this module Expand all Collapse all v0 v0.1.3 Sep 11, 2020 Changes in this version + const StartTimeKey + const TraceKey + type Field struct + Key string + Value interface{} + type Trace struct + func Get(ctx context.Context) *Trace + func New(op string, lg *zap.Logger, fields ...Field) *Trace + func TODO() *Trace + func (t *Trace) AddField(fields ...Field) + func (t *Trace) GetStartTime() time.Time + func (t *Trace) InsertStep(at int, time time.Time, msg string, fields ...Field) + func (t *Trace) IsEmpty() bool + func (t *Trace) Log() + func (t *Trace) LogIfLong(threshold time.Duration) + func (t *Trace) LogWithStepThreshold(threshold time.Duration) + func (t *Trace) SetStartTime(time time.Time) + func (t *Trace) StartSubTrace(fields ...Field) + func (t *Trace) Step(msg string, fields ...Field) + func (t *Trace) StepWithFunction(f func(), msg string, fields ...Field) + func (t *Trace) StopSubTrace(fields ...Field) Incompatible versions in this module v3.4.19+incompatible Sep 11, 2020 v3.4.18+incompatible Sep 11, 2020