traceutil

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enabled

func Enabled() bool

func EnsureJWTPhase

func EnsureJWTPhase(ctx context.Context, operation string) func()

func HandleLookupPhase

func HandleLookupPhase(ctx context.Context, operation string) func()

func LocalDBPhase

func LocalDBPhase(ctx context.Context, operation string) func()

func MarkFallback

func MarkFallback(ctx context.Context, stage string, cause error)

func PhaseContext

func PhaseContext(ctx context.Context, name string) func()

func PhaseContextWithDetail

func PhaseContextWithDetail(ctx context.Context, name string, detail string) func()

func RPCPhase

func RPCPhase(ctx context.Context, operation string) func()

func WithRun

func WithRun(ctx context.Context, run *Run) context.Context

Types

type FallbackEvent

type FallbackEvent struct {
	Stage string `json:"stage"`
	Cause string `json:"cause,omitempty"`
}

type Phase

type Phase struct {
	Name       string `json:"name"`
	DurationMS int64  `json:"duration_ms"`
}

type Run

type Run struct {
	// contains filtered or unexported fields
}

func FromContext

func FromContext(ctx context.Context) *Run

func New

func New(command string) *Run

func (*Run) Emit

func (r *Run) Emit(w io.Writer) error

func (*Run) MarkFallback

func (r *Run) MarkFallback(stage string, cause error)

func (*Run) StartPhase

func (r *Run) StartPhase(name string) func()

Jump to

Keyboard shortcuts

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