timing

package
v1.28.5 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Scope added in v1.28.4

func Scope(category string) (trace.Span, func())

Scope begins a span for category and makes it the parent of spans started until the returned function runs, which also ends the span. Only the sequential build path may use it, work handed to a goroutine has to name its parent with StartChild instead.

func SetTracer added in v1.28.2

func SetTracer(ctx context.Context, t trace.Tracer)

func Start

func Start(category string) trace.Span

Start begins a span for category, or a noop span when the category is not traced.

func StartChild added in v1.28.3

func StartChild(parent trace.Span, category string) trace.Span

StartChild begins a span for category nested under parent.

func TracingEnabled added in v1.28.3

func TracingEnabled() bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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