Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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)
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)
Click to show internal directories.
Click to hide internal directories.