dataplane

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 Exporter

type Exporter interface {
	Export(ctx context.Context, otlpLogs sample.OTLPLogs) error
	Close(context.Context) error
}

type OTLPExporter

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

func NewOTLPExporter

func NewOTLPExporter(c consumer.Logs) *OTLPExporter

func (*OTLPExporter) Close

func (e *OTLPExporter) Close(context.Context) error

func (*OTLPExporter) Export

func (e *OTLPExporter) Export(ctx context.Context, otlpLogs sample.OTLPLogs) error

type Processor

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

func NewProcessor

func NewProcessor(logger logging.Logger, cpServer *server.Server, exporter Exporter) *Processor

func (*Processor) Process

func (p *Processor) Process(ctx context.Context, logs sample.OTLPLogs) error

func (*Processor) Start

func (p *Processor) Start() error

func (*Processor) Stop

func (p *Processor) Stop() error

func (*Processor) UpdateConfig

func (p *Processor) UpdateConfig(resource, sampler string, config *control.SamplerConfig, logger logging.Logger)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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