The decorator logic is loosely based on the decorator module from the datadog_lambda.wrapper package. I mention this because I want to give credit where credit is due and also because I don't want to get sued by Datadog in case this ever sees the light of day.

Also, if this ever breaks, I can always blame Datadog.