Skip to content

Commit

Permalink
chore: cleanup some cruft and move some stuff around (#74)
Browse files Browse the repository at this point in the history
* chore: cleanup some cruft
  • Loading branch information
ardias authored Sep 4, 2020
1 parent 6fa1ca0 commit 6563262
Show file tree
Hide file tree
Showing 7 changed files with 515 additions and 437 deletions.
2 changes: 1 addition & 1 deletion internal/cmd/scraper/scraper.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func Run(cfg *Config) error {
}
emitters = append(emitters, emitter)
case "infra-sdk":
emitter, _ := integration.NewInfraSdkEmitter()
emitter := integration.NewInfraSdkEmitter()
emitters = append(emitters, emitter)
default:
logrus.Debugf("unknown emitter: %s", e)
Expand Down
1 change: 1 addition & 0 deletions internal/integration/emitter.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func (se *StdoutEmitter) Name() string {
}

// Emit prints the metrics into stdout.
// Note: histograms not supported due json not supporting Inf values which are present in the last bucket
func (se *StdoutEmitter) Emit(metrics []Metric) error {
b, err := json.Marshal(metrics)
if err != nil {
Expand Down
Loading

0 comments on commit 6563262

Please sign in to comment.