traceutil

package
v1.0.15 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

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