Skip to content

Commit

Permalink
Adding topic name to log fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Oct 22, 2024
1 parent 32186af commit bab00d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion processes/consumer/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func StartConsumer(ctx context.Context, cfg config.Config, inMemDB *models.Datab

tableName, processErr := args.process(ctx, cfg, inMemDB, dest, metricsClient)
if processErr != nil {
logger.Fatal("Failed to process message", slog.Any("err", processErr))
logger.Fatal("Failed to process message", slog.Any("err", processErr), slog.String("topic", kafkaMsg.Topic))
}

msg.EmitIngestionLag(metricsClient, cfg.Mode, kafkaConsumer.Config().GroupID, tableName)
Expand Down

0 comments on commit bab00d8

Please sign in to comment.