trace

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tracer

type Tracer struct {
	Threshold time.Duration
	// contains filtered or unexported fields
}

func (*Tracer) StartTrace

func (t *Tracer) StartTrace(key string, name string, field ...trace.Field)

func (*Tracer) StepTrace

func (t *Tracer) StepTrace(key string, name string, field ...trace.Field)

A trace Step adds a new step with a specific message. Call StepTrace after an execution step to record how long it took.

func (*Tracer) StopTrace

func (t *Tracer) StopTrace(key string)

Jump to

Keyboard shortcuts

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