csv

package
v1.2.23 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.9.0

type Config struct {
	Filters     *filtering.FilterObj
	Filename    *string
	WriteString func(f *os.File, s string) (ret int, err error)
}

Config controls the optional configuration of the csv forwarder

type Forwarder added in v0.9.0

type Forwarder struct {
	filtering.FilteredForwarder
	// contains filtered or unexported fields
}

Forwarder prints datapoints to a file

func NewForwarder

func NewForwarder(config *Config) (*Forwarder, error)

NewForwarder creates a new filename forwarder

func (*Forwarder) AddDatapoints added in v0.9.0

func (f *Forwarder) AddDatapoints(ctx context.Context, points []*datapoint.Datapoint) error

AddDatapoints writes the points to a file

func (*Forwarder) AddEvents added in v0.9.0

func (f *Forwarder) AddEvents(ctx context.Context, events []*event.Event) error

AddEvents writes the events to a file

func (*Forwarder) AddSpans added in v0.10.6

func (f *Forwarder) AddSpans(ctx context.Context, spans []*trace.Span) error

AddSpans writes the spans to a file

func (*Forwarder) Close added in v0.9.0

func (f *Forwarder) Close() error

Close the file we write to

func (*Forwarder) Datapoints added in v0.9.0

func (f *Forwarder) Datapoints() []*datapoint.Datapoint

Datapoints implements the sfxclient.Collector interface and returns all datapoints

func (*Forwarder) DebugDatapoints added in v1.2.11

func (f *Forwarder) DebugDatapoints() []*datapoint.Datapoint

DebugDatapoints returns datapoints that are used for debugging

func (*Forwarder) DebugEndpoints added in v1.0.9

func (f *Forwarder) DebugEndpoints() map[string]http.Handler

DebugEndpoints returns no http handlers

func (*Forwarder) DefaultDatapoints added in v1.2.11

func (f *Forwarder) DefaultDatapoints() []*datapoint.Datapoint

DefaultDatapoints returns a set of default datapoints about the forwarder

func (*Forwarder) Pipeline added in v0.9.14

func (f *Forwarder) Pipeline() int64

Pipeline returns 0 because csvforwarder doesn't buffer

func (*Forwarder) StartupFinished added in v0.10.13

func (f *Forwarder) StartupFinished() error

StartupFinished can be called if you want to do something after startup is complete

Jump to

Keyboard shortcuts

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