wrap

package
v1.2.115 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AccumulationHandler []AccumulationHandlerFunc

Functions

func RegisterAccumulationHandler

func RegisterAccumulationHandler(handlers ...AccumulationHandlerFunc)

func WithAccumulationHandler

func WithAccumulationHandler(handlers ...AccumulationHandlerFunc) func(os *FactoryConfig) error

WithAccumulationHandler sets the middleware of Processor.

func WithDefaultLabels

func WithDefaultLabels(kvs ...attribute.KeyValue) func(os *FactoryConfig) error

WithDefaultLabels add default label set to Accumulation, as prepared by an Accumulator for the Processor. WithDefaultLabels set default attributes to all started spans. Duplicate keys are eliminated by taking the last value.

Types

type AccumulationHandlerFunc

type AccumulationHandlerFunc func(accum export.Accumulation) export.Accumulation

type Factory added in v1.2.9

type Factory struct {
	export.CheckpointerFactory
	// contains filtered or unexported fields
}

func NewFactory added in v1.2.9

func NewFactory(checkpointerFactory export.CheckpointerFactory, opts ...FactoryConfigFunc) *Factory

NewFactory returns a dimensionality-reset Processor Factory that passes data to the next stage in an export pipeline.

func (*Factory) NewCheckpointer added in v1.2.9

func (f *Factory) NewCheckpointer() export.Checkpointer

type FactoryConfig

type FactoryConfig struct {
	// Handlers acts like a middleware of Processor.
	Handlers []AccumulationHandlerFunc
}

func (*FactoryConfig) ApplyOptions

func (fc *FactoryConfig) ApplyOptions(configs ...FactoryConfigFunc) error

type FactoryConfigFunc

type FactoryConfigFunc func(os *FactoryConfig) error

FactoryConfigFunc is an alias for a function that will take in a pointer to an FactoryConfig and modify it

type Processor added in v1.2.9

type Processor struct {
	Handlers []AccumulationHandlerFunc
	export.Checkpointer
}

Processor is a wrapped SpanProcessor.

func New

func New(ckpter export.Checkpointer, opts ...FactoryConfigFunc) *Processor

New returns a dimensionality-reset Processor that passes data to the next stage in an export pipeline.

func (*Processor) Process added in v1.2.9

func (p *Processor) Process(accum export.Accumulation) error

Process implements export.Processor.

Jump to

Keyboard shortcuts

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