Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DatadogEndpoint ¶
type DatadogEndpoint struct {
// contains filtered or unexported fields
}
DatadogEndpoint sends payloads to Datadog API.
func NewDatadogEndpoint ¶
func NewDatadogEndpoint(client *http.Client, url, path, apiKey string) *DatadogEndpoint
NewDatadogEndpoint returns an initialized DatadogEndpoint, from a provided http client and remote endpoint path.
type ServiceWriter ¶
type ServiceWriter struct { InServices <-chan model.ServicesMetadata // contains filtered or unexported fields }
ServiceWriter ingests service metadata and flush them to the API.
func NewServiceWriter ¶
func NewServiceWriter(conf *config.AgentConfig, InServices <-chan model.ServicesMetadata) *ServiceWriter
NewServiceWriter returns a new writer for services.
func (*ServiceWriter) Flush ¶
func (w *ServiceWriter) Flush()
Flush flushes service metadata, if they changed, to the API
func (*ServiceWriter) Run ¶
func (w *ServiceWriter) Run()
Run runs the main loop of the writer goroutine. If buffers services read from input chan and flushes them when necessary.
type StatsWriter ¶
type StatsWriter struct { InStats <-chan []model.StatsBucket // contains filtered or unexported fields }
StatsWriter ingests service metadata and flush them to the API.
func NewStatsWriter ¶
func NewStatsWriter(conf *config.AgentConfig, InStats <-chan []model.StatsBucket) *StatsWriter
NewStatsWriter returns a new writer for services.
func (*StatsWriter) Flush ¶
func (w *StatsWriter) Flush(stats []model.StatsBucket)
Flush flushes received stats
func (*StatsWriter) Run ¶
func (w *StatsWriter) Run()
Run runs the main loop of the writer goroutine. If flushes stats buckets once received from the concentrator.
type TraceWriter ¶
TraceWriter ingests sampled traces and flush them to the API.
func NewTraceWriter ¶
func NewTraceWriter(conf *config.AgentConfig, InTraces <-chan *model.Trace) *TraceWriter
NewTraceWriter returns a new writer for traces.
func (*TraceWriter) Run ¶
func (w *TraceWriter) Run()
Run runs the main loop of the writer goroutine. If buffers payloads and services read from input chans and flushes them when necessary.