func (w *StatsWriter) SendPayload(p pb.StatsPayload) {
	req := newPayload(map[string]string{
		headerLanguages:    strings.Join(info.Languages(), "|"),
		"Content-Type":     "application/msgpack",
		"Content-Encoding": "gzip",
	})
	if err := encodePayload(req.body, p); err != nil {
		log.Errorf("Stats encoding error: %v", err)
		return
	}
	sendPayloads(w.senders, req, w.syncMode)
}
// SendPayload sends a stats payload to the Datadog backend.
SendPayload sends a stats payload to the Datadog backend.
// SendPayload sends a stats payload to the Datadog backend .
func (w *StatsWriter) SendPayload(p pb.StatsPayload) {
	req := newPayload(map[string]string{
		headerLanguages:    strings.Join(info.Languages(), "|"),
		"Content-Type":     "application/msgpack",
		"Content-Encoding": "gzip",
	})
	if err := encodePayload(req.body, p); err != nil {
		log.Errorf("Stats encoding error: %v", err)
		return
	}
	sendPayloads(w.senders, req, w.syncMode)
}
func ( w * StatsWriter ) SendPayload ( p pb . StatsPayload ) { req := newPayload ( map [ string ] string { headerLanguages : strings . Join ( info . Languages ( ) , " " ) , " " : " " , " " : " " , } ) if err := encodePayload ( req . body , p ) ; err != nil { log . Errorf ( " " , err ) return } sendPayloads ( w . senders , req , w . syncMode ) }
SendPayload sends a stats payload to the Datadog backend.
SendPayload sends a stats payload to the Datadog backend .