local

package
v0.0.0-...-af616ac Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 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 Processor

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

Processor implementation for converting incoming Daemon messages into stats and spanData objects. This processor uses the OpenCensus Go stats implementation to handle the PHP stats and converts the PHP span data into Go's spanData objects. This allows PHP to have the same featureset as Go applications without doing much processing in the critical path and reuse Go's OpenCensus Agent Exporter for Stats and Traces.

func New

func New(msgBufSize, msgProcRoutines int, exporters []trace.Exporter, logger log.Logger) *Processor

New returns a new Processor.

func (*Processor) Close

func (p *Processor) Close() error

Close shuts down our Processor.

func (*Processor) Process

func (p *Processor) Process(m *daemon.Message) bool

Process sends our Message on the internal channel to be processed. Returns true on successful ingestion, false on high water mark.

func (*Processor) Run

func (p *Processor) Run() error

Run starts our message processor.

Jump to

Keyboard shortcuts

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