transform

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtensionProcessor

type ExtensionProcessor interface {
	ProcessExtensions(
		ctx context.Context,
		transformer *Transformer,
		extensions []extension.Provider,
		spans []*model.Span,
		start, end time.Time,
	) ([]*model.Span, error)
}

type FetchExtensionsAndStoreCache

type FetchExtensionsAndStoreCache struct {
	Cache []tracecache.ExtensionCache
}

func (*FetchExtensionsAndStoreCache) ProcessExtensions

func (x *FetchExtensionsAndStoreCache) ProcessExtensions(
	ctx context.Context,
	transformer *Transformer,
	extensions []extension.Provider,
	spans []*model.Span,
	start, end time.Time,
) ([]*model.Span, error)

type LoadExtensionCache

type LoadExtensionCache struct {
	Cache []tracecache.ExtensionCache
}

func (*LoadExtensionCache) ProcessExtensions

func (x *LoadExtensionCache) ProcessExtensions(
	ctx context.Context,
	transformer *Transformer,
	extensions []extension.Provider,
	spans []*model.Span,
	start, end time.Time,
) ([]*model.Span, error)

type Transformer

type Transformer struct {
	Logger           logrus.FieldLogger
	Configs          tfconfig.Provider
	ExtensionFactory *manager.List[extension.ProviderFactory]
	// contains filtered or unexported fields
}

func (*Transformer) Close

func (transformer *Transformer) Close(ctx context.Context) error

func (*Transformer) Init

func (transformer *Transformer) Init() error

func (*Transformer) Options

func (transformer *Transformer) Options() manager.Options

func (*Transformer) Start

func (transformer *Transformer) Start(ctx context.Context) error

func (*Transformer) Transform

func (transformer *Transformer) Transform(
	ctx context.Context,
	trace *model.Trace,
	rootObject *utilobject.Key,
	configId tfconfig.Id,
	extensionProcessor ExtensionProcessor,
	start, end time.Time,
) error

type TransformerOptions

type TransformerOptions struct{}

func (*TransformerOptions) EnableFlag

func (options *TransformerOptions) EnableFlag() *bool

func (*TransformerOptions) Setup

func (options *TransformerOptions) Setup(fs *pflag.FlagSet)

Directories

Path Synopsis
defaults

Jump to

Keyboard shortcuts

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