appsignal / appsignal-ruby

🟥 AppSignal for Ruby gem
https://www.appsignal.com/ruby
MIT License
183 stars 116 forks source link

Support logging for Puma #1248

Open tmaier opened 2 months ago

tmaier commented 2 months ago

Puma supports custom loggers. See https://github.com/puma/puma/pull/2770

By default, puma logs only to stdout. Using the custom logger it should be possible to log to AppSignal Logging.

tombruijn commented 2 months ago

Thanks for the suggestion! Not sure if it will fit in with our logging recommendations, but we'll have a look at what logs Puma sends.

tmaier commented 2 months ago

Well... the question is what to log. I had the issue, that on DigitalOcean App Platform the puma server did not start. They also do not have a "H18" error message, like Heroku and I was also unable (to date) to get the logs on platform-level.

This means, I was unable to see that the puma server failed and might have shown a Oout of Memory error message or a "restart event" is happneing.