Skip to content

Commit

Permalink
chore(metrics): Remove unused metrics summary kafka writer
Browse files Browse the repository at this point in the history
This was causing vroom to panic during shutdowns.
  • Loading branch information
Zylphrex committed Dec 2, 2024
1 parent bca3dba commit e671fed
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions cmd/vroom/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ import (
type environment struct {
config ServiceConfig

occurrencesWriter KafkaWriter
profilingWriter KafkaWriter
metricSummaryWriter KafkaWriter
occurrencesWriter KafkaWriter
profilingWriter KafkaWriter

storage *blob.Bucket
}
Expand Down Expand Up @@ -97,10 +96,6 @@ func (e *environment) shutdown() {
if err != nil {
sentry.CaptureException(err)
}
err = e.metricSummaryWriter.Close()
if err != nil {
sentry.CaptureException(err)
}
sentry.Flush(5 * time.Second)
}

Expand Down

0 comments on commit e671fed

Please sign in to comment.