Documentation ¶
Overview ¶
Package trace provides a mockable wrapper for runtime/trace.
Index ¶
- type Impl
- func (*Impl) IsEnabled() bool
- func (*Impl) Log(ctx context.Context, category string, message string)
- func (*Impl) Logf(ctx context.Context, category string, format string, args ...any)
- func (*Impl) NewTask(pctx context.Context, taskType string) (ctx context.Context, task *trace.Task)
- func (*Impl) Start(w io.Writer) error
- func (*Impl) StartRegion(ctx context.Context, regionType string) *trace.Region
- func (*Impl) Stop()
- func (*Impl) WithRegion(ctx context.Context, regionType string, fn func())
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Impl ¶
type Impl struct{}
func (*Impl) StartRegion ¶
type Interface ¶
type Interface interface { IsEnabled() bool Log(ctx context.Context, category string, message string) Logf(ctx context.Context, category string, format string, args ...any) NewTask(pctx context.Context, taskType string) (ctx context.Context, task *trace.Task) Start(w io.Writer) error StartRegion(ctx context.Context, regionType string) *trace.Region Stop() WithRegion(ctx context.Context, regionType string, fn func()) }
Click to show internal directories.
Click to hide internal directories.