Skip to content

Commit

Permalink
fix(stats): Transform before sending stats container
Browse files Browse the repository at this point in the history
  • Loading branch information
sklirg committed Dec 10, 2021
1 parent f1f77fa commit b3ade5e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions docs/NEWS
@@ -1,3 +1,11 @@
v0.12.1
=======

Release date: 2021-12-10

Fixes a bug in the stats receiver where it would not run transformers before
sending data.

v0.12.0
=======

Expand Down
2 changes: 1 addition & 1 deletion receiver/stats.go
Expand Up @@ -84,7 +84,7 @@ func (s *Stats) runner() {
Metrics: []*skogul.Metric{metric},
}

if err := s.Handler.H.Send(&container); err != nil {
if err := s.Handler.H.TransformAndSend(&container); err != nil {
statsLog.WithError(err).Error("Failed to send skogul stats")
}
}
Expand Down

0 comments on commit b3ade5e

Please sign in to comment.