Remember to not log any sensitive stuff though (credit card number in full, cvv, mag stripe, ongoing payment data,...) if you like your PCI audits to go smoothly.
I wonder if this code has proper masking in place for logs. The following line is not reassuring:
slog.Info("received message", "message", fmt.Sprintf("%x", rawMessage))