span

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Span

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

Span 记录耗时

func New

func New(tags ...string) *Span

New 返回一个 span 记录耗时

Example:

sp := span.New()
defer sp.Finish(ctx)

func (*Span) Finish

func (s *Span) Finish(ctx context.Context)

Finish 记录耗时

Jump to

Keyboard shortcuts

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