event

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Eventor

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

func NewEventor

func NewEventor(settings Settings) (*Eventor, error)

func (*Eventor) Close

func (e *Eventor) Close()

func (*Eventor) ProcessSample

func (e *Eventor) ProcessSample(samplerLogs dsample.SamplerOTLPLogs) error

ProessSample iterates over all the raw flows in the sampler logs and creates events when necessary. Generated events are appended to the provided sampler logs

func (*Eventor) SetEventsConfig

func (e *Eventor) SetEventsConfig(eventsCfgs map[control.SamplerEventUID]control.Event) error

type MetadataBuilder added in v0.3.0

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

func NewMetadataBuilder added in v0.3.0

func NewMetadataBuilder(exportTmpl string) (*MetadataBuilder, error)

func (*MetadataBuilder) Build added in v0.3.0

func (m *MetadataBuilder) Build(ctx context.Context, sampleData *data.Data, sampleDataKey string) (string, error)

type Settings

type Settings struct {
	ResourceName string
	SamplerName  string
}

Jump to

Keyboard shortcuts

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