cmd

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the liteCmd.

Types

type DurationFilter added in v1.7.0

type DurationFilter struct {
	// Next is the next SpanProcessor in the chain.
	Next trace.SpanProcessor

	// Min is the duration under which spans are dropped.
	Min time.Duration
}

DurationFilter is a SpanProcessor that filters spans that have lifetimes outside of a defined range.

func (DurationFilter) ForceFlush added in v1.7.0

func (f DurationFilter) ForceFlush(ctx context.Context) error

func (DurationFilter) OnEnd added in v1.7.0

func (f DurationFilter) OnEnd(s trace.ReadOnlySpan)

func (DurationFilter) OnStart added in v1.7.0

func (f DurationFilter) OnStart(parent context.Context, s trace.ReadWriteSpan)

func (DurationFilter) Shutdown added in v1.7.0

func (f DurationFilter) Shutdown(ctx context.Context) error

type NameFilter added in v1.7.0

type NameFilter struct {
	// Next is the next SpanProcessor in the chain.
	Next trace.SpanProcessor

	// AllowedPattern is a regex that will be used to filter spans,
	// dropping the the spans in case of mismatching span names.
	AllowedPattern *regexp.Regexp
}

NameFilter is a SpanProcessor that filters trace spans based on the span name.

func (NameFilter) ForceFlush added in v1.7.0

func (f NameFilter) ForceFlush(ctx context.Context) error

func (NameFilter) OnEnd added in v1.7.0

func (f NameFilter) OnEnd(s trace.ReadOnlySpan)

func (NameFilter) OnStart added in v1.7.0

func (f NameFilter) OnStart(parent context.Context, s trace.ReadWriteSpan)

func (NameFilter) Shutdown added in v1.7.0

func (f NameFilter) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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