processor

package
v1.2.120 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotator

type Annotator struct {
	// AttrsFunc is called when a span is started. The attributes it returns
	// are set on the Span being started.
	AttrsFunc func() []attribute.KeyValue
}

Annotator is a SpanProcessor that adds attributes to all started spans.

func (Annotator) ForceFlush

func (a Annotator) ForceFlush(context.Context) error

ForceFlush ...

func (Annotator) OnEnd

func (a Annotator) OnEnd(s trace.ReadOnlySpan)

OnEnd ...

func (Annotator) OnStart

func (a Annotator) OnStart(_ context.Context, s trace.ReadWriteSpan)

OnStart ...

func (Annotator) Shutdown

func (a Annotator) Shutdown(context.Context) error

Shutdown ...

Jump to

Keyboard shortcuts

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