trace

package
v0.0.0-...-020e20f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEnabled

func IsEnabled() bool

IsEnabled wraps runtime/trace.IsEnabled.

func Log

func Log(ctx context.Context, category, message string)

Log wraps runtime/trace.Log.

func Logf

func Logf(ctx context.Context, category, message string, args ...interface{})

Logf wraps runtime/trace.Logf.

func Start

func Start(w io.Writer) (err error)

Start wraps runtime/trace.Start.

func Stop

func Stop()

Stop wraps runtime/trace.Stop.

func WithRegion

func WithRegion(ctx context.Context, regionType string, fn func())

WithRegion wraps runtime/trace.WithRegion.

Types

type Region

type Region = trace.Region

Region wraps runtime/trace.Task.

func StartRegion

func StartRegion(ctx context.Context, regionType string) (region *Region)

StartRegion wraps runtime/trace.StartRegion.

type Task

type Task = trace.Task

Task wraps runtime.trace.Task.

func NewTask

func NewTask(pctx context.Context, taskType string) (ctx context.Context, task *Task)

NewTask wraps runtime/trace.NewTask.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL