writer

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: Apache-2.0 Imports: 30 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SampledSpans

type SampledSpans struct {
	// Trace will contain a trace if it was sampled or be empty if it wasn't.
	Trace pb.Trace
	// Events contains all APM events extracted from a trace. If no events were extracted, it will be empty.
	Events []*pb.Span
}

SampledSpans represents the result of a trace sampling operation.

func (*SampledSpans) Empty

func (ss *SampledSpans) Empty() bool

Empty returns true if this TracePackage has no data.

type StatsWriter

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

StatsWriter ingests stats buckets and flushes them to the API.

func NewStatsWriter

func NewStatsWriter(cfg *config.AgentConfig, in <-chan []stats.Bucket) *StatsWriter

NewStatsWriter returns a new StatsWriter. It must be started using Run.

func (*StatsWriter) Run

func (w *StatsWriter) Run()

Run starts the StatsWriter, making it ready to receive stats and report metrics.

func (*StatsWriter) Stop

func (w *StatsWriter) Stop()

Stop stops a running StatsWriter.

type TraceWriter

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

TraceWriter buffers traces and APM events, flushing them to the Datadog API.

func NewTraceWriter

func NewTraceWriter(cfg *config.AgentConfig, in <-chan *SampledSpans) *TraceWriter

NewTraceWriter returns a new TraceWriter. It is created for the given agent configuration and will accept incoming spans via the in channel.

func (*TraceWriter) Run

func (w *TraceWriter) Run()

Run starts the TraceWriter.

func (*TraceWriter) Stop

func (w *TraceWriter) Stop()

Stop stops the TraceWriter and attempts to flush whatever is left in the senders buffers.

Jump to

Keyboard shortcuts

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