Use pointer to metrics instead of forwarding full metric

This commit is contained in:
Thomas Roehl
2022-01-31 14:16:50 +01:00
parent 3e329c3324
commit 7f4de77de1
34 changed files with 199 additions and 180 deletions

View File

@@ -36,8 +36,8 @@ func (s *HttpSink) Init(config sinkConfig) error {
return nil
}
func (s *HttpSink) Write(point lp.CCMetric) error {
_, err := s.encoder.Encode(point)
func (s *HttpSink) Write(point *lp.CCMetric) error {
_, err := s.encoder.Encode(*point)
return err
}