serverless-plugin-warmup icon indicating copy to clipboard operation
serverless-plugin-warmup copied to clipboard

Feature Request: ability to overide the handler to warp it with error handling

Open shield007 opened this issue 3 years ago • 1 comments

Hi,

Not really a problem, more of a feature request. I would like to be able to add custom error handling to the warm up functions. Our service uses https://sentry.io to caputre errors from our services. It would be really great if we could do this for the warmup functions. We had a issue where things were not setup correct and the warmup functions where failing. It went unnoticed for a while because the errors were not in sentry.

Sentry is probally to tied to our setup, but it would be good if there was a setting to override the handler used. then we could point it at our handler which can wrap the orignal from serverless-plugin-warmup and add in error handling,

Thanks

shield007 avatar Nov 26 '21 09:11 shield007

This sounds like a good idea. I'm quite busy these days, but I'll try to implement this as soon as I have time 🙂

juanjoDiaz avatar Dec 01 '21 23:12 juanjoDiaz