keygen-sh / keygen-api

Keygen is a fair source software licensing and distribution API built with Ruby on Rails. For developers, by developers.
https://keygen.sh
Other
701 stars 40 forks source link

Add argument logging for Sidekiq jobs #743

Open ezekg opened 1 year ago

ezekg commented 1 year ago

Originally posted by @ezekg in https://github.com/keygen-sh/keygen-api/issues/742#issuecomment-1611506522

I'd like to add logging for Sidekiq jobs and their arguments^0, to make searching and debugging certain jobs a bit easier, namely MachineHeartbeatWorker and ProcessHeartbeatWorker.

We should create an opt-in middleware for logging a job's arguments.

ezekg commented 11 months ago

In addition, I want to clean up the logging for webhook job failures. Right now it's really verbose and adds a lot of superfluous volume to Papertrail, our log management provider.