You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking to use more Lambda-related features from AWS and some logging related features in a project I'm working on, that made me think that one uniform way to solve all of them would be for the base handlers to have the concept of a request handler chain where each request handler has before/after methods that are invoked and wrap the defined handler method. This is a pattern that's used extensively in request/response services/clients.
The use cases I've recently come across which are triggering this suggestion
Similar problems can be solved with custom business metrics emitted as part of a Lambda request
Similar problems can be solved with using log4j and trying to set additional attributes to MDC (in a project I'm working on we wrap each request with code that sets some properties in MDC and then clear them in the end of the request)
The text was updated successfully, but these errors were encountered:
Powertools seems really interesting and I did not know about it. I'll have a look but from an initial scan it seems like it address most if not all of the concerns brought up here.
Thanks a lot Mark. I think this issue is no not needed - at least as I look into Powertools.
I'll go ahead and close it, and if I still think there's merit to it, I'll reopen it or open a new one after having a proper look into Powertools
This library has 2 base Lambda handlers at
Looking to use more Lambda-related features from AWS and some logging related features in a project I'm working on, that made me think that one uniform way to solve all of them would be for the base handlers to have the concept of a request handler chain where each request handler has before/after methods that are invoked and wrap the defined handler method. This is a pattern that's used extensively in request/response services/clients.
The use cases I've recently come across which are triggering this suggestion
The text was updated successfully, but these errors were encountered: