It is common to have a set of service providers shared between functions on the backend (for example, Sentry). Currently, in order to use the same provider in multiple functions, users are required to initialize the provider at the start of each call, e.g.
It would be nice if there was a way to consolidate this logic even more so functions can either move this logic to a middleware or have a pre-initialized service provider injected into the function like env variables are currently injected.
Related to #40. Based off a Discord thread.
It is common to have a set of service providers shared between functions on the backend (for example, Sentry). Currently, in order to use the same provider in multiple functions, users are required to initialize the provider at the start of each call, e.g.
It would be nice if there was a way to consolidate this logic even more so functions can either move this logic to a middleware or have a pre-initialized service provider injected into the function like env variables are currently injected.